USB: move many drivers to use DEVICE_ATTR_RW
Greg Kroah-Hartman
maintainerPATCH 1/6 USB: move many drivers to use DEVICE_ATTR_RW
Quoted 20 lines · Felipe Balbi
Hi,
Quoted 6 lines · Greg Kroah-Hartman
Instead of "open coding" a
DEVICE_ATTR()define, use theDEVICE_ATTR_RW()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 9 lines
Reported-by Joe Perches <[email protected]>Cc Matthieu CASTET <[email protected]>Cc Stanislaw Gruszka <[email protected]>Cc Peter Chen <[email protected]>Cc Alan Stern <[email protected]>Cc Mathias Nyman <[email protected]>Cc Bin Liu <[email protected]>Cc Felipe Balbi <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Quoted 3 lines
for
drivers/usb/phy:Acked-by Felipe Balbi <[email protected]>
Great, thanks for the quick review of these.
greg k-h
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html