diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-05-12 11:21:01 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2012-09-23 21:08:34 -0700 |
commit | 6106db25c27550337a1d701631093cdfc645aa7b (patch) | |
tree | 22797d324f513dd903c702801d70248be24159cf /lib/dma-debug.c | |
parent | 9224c38a312a339f1c9c2115a1f379c9f8f1731e (diff) | |
download | blackbird-op-linux-6106db25c27550337a1d701631093cdfc645aa7b.tar.gz blackbird-op-linux-6106db25c27550337a1d701631093cdfc645aa7b.zip |
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>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions