summaryrefslogtreecommitdiff
path: root/drivers/usb/storage/alauda.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-02-05 16:36:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-18 18:56:40 +0300
commitc7b364f7dd82e8610373b8c6d788db867d7e99db (patch)
tree999efbb33221c8be8d8b691cf24512c04c177cc4 /drivers/usb/storage/alauda.c
parentc60b89aa3640ac4eb279213d93828a8100acb6b5 (diff)
downloadlinux-c7b364f7dd82e8610373b8c6d788db867d7e99db.tar.xz
USB: gadget: f_mass_storage: use static attribute groups for sysfs entries
Instead of manual device_create_file() and device_remove_file() calls, assign the static attribute groups to the lun device to register. The RO or RW permissions for some entries are decided in is_visible callback. This simplifies the code (also the logic) and avoids the possible races, too. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/storage/alauda.c')
0 files changed, 0 insertions, 0 deletions