summaryrefslogtreecommitdiff
path: root/drivers/net/can/ti_hecc.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2021-04-05 13:34:56 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2021-04-13 11:15:43 +0300
commit592bf5a09d195e70652bed4187254c540e7cca9e (patch)
treebab5e2a64cebcf7eabcfee6facac2632e7b1e724 /drivers/net/can/ti_hecc.c
parent1a5a5eedf80772ac0fb3f1ec443711c2eab030a5 (diff)
downloadlinux-592bf5a09d195e70652bed4187254c540e7cca9e.tar.xz
can: peak_usb: peak_usb_probe(): make use of driver_info
There's no need to iterate over all supported adapters to find the struct peak_usb_adapter that describes the currently probed devices's capabilities. The driver core gives us the information for free, if we assign it to the struct usb_device_id::driver_info. This patch assigns the usb_device_id::driver_info and converts peak_usb_probe() to make use of it. This reduces the driver size by 100 bytes on ARCH=arm. | add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-124 (-124) | Function old new delta | peak_usb_adapters_list 24 - -24 | peak_usb_probe 236 136 -100 | Total: Before=25263, After=25139, chg -0.49% Link: https://lore.kernel.org/r/20210406111622.1874957-6-mkl@pengutronix.de Acked-by: Stephane Grosjean <s.grosjean@peak-system.com> Tested-by: Stephane Grosjean <s.grosjean@peak-system.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/ti_hecc.c')
0 files changed, 0 insertions, 0 deletions