power: max17048: fix bug in version check func
authorHyongbin Kim <hyongbink@nvidia.com>
Wed, 24 Jul 2013 12:03:43 +0000 (21:03 +0900)
committerRiham Haidar <rhaidar@nvidia.com>
Sun, 8 Sep 2013 07:36:44 +0000 (00:36 -0700)
commitc1ec124f481970af3e53b881a7c49863d75fd244
tree750800492fccd56a10b7ef20e66f5facf0fee9d1
parent4dc6d4ea67cd971f9916f6a2aaa02f9e80148cca
power: max17048: fix bug in version check func

1. Add 0x12 version value in max17048_check_battery().
2. remove duplicate call swab16 in max17048_get_version().
3. call max17048_get_version() in probe fuction instead of
max17048_check_battery().

max17048_check_battery() doesn't return version.
using max17048_get_version() is right.

Change-Id: Ie039e1bcffd5b2fb8080f6b3f25bbfc51d52990e
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/252892
(cherry picked from commit 4d914a5bee3f2327fac46db7d49e23e56d9e1991)
Reviewed-on: http://git-master/r/271358
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/power/max17048_battery.c