Skip to contentSkip to conversation

USB: move many drivers to use DEVICE_ATTR_WO

PATCH New Johan Hovold 1 participant 1 message Jan 23, 2018 USB

lore
Share & tools
lore
#0 lore raw

PATCH 3/6 USB: move many drivers to use DEVICE_ATTR_WO

Quoted 13 lines · Greg Kroah-Hartman

Instead of "open coding" a DEVICE_ATTR() define, use the DEVICE_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.

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]>
Quoted 5 lines
---
 drivers/usb/chipidea/otg_fsm.c | 4 ++--
 drivers/usb/gadget/udc/core.c  | 8 ++++----
 drivers/usb/phy/phy-mv-usb.c   | 4 ++--
 drivers/usb/serial/ftdi_sio.c  | 4 ++--

For usb-serial:

---
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