Skip to content

hwmon: Use permission specific SENSOR[_DEVICE]_ATTR variants

Guenter Roeck linux-hwmon lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest30 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/30hwmon: (abx500) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/abx500.c+46 -500 replies
2/30hwmon: (acpi_power_meter) Replace S_<PERMS> with octal valuesdrivers/hwmon/acpi_power_meter.c+2 -20 replies
3/30hwmon: (ad7314) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/ad7314.c+4 -50 replies
4/30hwmon: (ad7414) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/ad7414.c+12 -140 replies
5/30hwmon: (ad7418) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/ad7418.c+13 -140 replies
6/30hwmon: (adc128d818) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/adc128d818.c+55 -800 replies
7/30hwmon: (adcxx) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/adcxx.c+22 -220 replies
8/30hwmon: (adm1021) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/adm1021.c+22 -260 replies
9/30hwmon: (ads1015) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/ads1015.c+10 -100 replies
10/30hwmon: (ads7828) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/ads7828.c+10 -100 replies
11/30hwmon: (ads7871) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/ads7871.c+10 -100 replies
12/30hwmon: (adt7462) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/adt7462.c+271 -3750 replies
13/30hwmon: (adt7470) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/adt7470.c+158 -2450 replies
14/30hwmon: (adt7475) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/adt7475.c+126 -1820 replies
15/30hwmon: (adt7x10) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/adt7x10.c+25 -340 replies
16/30hwmon: (amc6821) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/amc6821.c+87 -1420 replies
17/30hwmon: (applesmc) Replace S_<PERMS> with octal valuesdrivers/hwmon/applesmc.c+1 -10 replies
18/30hwmon: (aspeed-pwm-tacho) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/aspeed-pwm-tacho.c+28 -521 reply
19/30hwmon: (asus_atk0110) Replace S_<PERMS> with octal valuesdrivers/hwmon/asus_atk0110.c+5 -50 replies
20/30hwmon: (coretemp) Replace S_<PERMS> with octal valuesdrivers/hwmon/coretemp.c+1 -10 replies
21/30hwmon: (da9052-hwmon) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/da9052-hwmon.c+39 -662 replies
22/30hwmon: (da9055-hwmon) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/da9055-hwmon.c+16 -251 reply
23/30hwmon: (dell-smm-hwmon) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/dell-smm-hwmon.c+27 -411 reply
24/30hwmon: (ds1621) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/ds1621.c+9 -110 replies
25/30hwmon: (ds620) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/ds620.c+9 -110 replies
26/30hwmon: (emc1403) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/emc1403.c+69 -950 replies
27/30hwmon: (emc2103) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/emc2103.c+39 -530 replies
28/30hwmon: (emc6w201) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/emc6w201.c+61 -890 replies
29/30hwmon: (fschmd) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/fschmd.c+116 -1190 replies
30/30hwmon: (ftsteutates) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/ftsteutates.c+89 -1130 replies

Reviews trailers per patch

3 of 30 patches have a Reviewed-by or Acked-by.

PatchJoel StanleySteve TwissPali Rohár
1/30
2/30
3/30
4/30
5/30
6/30
7/30
8/30
9/30
10/30
11/30
12/30
13/30
14/30
15/30
16/30
17/30
18/30T-b
19/30
20/30
21/30A-b
22/30A-b
23/30A-b
24/30
25/30
26/30
27/30
28/30
29/30
30/30

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

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

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.

This series includes about one third of the auto-converted drivers. The remaining patches will be submitted after the next commit window.