summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/adm1031.c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2016-12-22 13:04:31 +0100
committerGuenter Roeck <linux@roeck-us.net>2017-01-02 19:19:45 +0100
commit6d3c213d9da04d1a3e5a06d81dbd62b28f905a16 (patch)
treecddca03065f8549a54acf6034c419846e8dceb72 /drivers/hwmon/adm1031.c
parenthwmon: (adm1021) use permission-specific DEVICE_ATTR variants (diff)
downloadlinux-6d3c213d9da04d1a3e5a06d81dbd62b28f905a16.tar.xz
linux-6d3c213d9da04d1a3e5a06d81dbd62b28f905a16.zip
hwmon: (adm1026) use permission-specific DEVICE_ATTR variants
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its size. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions