Skip to content
Commit 709c2c70 authored by Beomho Seo's avatar Beomho Seo Committed by Sebastian Reichel
Browse files

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: default avatarBeomho Seo <beomho.seo@samsung.com>
Reviewed-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 7be5ac2c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment