usb-gadget: use per-attribute show and store methods
authorChristoph Hellwig <hch@lst.de>
Sat, 3 Oct 2015 13:32:38 +0000 (15:32 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 14 Oct 2015 05:12:57 +0000 (22:12 -0700)
commit45b6a73f62ebcf3ff067895fb8030e67f4c7b67f
tree11162c5088310be7c92c6645e8b1317388db92b4
parent870823e629ea194e6cf8e82a9694ac62cad49512
usb-gadget: use per-attribute show and store methods

To simplify the configfs interface and remove boilerplate code that also
causes binary bloat.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/usb/gadget/configfs.c
include/linux/usb/gadget_configfs.h