android_kernel_xiaomi_sm8350/drivers/hwmon
Jean Delvare b353a487b9 hwmon: (lm85) Use dynamic sysfs callbacks
This lets us get rid of macro-generated functions and shrinks the
driver size by about 10%. I used a new style suggested by Mark M.
Hoffman to retrieve the channel number. Instead of:

	struct sensor_device_attribute *sda = to_sensor_dev_attr(attr);
	int nr = sda->index;

I do:

	int nr = to_sensor_dev_attr(attr)->index;

This looks better, and even allows the compiler to do some minor
optimizations.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
2007-10-09 22:56:30 -04:00
..
ams hwmon: clean up duplicate includes 2007-07-30 21:05:26 -04:00
abituguru3.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
abituguru.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
ad7418.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
adm1021.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
adm1025.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
adm1026.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
adm1029.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
adm1031.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
adm9240.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
adt7470.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
applesmc.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
asb100.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
atxp1.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
coretemp.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
dme1737.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
ds1621.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
f71805f.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
f71882fg.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
f75375s.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
fscher.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
fscpos.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
gl518sm.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
gl520sm.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
hdaps.c drivers/hwmon: switch to using input_dev->dev.parent 2007-05-10 09:26:53 -07:00
hwmon-vid.c hwmon-vid: Don't spam the logs when VRM version is missing 2007-05-27 22:17:43 +02:00
hwmon.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
it87.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
k8temp.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
Kconfig hwmon: Add f75375s driver 2007-10-09 22:56:29 -04:00
lm63.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
lm70.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
lm75.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
lm75.h hwmon: Allow writing of negative trigger temperatures 2007-10-09 22:56:29 -04:00
lm77.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
lm78.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
lm80.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
lm83.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
lm85.c hwmon: (lm85) Use dynamic sysfs callbacks 2007-10-09 22:56:30 -04:00
lm87.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
lm90.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
lm92.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
lm93.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
Makefile hwmon: Add f75375s driver 2007-10-09 22:56:29 -04:00
max1619.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
max6650.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
pc87360.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
pc87427.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
sis5595.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
smsc47b397.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
smsc47m1.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
smsc47m192.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
thmc50.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
via686a.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
vt1211.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
vt8231.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
w83l785ts.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
w83627ehf.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
w83627hf.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
w83781d.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
w83791d.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
w83792d.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00
w83793.c hwmon: Convert from class_device to device 2007-10-09 22:56:30 -04:00