]> git.baikalelectronics.ru Git - kernel.git/commit
can: etas_es58x: fix signedness of USB RX and TX pipes
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Sat, 11 Jun 2022 16:20:37 +0000 (01:20 +0900)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 11 Jun 2022 20:45:49 +0000 (22:45 +0200)
commitd825fb6b20d2b0880d2085c4345bfff3906514b8
treefbe8a0e33f00395d4eec31329ec8a34c3655360a
parent040bcca7110f8754b5c0208bfce16b8021de1165
can: etas_es58x: fix signedness of USB RX and TX pipes

USB pipes are meant to be unsigned int (c.f. [1]). However, fields
rx_pipe and tx_pipe of struct es58x_device are both signed
integers. Change the type of those two fields from int to unsigned
int.

[1] https://elixir.bootlin.com/linux/v5.18/source/include/linux/usb.h#L1571

Link: https://lore.kernel.org/all/20220611162037.1507-3-mailhol.vincent@wanadoo.fr
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/etas_es58x/es58x_core.h