Skip to contentSkip to conversation

USB: move many drivers to use DEVICE_ATTR_RO

PATCH New Felipe Balbi 1 participant 1 message Jan 23, 2018 USB

lore
Share & tools
lore
#0 lore raw

PATCH 2/6 USB: move many drivers to use DEVICE_ATTR_RO

Hi,

Quoted 6 lines · Greg Kroah-Hartman

Instead of "open coding" a DEVICE_ATTR() define, use the DEVICE_ATTR_RO() 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 8 lines
Cc Matthieu CASTET <[email protected]>
Cc Stanislaw Gruszka <[email protected]>
Cc Oliver Neukum <[email protected]>
Cc Pete Zaitcev <[email protected]>
Cc Felipe Balbi <[email protected]>
Cc Alan Stern <[email protected]>

For drivers/usb/phy: