summaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci_platform.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2012-05-12 11:21:01 -0700
committerGuenter Roeck <linux@roeck-us.net>2012-09-23 21:08:34 -0700
commit6106db25c27550337a1d701631093cdfc645aa7b (patch)
tree22797d324f513dd903c702801d70248be24159cf /drivers/ata/ahci_platform.c
parent9224c38a312a339f1c9c2115a1f379c9f8f1731e (diff)
downloadop-kernel-dev-6106db25c27550337a1d701631093cdfc645aa7b.zip
op-kernel-dev-6106db25c27550337a1d701631093cdfc645aa7b.tar.gz
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 'drivers/ata/ahci_platform.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud