]> git.baikalelectronics.ru Git - kernel.git/commit
st: convert DRIVER_ATTR macros to DRIVER_ATTR_RO
authorSeymour, Shane M <shane.seymour@hp.com>
Wed, 24 Jun 2015 06:54:35 +0000 (06:54 +0000)
committerJames Bottomley <JBottomley@Odin.com>
Wed, 12 Aug 2015 22:54:24 +0000 (15:54 -0700)
commit4a2896979d9daa5b38888397f769abd6be91e5a7
treecdb599849c067fd405c803c02cdc08fd392f1c40
parent3ea6adf58c24d6bba0c91ca6ff61fa3bb0507a52
st: convert DRIVER_ATTR macros to DRIVER_ATTR_RO

Convert DRIVER_ATTR macros to DRIVER_ATTR_RO requested by
Greg KH. Also switched to using scnprintf instead of snprintf
per Documentation/filesystems/sysfs.txt.

Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Shane Seymour <shane.seymour@hp.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Kai Mäkisara <kai.makisara@kolumbus.fi>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/st.c