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)
commit10978e48ccc1718dce5c2d275b761ab99c593a81
treecdb599849c067fd405c803c02cdc08fd392f1c40
parenta93429c300483fa2509ae949a7915a01bd0acd20
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