Skip to content

hwmon: Use permission specific SENSOR[_DEVICE]_ATTR

Guenter Roeck linux-hwmon 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest30 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/30hwmon: (ltc4261) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/ltc4261.c+10 -180 replies
2/30hwmon: (max16065) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/max16065.c+82 -1430 replies
3/30hwmon: (max1619) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/max1619.c+15 -180 replies
4/30hwmon: (max31722) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/max31722.c+3 -50 replies
5/30hwmon: (max31790) Replace S_<PERMS> with octal valuesdrivers/hwmon/max31790.c+3 -30 replies
6/30hwmon: (max6639) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/max6639.c+43 -490 replies
7/30hwmon: (max6642) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/max6642.c+16 -150 replies
8/30hwmon: (max6650) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/max6650.c+3 -30 replies
9/30hwmon: (mc13783-adc) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/mc13783-adc.c+26 -230 replies
10/30hwmon: (nct7904) Replace S_<PERMS> with octal valuesdrivers/hwmon/nct7904.c+5 -50 replies
11/30hwmon: (nsa320-hwmon) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/nsa320-hwmon.c+4 -40 replies
12/30hwmon: (pc87360) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/pc87360.c+204 -2230 replies
13/30hwmon: (pc87427) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/pc87427.c+146 -1710 replies
14/30hwmon: (powr1220) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/powr1220.c+52 -920 replies
15/30hwmon: (sch5627) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/sch5627.c+73 -730 replies
16/30hwmon: (sch5636) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/sch5636.c+101 -1010 replies
17/30hwmon: (scmi-hwmon) Replace S_<PERMS> with octal valuesdrivers/hwmon/scmi-hwmon.c+1 -10 replies
18/30hwmon: (scpi-hwmon) Replace S_<PERMS> with octal valuesdrivers/hwmon/scpi-hwmon.c+2 -20 replies
19/30hwmon: (sht15) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/sht15.c+14 -200 replies
20/30hwmon: (sht21) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/sht21.c+7 -100 replies
21/30hwmon: (sht3x) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/sht3x.c+16 -340 replies
22/30hwmon: (smsc47b397) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/smsc47b397.c+12 -120 replies
23/30hwmon: (stts751) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/stts751.c+32 -320 replies
24/30hwmon: (tc654) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/tc654.c+27 -330 replies
25/30hwmon: (tc74) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/tc74.c+2 -20 replies
26/30hwmon: (tmp102) Replace S_<PERMS> with octal valuesdrivers/hwmon/tmp102.c+2 -20 replies
27/30hwmon: (tmp103) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/tmp103.c+8 -120 replies
28/30hwmon: (tmp421) Replace S_<PERMS> with octal valuesdrivers/hwmon/tmp421.c+2 -20 replies
29/30hwmon: (vexpress-hwmon) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/vexpress-hwmon.c+10 -159 replies
30/30hwmon: (via-cputemp) Use permission specific SENSOR[_DEVICE]_ATTR variantsdrivers/hwmon/via-cputemp.c+7 -80 replies

Reviews trailers per patch

1 of 30 patches has a Reviewed-by or Acked-by.

PatchSudeep HollaLiviu Dudau
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/30
19/30
20/30
21/30
22/30
23/30
24/30
25/30
26/30
27/30
28/30
29/30A-b A-b
30/30

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/30] 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 final patch set with auto-converted drivers.