USB: move many drivers to use DEVICE_ATTR_WO
PATCH 3/6 USB: move many drivers to use DEVICE_ATTR_WO
Quoted 6 lines · Greg Kroah-Hartman
Instead of "open coding" a
DEVICE_ATTR()define, use theDEVICE_ATTR_WO()macro instead, which does everything properly instead.This does require a few static functions to be renamed to work properly, but thanks to a script from Joe Perches, this was easily done.
Quoted 7 lines
Reported-by Joe Perches <[email protected]>Cc Peter Chen <[email protected]>Cc Felipe Balbi <[email protected]>Cc Johan Hovold <[email protected]>Cc Valentina Manea <[email protected]>Cc Shuah Khan <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
For drivers/usb/{gadget,phy}:
Acked-by Felipe Balbi <[email protected]>