From: Guenter Roeck Date: Sat, 12 May 2012 18:21:01 +0000 (-0700) Subject: hwmon: (ina2xx) Use structure array to distinguish chip types X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~72^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6106db25c27550337a1d701631093cdfc645aa7b;p=pandora-kernel.git 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 Signed-off-by: Guenter Roeck Acked-by: Jean Delvare --- Reading git-diff-tree failed