summaryrefslogtreecommitdiff
path: root/block/bounce.c
diff options
context:
space:
mode:
authorEmilio López <emilio.lopez@collabora.co.uk>2015-09-21 10:38:20 -0300
committerOlof Johansson <olof@lixom.net>2015-10-07 15:05:31 -0700
commit7f5028cf6190407b7a632b0f30b83187577824cc (patch)
tree5f2ebc65f91ad1d816cefa2ea686bc76188456cf /block/bounce.c
parentf14ae099bdad32414ad968909973bfade9b37967 (diff)
sysfs: Support is_visible() on binary attributes
According to the sysfs header file: "The returned value will replace static permissions defined in struct attribute or struct bin_attribute." but this isn't the case, as is_visible is only called on struct attribute only. This patch introduces a new is_bin_visible() function to implement the same functionality for binary attributes, and updates documentation accordingly. Note that to keep functionality and code similar to that of normal attributes, the mode is now checked as well to ensure it contains only read/write permissions or SYSFS_PREALLOC. Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Emilio López <emilio.lopez@collabora.co.uk> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'block/bounce.c')
0 files changed, 0 insertions, 0 deletions