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
..
2012-09-18 13:20:49 -07:00
2012-03-27 20:06:02 +02:00
2012-03-18 18:26:52 -07:00
2012-03-18 18:26:35 -07:00
2012-06-25 06:46:24 -07:00
2012-01-05 08:19:35 -08:00
2012-06-25 06:46:24 -07:00
2012-09-23 21:08:33 -07:00
2012-09-23 21:08:33 -07:00
2012-06-25 06:46:24 -07:00
2012-07-21 21:48:45 -07:00