mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-19 20:10:43 +09:00
Staging: iio: adis16220: fix up my fixup for some sysfs attribute permissions
commit c9e51d9e4b upstream.
They should be writable by root, not readable.
Doh, stupid me with the wrong flags.
Reported-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Cc: Barry Song <Barry.Song@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@@ -506,7 +506,7 @@ static IIO_DEVICE_ATTR(reset, S_IWUSR, NULL,
|
||||
adis16220_write_reset, 0);
|
||||
|
||||
#define IIO_DEV_ATTR_CAPTURE(_store) \
|
||||
IIO_DEVICE_ATTR(capture, S_IRUSR, NULL, _store, 0)
|
||||
IIO_DEVICE_ATTR(capture, S_IWUSR, NULL, _store, 0)
|
||||
|
||||
static IIO_DEV_ATTR_CAPTURE(adis16220_write_capture);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user