Re: [PATCH 17/17] can: ems_usb: Made another struct packed. Enable CPC-USB/FD by adding it to the drivers device table

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

 



On 11/6/20 6:02 PM, Gerhard Uttenthaler wrote:
> Signed-off-by: Gerhard Uttenthaler <uttenthaler@xxxxxxxxxxxxxxxx>
> ---
>  drivers/net/can/usb/ems_usb.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/can/usb/ems_usb.c b/drivers/net/can/usb/ems_usb.c
> index 7ede3ac08ed5..087069f999e5 100644
> --- a/drivers/net/can/usb/ems_usb.c
> +++ b/drivers/net/can/usb/ems_usb.c
> @@ -269,7 +269,7 @@ struct __packed cpc_can_error {
>  /* Structure containing RX/TX error counter. This structure is used to request
>   * the values of the CAN controllers TX and RX error counter.
>   */
> -struct cpc_can_err_counter {
> +struct __packed cpc_can_err_counter {

please make this a separate patch.

>  	u8 rx;
>  	u8 tx;
>  };
> @@ -296,10 +296,11 @@ struct __packed ems_cpc_msg {
>  };
>  
>  /* Table of devices that work with this driver
> - * NOTE: This driver supports only CPC-USB/ARM7 (LPC2119) yet.
> + * This driver supports CPC-USB/ARM7 and CPC-USB/FD.
>   */
>  static struct usb_device_id ems_usb_table[] = {
>  	{USB_DEVICE(USB_CPCUSB_VENDOR_ID, USB_CPCUSB_ARM7_PRODUCT_ID)},
> +	{USB_DEVICE(USB_CPCUSB_VENDOR_ID, USB_CPCUSB_FD_PRODUCT_ID)},
>  	{} /* Terminating entry */
>  };
>  
> 

Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux