[PATCH] scsi_dh: convert __ATTR macro to DEVICE_ATTR_RW and snprintf show method cleanup

2015-06-25 Thread Seymour, Shane M
Converted dh_state to use DEVICE_ATTR_RW macro instead of __ATTR. That forced a change to the associated show/store function names and the name of the attribute. Changed usage of snprintf in show function to scnprintf per Documentation/filesystems/sysfs.txt. Signed-off-by: Shane Seymour --- --

Re: [PATCH] scsi_dh: convert __ATTR macro to DEVICE_ATTR_RW and snprintf show method cleanup

2015-06-29 Thread Hannes Reinecke
On 06/26/2015 08:38 AM, Seymour, Shane M wrote: > > Converted dh_state to use DEVICE_ATTR_RW macro > instead of __ATTR. That forced a change to the associated > show/store function names and the name of the attribute. > > Changed usage of snprintf in show function to scnprintf per > Documentatio