]> git.baikalelectronics.ru Git - kernel.git/commit
can: c_can: export c_can_ethtool_ops and remove c_can_set_ethtool_ops()
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Wed, 27 Jul 2022 10:49:38 +0000 (19:49 +0900)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 27 Jul 2022 11:09:01 +0000 (13:09 +0200)
commit5d2c962430dd7f4b3fe02123acb8fec845c3b0fa
tree91cdde6ca25bcc3963a89b534517340200ea3b06
parent73e4023b552ed3e6d7f0b4606e2d274b5308288f
can: c_can: export c_can_ethtool_ops and remove c_can_set_ethtool_ops()

The function c_can_set_ethtool_ops() does one thing: populate
net_device::ethtool_ops. Instead, it is possible to directly assign
this field and remove one function call and slightly reduce the object
size. To do so, export c_can_ethtool_ops so it becomes visible to
c_can_main.c.

Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/all/20220727104939.279022-3-mailhol.vincent@wanadoo.fr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can.h
drivers/net/can/c_can/c_can_ethtool.c
drivers/net/can/c_can/c_can_main.c