OSDN Git Service

USB: gadget: gr: Re-use DEFINE_SHOW_ATTRIBUTE() macro
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 14 Feb 2018 16:08:21 +0000 (18:08 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 8 Mar 2018 13:12:00 +0000 (15:12 +0200)
commit688d4ca31796f53934d326363f667e897216e91d
treebc9abfdd0f07bbb89212e317936d5bc35069a152
parent8802559e9372fb2fdc47abf35c97b460316b4d67
USB: gadget: gr: Re-use DEFINE_SHOW_ATTRIBUTE() macro

...instead of open coding file operations followed by custom ->open()
callbacks per each attribute.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/gr_udc.c