tmp_suning_uos_patched/drivers/hwmon
Guenter Roeck 6106db25c2 hwmon: (ina2xx) Use structure array to distinguish chip types
Replace per-device initialization and per-device calculation code with
per-device configuration data, which is then used to configure the chip and
perform calculations based on that data.

This patch reduces code size by more than 400 bytes on x86_64.

Cc: Lothar Felten <l-felten@ti.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
2012-09-23 21:08:34 -07:00
..
pmbus hwmon: (pmbus_core) Fix compiler warning 2012-04-09 12:17:38 -07:00
abituguru.c hwmon: (abituguru) Convert to use devm_ functions 2012-09-23 21:08:29 -07:00
abituguru3.c hwmon: (abituguru3) Convert to use devm_ functions 2012-09-23 21:08:29 -07:00
acpi_power_meter.c hwmon: (acpi_power_meter) Fix build warning 2012-07-27 13:59:13 -07:00
ad7314.c hwmon: (ad7314) Convert to use devm_ functions 2012-09-23 21:08:29 -07:00
ad7414.c hwmon: (ad7414) Convert to use devm_ functions 2012-09-23 21:08:29 -07:00
ad7418.c hwmon: (ad7418) Convert to use devm_ functions 2012-09-23 21:08:29 -07:00
adcxx.c hwmon: (adcxx) Convert to use devm_ functions 2012-09-23 21:08:29 -07:00
adm1021.c hwmon: (adm1021) Convert to use devm_ functions 2012-07-21 21:48:39 -07:00
adm1025.c hwmon: (adm1025) Convert to use devm_ functions 2012-07-21 21:48:38 -07:00
adm1026.c hwmon: (adm1026) Convert to use devm_ functions 2012-07-21 21:48:39 -07:00
adm1029.c hwmon: (adm1029) Convert to use devm_ functions 2012-09-23 21:08:29 -07:00
adm1031.c hwmon: (adm1031) Convert to use devm_ functions 2012-07-21 21:48:39 -07:00
adm9240.c hwmon: (adm9240) Remove legacy chassis intrusion detection sysfs attribute 2012-09-23 21:08:34 -07:00
ads1015.c hwmon: (ads1015) Convert to use devm_ functions 2012-09-23 21:08:30 -07:00
ads7828.c hwmon: (ads7828) Convert to use devm_ functions 2012-09-23 21:08:30 -07:00
ads7871.c hwmon: (ads7871) Convert to use devm_ functions 2012-09-23 21:08:30 -07:00
adt7410.c hwmon: (adt7410) handle errors from adt7410_update_device() 2012-09-23 21:08:33 -07:00
adt7411.c hwmon: (adt7411) Convert to use devm_ functions 2012-09-23 21:08:30 -07:00
adt7462.c hwmon: (adt7462) Convert to use devm_ functions 2012-09-23 21:08:30 -07:00
adt7470.c hwmon: (adt7470) Convert to use devm_ functions 2012-09-23 21:08:30 -07:00
adt7475.c hwmon: (adt7475) Convert to use devm_ functions 2012-07-21 21:48:38 -07:00
amc6821.c hwmon: (amc6821) Convert to use devm_ functions 2012-09-23 21:08:30 -07:00
applesmc.c hwmon: (applesmc) Bump max wait 2012-09-18 13:20:49 -07:00
asb100.c hwmon: (asb100) Convert to use devm_ functions 2012-09-23 21:08:30 -07:00
asc7621.c hwmon: (asc7621) Convert to use devm_ functions 2012-07-21 21:48:40 -07:00
asus_atk0110.c hwmon: (asus_atk0110) Add quirk for Asus M5A78L 2012-08-22 22:33:31 -07:00
atxp1.c hwmon: (atxp1) Convert to use devm_ functions 2012-07-21 21:48:39 -07:00
coretemp.c hwmon: (coretemp) Use get_online_cpus to avoid races involving CPU hotplug 2012-09-23 20:27:32 +02:00
da9052-hwmon.c hwmon: Driver for DA9052/53 PMIC 2012-07-21 21:48:37 -07:00
dme1737.c hwmon: (dme1737) Convert to use devm_ functions 2012-09-23 21:08:30 -07:00
ds620.c hwmon: (ds620) Convert to use devm_ functions 2012-09-23 21:08:31 -07:00
ds1621.c hwmon: (ds1621) Convert to use devm_ functions 2012-07-21 21:48:39 -07:00
emc6w201.c hwmon: (emc6w201) Convert to use devm_ functions 2012-07-21 21:48:39 -07:00
emc1403.c hwmon: (emc1403) Convert to use devm_ functions 2012-09-23 21:08:31 -07:00
emc2103.c hwmon: (emc2103) Convert to use devm_ functions 2012-09-23 21:08:31 -07:00
exynos4_tmu.c hwmon: (exynos4_tmu) Use struct dev_pm_ops for power management 2012-07-21 21:48:44 -07:00
f71805f.c hwmon: (f71805f) Convert to use devm_ functions 2012-07-21 21:48:38 -07:00
f71882fg.c hwmon: (f71882fg) Convert to use devm_ functions 2012-09-23 21:08:31 -07:00
f75375s.c hwmon: (f75375s) Convert to use devm_ functions 2012-09-23 21:08:31 -07:00
fam15h_power.c hwmon: (fam15h_power) Convert to use devm_ functions 2012-09-23 21:08:33 -07:00
fschmd.c watchdog: nowayout is bool 2012-03-27 20:06:02 +02:00
g760a.c hwmon: (g760a) Convert to use devm_ functions 2012-09-23 21:08:31 -07:00
gl518sm.c hwmon: (gl518sm) Convert to use devm_ functions 2012-07-21 21:48:39 -07:00
gl520sm.c hwmon: (gl520sm) Convert to use devm_ functions 2012-07-21 21:48:40 -07:00
gpio-fan.c hwmon: (gpio-fan) Use struct dev_pm_ops for power management 2012-07-21 21:48:44 -07:00
hih6130.c hwmon: Honeywell Humidicon HIH-6130/HIH-6131 humidity and temperature sensor driver 2012-07-21 21:48:44 -07:00
hwmon-vid.c hwmon: (hwmon-vid) Fix checkpatch issues 2012-03-18 18:27:44 -07:00
hwmon.c hwmon: (hwmon) Fix multi-line comments 2012-03-18 18:26:52 -07:00
i5k_amb.c hwmon: (i5k_amb) fix checkpatch issues 2012-03-18 18:26:30 -07:00
ibmaem.c hwmon: (ibmaem) fix checkpatch issues 2012-03-18 18:26:35 -07:00
ibmpex.c
ina2xx.c hwmon: (ina2xx) Use structure array to distinguish chip types 2012-09-23 21:08:34 -07:00
it87.c hwmon: (it87) Preserve configuration register bits on init 2012-07-12 22:47:37 +02:00
jc42.c hwmon: (jc42) Don't reset hysteresis on device removal 2012-07-27 13:59:22 -07:00
jz4740-hwmon.c hwmon: (jz4740-hwmon) Convert to use devm_ functions 2012-09-23 21:08:33 -07:00
k8temp.c hwmon: (k8temp) Convert to use devm_ functions 2012-07-21 21:48:43 -07:00
k10temp.c x86, amd_nb: Export model 0x10 and later PCI id 2012-06-07 12:43:41 +02:00
Kconfig hwmon: (max1111) Add support for MAX1110, MAX1112, and MAX1113 2012-09-23 21:08:34 -07:00
lineage-pem.c hwmon: Update my e-mail address 2012-06-25 06:46:24 -07:00
lm63.c hwmon: (lm63) Convert to use devm_ functions 2012-07-21 21:48:40 -07:00
lm70.c hwmon: (lm70) Add support for LM71 and LM74 2012-09-23 21:08:34 -07:00
lm73.c hwmon: convert drivers/hwmon/* to use module_i2c_driver() 2012-03-18 18:26:50 -07:00
lm75.c hwmon: (lm75) Convert to use devm_ functions 2012-07-21 21:48:40 -07:00
lm75.h hwmon: (lm75) fix checkpatch warnings 2012-01-05 08:19:35 -08:00
lm77.c hwmon: (lm77) Convert to use devm_ functions 2012-07-21 21:48:40 -07:00
lm78.c hwmon: (lm78) Convert to use devm_ functions 2012-07-21 21:48:38 -07:00
lm80.c hwmon: (lm80) Convert to use devm_ functions 2012-07-21 21:48:40 -07:00
lm83.c hwmon: (lm83) Convert to use devm_ functions 2012-07-21 21:48:38 -07:00
lm85.c hwmon: (lm85) Convert to use devm_ functions 2012-07-21 21:48:40 -07:00
lm87.c hwmon: (lm87) Convert to use devm_ functions 2012-07-21 21:48:40 -07:00
lm90.c hwmon: (lm90) Convert to use devm_ functions 2012-07-21 21:48:38 -07:00
lm92.c hwmon: (lm92) Convert to use devm_ functions 2012-07-21 21:48:41 -07:00
lm93.c hwmon: (lm93) Convert to use devm_ functions 2012-07-21 21:48:41 -07:00
lm95241.c hwmon: (lm95241) Convert to use devm_ functions 2012-09-23 21:08:31 -07:00
lm95245.c hwmon: (lm95245) Convert to use devm_ functions 2012-09-23 21:08:31 -07:00
ltc4151.c hwmon: (ltc4151) Convert to use devm_ functions 2012-09-23 21:08:32 -07:00
ltc4215.c hwmon: (ltc4215) Convert to use devm_ functions 2012-09-23 21:08:32 -07:00
ltc4245.c hwmon: (ltc4245) Convert to use devm_ functions 2012-09-23 21:08:32 -07:00
ltc4261.c hwmon: Update my e-mail address 2012-06-25 06:46:24 -07:00
Makefile hwmon: add Maxim MAX197 support 2012-09-23 21:08:33 -07:00
max197.c hwmon: add Maxim MAX197 support 2012-09-23 21:08:33 -07:00
max1111.c hwmon: (max1111) Add support for MAX1110, MAX1112, and MAX1113 2012-09-23 21:08:34 -07:00
max1619.c hwmon: (max1619) Convert to use devm_ functions 2012-07-21 21:48:41 -07:00
max1668.c hwmon: (max1668) Convert to use devm_ functions 2012-09-23 21:08:32 -07:00
max6639.c hwmon: (max6639) Convert to use devm_ functions 2012-07-21 21:48:38 -07:00
max6642.c hwmon: (max6642) Convert to use devm_ functions 2012-07-21 21:48:41 -07:00
max6650.c hwmon: (max6650) Convert to use devm_ functions 2012-07-21 21:48:37 -07:00
max16065.c hwmon: Update my e-mail address 2012-06-25 06:46:24 -07:00
mc13783-adc.c hwmon: (mc13783-adc.c) Convert to use devm_ functions 2012-07-21 21:48:38 -07:00
mcp3021.c hwmon: (mcp3021) Convert to use devm_ functions 2012-09-23 21:08:32 -07:00
ntc_thermistor.c hwmon: (ntc_thermistor) Ensure that data->name string is terminated 2012-07-21 21:48:44 -07:00
pc87360.c hwmon: (pc87360) Convert to use devm_ functions 2012-07-21 21:48:38 -07:00
pc87427.c hwmon: (pc87427) Convert to use devm_ functions 2012-07-21 21:48:41 -07:00
pcf8591.c hwmon: (pcf8591) Convert to use devm_ functions 2012-07-21 21:48:41 -07:00
s3c-hwmon.c hwmon: (s3c-hwmon) Use devm_kzalloc instead of kzalloc 2012-07-21 21:48:45 -07:00
sch56xx-common.c hwmon: (sch56xx-common) Fix build warnings 2012-09-23 21:08:29 -07:00
sch56xx-common.h watchdog: sch56xx: Use watchdog core 2012-05-30 07:55:38 +02:00
sch5627.c hwmon: (sch5627) Convert to use devm_ functions 2012-09-23 21:08:32 -07:00
sch5636.c hwmon: (sch5636) Convert to use devm_ functions 2012-09-23 21:08:32 -07:00
sht15.c hwmon: (sht15) remove multiple driver registration 2012-09-23 21:08:34 -07:00
sht21.c hwmon: (sht21) Convert to use devm_ functions 2012-09-23 21:08:32 -07:00
sis5595.c hwmon: (sis5595) Convert to use devm_ functions 2012-07-21 21:48:42 -07:00
smm665.c hwmon: (smm665) Convert to use devm_kzalloc 2012-03-18 18:27:47 -07:00
smsc47b397.c hwmon: (smsc47b397) Convert to use devm_ functions 2012-07-21 21:48:43 -07:00
smsc47m1.c hwmon: (smsc47m1) Convert to use devm_ functions 2012-07-21 21:48:43 -07:00
smsc47m192.c hwmon: (smsc47m192) Convert to use devm_ functions 2012-07-21 21:48:43 -07:00
thmc50.c hwmon: (thmc50) Convert to use devm_ functions 2012-07-21 21:48:42 -07:00
tmp102.c hwmon: (tmp102) Convert to use devm_ functions 2012-07-21 21:48:42 -07:00
tmp401.c hwmon: (tmp401) Convert to use devm_ functions 2012-07-21 21:48:42 -07:00
tmp421.c hwmon: (tmp421) Convert to use devm_ functions 2012-07-21 21:48:42 -07:00
twl4030-madc-hwmon.c hwmon: (twl4030-madc-hwmon) Initialize uninitialized structure elements 2012-09-11 21:16:27 -07:00
ultra45_env.c hwmon: (ultra45_env) Fix checkpatch issues 2012-03-18 18:27:10 -07:00
via-cputemp.c hwmon: (via-cputemp) Convert to use devm_ functions 2012-09-23 21:08:33 -07:00
via686a.c hwmon: (via686a) Convert to use devm_ functions 2012-07-21 21:48:42 -07:00
vt1211.c hwmon: (vt1211) Convert to use devm_ functions 2012-07-21 21:48:42 -07:00
vt8231.c hwmon: (vt8231) Convert to use devm_ functions 2012-09-23 21:08:33 -07:00
w83l785ts.c hwmon: (w83l785ts) Convert to use devm_ functions 2012-07-21 21:48:43 -07:00
w83l786ng.c hwmon: (w83l786ng) Convert to use devm_ functions 2012-09-23 21:08:33 -07:00
w83627ehf.c hwmon: (w83627ehf) Add missing break statement 2012-07-21 21:48:28 -07:00
w83627hf.c sections: Fix section conflicts in drivers/hwmon 2012-08-18 16:17:43 -07:00
w83781d.c hwmon: (w83781d) Fix compile warning 2012-07-21 21:48:45 -07:00
w83791d.c hwmon: (w83791d) Convert to use devm_ functions 2012-07-21 21:48:43 -07:00
w83792d.c hwmon: (w83792d) Remove legacy chassis intrusion detection attributes 2012-09-23 21:08:34 -07:00
w83793.c hwmon: (w83793) Remove legacy chassis intrusion detection sysfs attributes 2012-09-23 21:08:34 -07:00
w83795.c hwmon: (w83795) Convert to use devm_ functions 2012-07-21 21:48:39 -07:00
wm831x-hwmon.c hwmon: (wm831x-hwmon) Convert to use devm_ functions 2012-07-21 21:48:37 -07:00
wm8350-hwmon.c hwmon: (wm8350-hwmon) Constify fixed string array 2012-03-18 18:27:00 -07:00