]> git.baikalelectronics.ru Git - kernel.git/commit
USB: move many drivers to use DEVICE_ATTR_WO
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jan 2018 10:24:07 +0000 (11:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jan 2018 07:49:52 +0000 (08:49 +0100)
commit226886b9f20c44f60a3bee3d7377c79ef5bedf3b
tree1040bfbe2783b8306c95d9eb99346a325d6d3f0d
parentee81279028a51d0b1e7e1937961581febd313f06
USB: move many drivers to use DEVICE_ATTR_WO

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.

Reported-by: Joe Perches <joe@perches.com>
Cc: Peter Chen <Peter.Chen@nxp.com>
Cc: Valentina Manea <valentina.manea.m@gmail.com>
Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Acked-by: Johan Hovold <johan@kernel.org>
Acked-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/otg_fsm.c
drivers/usb/gadget/udc/core.c
drivers/usb/phy/phy-mv-usb.c
drivers/usb/serial/ftdi_sio.c
drivers/usb/usbip/stub_dev.c
drivers/usb/usbip/vhci_sysfs.c
drivers/usb/usbip/vudc_sysfs.c