power: max17048_battery: fix version check fnuction
authorHyongbin Kim <hyongbink@nvidia.com>
Wed, 24 Jul 2013 12:03:43 +0000 (21:03 +0900)
committerGabby Lee <galee@nvidia.com>
Wed, 24 Jul 2013 12:14:53 +0000 (05:14 -0700)
commit4d914a5bee3f2327fac46db7d49e23e56d9e1991
tree8ad35c7482e2ce19018900845e05da13df4b986d
parent2f7375070142f33d00bc97fc47d2c8ba5f5f3d77
power: max17048_battery: fix version check fnuction

Add 0x12 value in max17048_check_battery().
remove duplicate call swab16 in max17048_get_version().
call max17048_get_version() in probe fuction to show version.

Change-Id: Ie039e1bcffd5b2fb8080f6b3f25bbfc51d52990e
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/252892
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
drivers/power/max17048_battery.c