Skip to content

hwmon: Introduce SENSOR_DEVICE_ATTR_{RO, RW, WO} and variants

Guenter Roeck linux-hwmon lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13hwmon: Introduce SENSOR_DEVICE_ATTR_{RO, RW, WO} and variantsDocumentation/hwmon/hwmon-kernel-api.txt include/linux/hwmon-sysfs.h+55 -80 replies
2/13hwmon: (ltc2945): Auto-convert to use SENSOR_DEVICE_ATTR_{RO, RW, WO}drivers/hwmon/ltc2945.c+50 -710 replies
3/13hwmon: (k10temp) Auto-convert to use SENSOR_DEVICE_ATTR_{RO, RW, WO}drivers/hwmon/k10temp.c+5 -50 replies
4/13hwmon: (lm95234) Auto-convert to use SENSOR_DEVICE_ATTR_{RO, RW, WO}drivers/hwmon/lm95234.c+67 -940 replies
5/13hwmon: (nct7802) Auto-convert to use SENSOR_DEVICE_ATTR_{RO, RW, WO}drivers/hwmon/nct7802.c+157 -2510 replies
6/13hwmon: (ltc4260) Auto-convert to use SENSOR_DEVICE_ATTR_{RO, RW, WO}drivers/hwmon/ltc4260.c+10 -160 replies
7/13hwmon: (max6650) Auto-convert to use SENSOR_DEVICE_ATTR_{RO, RW, WO}drivers/hwmon/max6650.c+13 -180 replies
8/13hwmon: (ntc_thermistor) Auto-convert to use SENSOR_DEVICE_ATTR_{RO, RW, WO}drivers/hwmon/ntc_thermistor.c+6 -60 replies
9/13hwmon: (pwm-fan) Auto-convert to use SENSOR_DEVICE_ATTR_{RO, RW, WO}drivers/hwmon/pwm-fan.c+5 -50 replies
10/13hwmon: (max6697) Auto-convert to use SENSOR_DEVICE_ATTR_{RO, RW, WO}drivers/hwmon/max6697.c+64 -800 replies
11/13hwmon: (tmp401) Auto-convert to use SENSOR_DEVICE_ATTR_{RO, RW, WO}drivers/hwmon/tmp401.c+57 -690 replies
12/13hwmon: (ina2xx) Auto-convert to use SENSOR_DEVICE_ATTR_{RO, RW, WO}drivers/hwmon/ina2xx.c+14 -220 replies
13/13hwmon: (ltc4215) Auto-convert to use SENSOR_DEVICE_ATTR_{RO, RW, WO}drivers/hwmon/ltc4215.c+16 -260 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/13] hwmon: Introduce SENSOR_DEVICE_ATTR_{RO, RW, WO} and variants

Introduce SENSOR_DEVICE_ATTR_{RO,RW,WO} and SENSOR_DEVICE_ATTR_2_{RO,RW,WO} as simplified variants of SENSOR_DEVICE_ATTR and SENSOR_DEVICE_ATTR_2 to simplify the source code, improve readbility, and reduce the chance of inconsistencies.

This series introduces the new macros and converts some of the drivers. The first patch was first submitted almost two years ago and has since been dormant. It is unchanged from the first submission.

The driver conversion was done with the Coccinelle script at
https://github.com/groeck/coccinelle-patches/raw/master/hwmon/sensor-devattr-w6.cocci

This series targets v4.21 (v5.0). More conversions will follow with subsequent kernel releases.