From: Beomho Seo Date: Fri, 3 Apr 2015 08:26:08 +0000 (+0900) Subject: power: max17042_battery: Use reg type instead of chip type X-Git-Tag: omap-for-v4.1/fixes-rc1~174^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=709c2c70c8ea73f488971f1de3c39fbdac995951;p=pandora-kernel.git power: max17042_battery: Use reg type instead of chip type Currently, max17042 battery driver choose register map by MAX17042_DevName register. But it is return IC specific firmware version. So other maxim chip hard to use this drvier. This patch choose chip type from driver_data. Signed-off-by: Beomho Seo Reviewed-by: Krzysztof Kozlowski Signed-off-by: Sebastian Reichel --- Reading git-diff-tree failed