Re: ftdi_sio: Actisense PIDs constant Names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 20, 2023 at 01:57:40PM +0000, Mark Glover wrote:
> This changes the constant names for unused USB PIDs (product identifiers)
> to reflect the new products now using the PIDs.

Commit messages should use imperative mode (see the process
documentation) so I changed this to:

	Update the constant names for unused USB PIDs (product
	identifiers) to reflect the new products now using the PIDs.

and similar in the commit summary (Subject) where I also added the
missing common prefix ("USB: serial: ").

And when revising patches you should indicate that in Subject (e.g.
"[PATCH v2]") and include a short changelog below the '---' line (which
is missing below, but goes below the SoB).

Next time, try using git format-patch to generate the patch.

> Signed-off-by: Mark Glover <mark.glover@xxxxxxxxxxxxx>
> 
> diff -urN linux-6.6.4/drivers/usb/serial/ftdi_sio.c linux/drivers/usb/serial/ftdi_sio.c
> --- linux-6.6.4/drivers/usb/serial/ftdi_sio.c	2023-12-03 06:33:10.000000000 +0000
> +++ linux/drivers/usb/serial/ftdi_sio.c	2023-12-12 10:39:51.157327241 +0000
> @@ -1033,9 +1033,9 @@
>  	{ USB_DEVICE(FTDI_VID, ACTISENSE_USG_PID) },
>  	{ USB_DEVICE(FTDI_VID, ACTISENSE_NGT_PID) },
>  	{ USB_DEVICE(FTDI_VID, ACTISENSE_NGW_PID) },
> -	{ USB_DEVICE(FTDI_VID, ACTISENSE_D9AC_PID) },
> -	{ USB_DEVICE(FTDI_VID, ACTISENSE_D9AD_PID) },
> -	{ USB_DEVICE(FTDI_VID, ACTISENSE_D9AE_PID) },
> +	{ USB_DEVICE(FTDI_VID, ACTISENSE_UID_PID) },
> +	{ USB_DEVICE(FTDI_VID, ACTISENSE_USA_PID) },
> +	{ USB_DEVICE(FTDI_VID, ACTISENSE_NGX_PID) },
>  	{ USB_DEVICE(FTDI_VID, ACTISENSE_D9AF_PID) },
>  	{ USB_DEVICE(FTDI_VID, CHETCO_SEAGAUGE_PID) },
>  	{ USB_DEVICE(FTDI_VID, CHETCO_SEASWITCH_PID) }, 

For some reason that I was not able to determine, this hunk did not
apply to mainline despite that there hasn't really been any changes to
the surrounding code since 6.6.4 (which you used to generate this
patch).

I fixed it up manually this time. End result is here:

	https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial.git/commit/?h=usb-linus&id=513d88a88e0203188a38f4647dd08170aebd85df

Johan




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux