diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-11-24 20:20:30 +0100 |
---|---|---|
committer | Samuel Ortiz <samuel@sortiz.org> | 2009-01-04 12:17:38 +0100 |
commit | d756f4a4446227ca9626087939a6769ca55ab036 (patch) | |
tree | 572e6788f3aa01c74c1c8ebb139b0d8a137cdd72 /drivers/power | |
parent | 14431aa0c5a443d13d24e6f865a8838f97dab973 (diff) |
mfd: Switch WM8350 revision detection to a feature based model
Rather than check for chip revisions in the WM8350 drivers have the core
code set flags for relevant differences.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
Diffstat (limited to 'drivers/power')
-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) static inline int wm8350_charge_time_min(struct wm8350 *wm8350, int min) { - if (wm8350->rev < WM8350_REV_G) + if (!wm8350->power.rev_g_coeff) return (((min - 30) / 15) & 0xf) << 8; else return (((min - 30) / 30) & 0xf) << 8; |