commit | 6106db25c27550337a1d701631093cdfc645aa7b | [log] [tgz] |
---|---|---|
author | Guenter Roeck <linux@roeck-us.net> | Sat May 12 11:21:01 2012 -0700 |
committer | Guenter Roeck <linux@roeck-us.net> | Sun Sep 23 21:08:34 2012 -0700 |
tree | 22797d324f513dd903c702801d70248be24159cf | |
parent | 9224c38a312a339f1c9c2115a1f379c9f8f1731e [diff] |
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>