diff options
author | Marc Kleine-Budde <[email protected]> | 2021-04-05 12:34:56 +0200 |
---|---|---|
committer | Marc Kleine-Budde <[email protected]> | 2021-04-13 10:15:43 +0200 |
commit | 592bf5a09d195e70652bed4187254c540e7cca9e (patch) | |
tree | bab5e2a64cebcf7eabcfee6facac2632e7b1e724 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 1a5a5eedf80772ac0fb3f1ec443711c2eab030a5 (diff) |
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/[email protected]
Acked-by: Stephane Grosjean <[email protected]>
Tested-by: Stephane Grosjean <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions