]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net: Allow drivers to return -ENOSYS with the write_hwaddr() method
authorSimon Glass <sjg@chromium.org>
Mon, 6 Jul 2015 22:47:55 +0000 (16:47 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:48:59 +0000 (13:48 +0200)
commit26a5233fba2f82ccac5e4044492c04a5597820e8
treef12881af12a554f51dc5a9f0dfeb9683a7332b8f
parent3328b985b326d2ba6ea6a462be009a79120f9f7d
net: Allow drivers to return -ENOSYS with the write_hwaddr() method

Some drivers may want to implement this method for some of their devices but
not for others. So it is not possible to just leave the operation out of
the table. Drivers could get around this by masquerading as two separate
drivers but that seems unpleasant.

Allow the driver to return an error when it does not want to process the
write_hwaddr() method.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/net.h
net/eth.c