diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-24 17:36:49 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-24 17:36:49 (GMT) |
commit | e7c8a7e350e22bf60d94d5e9361cee29058684c1 (patch) | |
tree | 8a6af086000be623696640a4ddd2642e25563eb1 /drivers/staging/line6/driver.h | |
parent | 3b7cf04f873d3317bdfeedb6c83396abd16f0955 (diff) | |
download | linux-fsl-qoriq-e7c8a7e350e22bf60d94d5e9361cee29058684c1.tar.xz |
staging: line6: use default sysfs attribute macros
Move to use the DEVICE_ATTR_RW/RO macros, making it easier to audit the
sysfs file permissions, and get rid of the "empty" callback for
read-only files, saving lines of code.
Cc: Stefan Hajnoczi <stefanha@gmail.com>
Cc: Laurent Navet <laurent.navet@gmail.com>
Cc: Johannes Thumshirn <morbidrsa@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/line6/driver.h')
-rw-r--r-- | drivers/staging/line6/driver.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/line6/driver.h b/drivers/staging/line6/driver.h index a8341f9..34ae95e 100644 --- a/drivers/staging/line6/driver.h +++ b/drivers/staging/line6/driver.h @@ -190,9 +190,6 @@ extern char *line6_alloc_sysex_buffer(struct usb_line6 *line6, int code1, int code2, int size); extern ssize_t line6_nop_read(struct device *dev, struct device_attribute *attr, char *buf); -extern ssize_t line6_nop_write(struct device *dev, - struct device_attribute *attr, - const char *buf, size_t count); extern int line6_read_data(struct usb_line6 *line6, int address, void *data, size_t datalen); extern int line6_read_serial_number(struct usb_line6 *line6, |