diff options
Diffstat (limited to 'drivers/power/wm8350_power.c')
-rw-r--r-- | drivers/power/wm8350_power.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/wm8350_power.c b/drivers/power/wm8350_power.c index 9c0a847a1139..74e7593beffb 100644 --- a/drivers/power/wm8350_power.c +++ b/drivers/power/wm8350_power.c | |||
@@ -44,7 +44,7 @@ static int wm8350_read_usb_uvolts(struct wm8350 *wm8350) | |||
44 | 44 | ||
45 | static inline int wm8350_charge_time_min(struct wm8350 *wm8350, int min) | 45 | static inline int wm8350_charge_time_min(struct wm8350 *wm8350, int min) |
46 | { | 46 | { |
47 | if (wm8350->rev < WM8350_REV_G) | 47 | if (!wm8350->power.rev_g_coeff) |
48 | return (((min - 30) / 15) & 0xf) << 8; | 48 | return (((min - 30) / 15) & 0xf) << 8; |
49 | else | 49 | else |
50 | return (((min - 30) / 30) & 0xf) << 8; | 50 | return (((min - 30) / 30) & 0xf) << 8; |