Skip to content

hwmon: Use permission specific SENSOR[_DEVICE]_ATTR

Guenter Roeck linux-hwmon 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest29 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/29hwmon: (gl518sm) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/gl518sm.c+59 -610 replies
2/29hwmon: (gl520sm) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/gl520sm.c+85 -990 replies
3/29hwmon: (gpio-fan) Replace S_<PERMS> with octal valuesdrivers/hwmon/gpio-fan.c+1 -10 replies
4/29hwmon: (hih6130) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/hih6130.c+4 -60 replies
5/29hwmon: (hwmon) Replace S_<PERMS> with octal valuesdrivers/hwmon/hwmon.c+2 -20 replies
6/29hwmon: (i5500_temp) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/i5500_temp.c+7 -70 replies
7/29hwmon: (i5k_amb) Replace S_<PERMS> with octal valuesdrivers/hwmon/i5k_amb.c+6 -60 replies
8/29hwmon: (ibmaem) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/ibmaem.c+7 -80 replies
9/29hwmon: (ibmpex) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/ibmpex.c+6 -80 replies
10/29hwmon: (iio_hwmon) Replace S_<PERMS> with octal valuesdrivers/hwmon/iio_hwmon.c+1 -10 replies
11/29hwmon: (ina209) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/ina209.c+65 -860 replies
12/29hwmon: (ina3221) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/ina3221.c+7 -100 replies
13/29hwmon: (jc42) Replace S_<PERMS> with octal valuesdrivers/hwmon/jc42.c+4 -40 replies
14/29hwmon: (k8temp) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/k8temp.c+6 -60 replies
15/29hwmon: (lineage-pem) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/lineage-pem.c+33 -440 replies
16/29hwmon: (lm73) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/lm73.c+15 -190 replies
17/29hwmon: (lm75) Replace S_<PERMS> with octal valuesdrivers/hwmon/lm75.c+3 -30 replies
18/29hwmon: (lm77) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/lm77.c+21 -240 replies
19/29hwmon: (lm80) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/lm80.c+59 -790 replies
20/29hwmon: (lm83) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/lm83.c+29 -330 replies
21/29hwmon: (lm90) Replace S_<PERMS> with octal valuesdrivers/hwmon/lm90.c+6 -60 replies
22/29hwmon: (lm92) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/lm92.c+18 -210 replies
23/29hwmon: (lm93) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/lm93.c+256 -3740 replies
24/29hwmon: (lm95241) Replace S_<PERMS> with octal valuesdrivers/hwmon/lm95241.c+4 -40 replies
25/29hwmon: (lm95245) Replace S_<PERMS> with octal valuesdrivers/hwmon/lm95245.c+4 -40 replies
26/29hwmon: (ltc2990) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/ltc2990.c+11 -210 replies
27/29hwmon: (ltc4151) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/ltc4151.c+4 -70 replies
28/29hwmon: (ltc4222) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/ltc4222.c+25 -310 replies
29/29hwmon: (ltc4245) Replace S_<PERMS> with octal valuesdrivers/hwmon/ltc4245.c+4 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/29] hwmon: Use permission specific SENSOR[_DEVICE]_ATTR

Use SENSOR[_DEVICE]_ATTR[_2]_{RO,RW,WO} to simplify the source code, to improve readbility, and to reduce the chance of inconsistencies.

Also replace any remaining S_<PERMS> in the drivers with octal values.

The conversion was done automatically with coccinelle. The semantic patches and the scripts used to generate this commit log are available at
https://github.com/groeck/coccinelle-patches/hwmon/.

This patch series does not introduce functional changes. It was verified by compiling the old and new files and comparing text and data sizes.

Note that the conversion of DEVICE_ATTR to DEVICE_ATTR_{RO,RW} is not part of this series.

This is the second of three patch sets with auto-converted drivers. The remaining patches will be submitted shortly.