Commit 7e968985 authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Mark Brown

Input: twl6040-vibra: Use accessor to get revision information

Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: default avatarDmitry Torokhov <dtor@mail.ru>
Acked-by: default avatarLiam Girdwood <lrg@ti.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent a69882ae
...@@ -97,7 +97,7 @@ static void twl6040_vibra_enable(struct vibra_info *info) ...@@ -97,7 +97,7 @@ static void twl6040_vibra_enable(struct vibra_info *info)
} }
twl6040_power(info->twl6040, 1); twl6040_power(info->twl6040, 1);
if (twl6040->rev <= TWL6040_REV_ES1_1) { if (twl6040_get_revid(twl6040) <= TWL6040_REV_ES1_1) {
/* /*
* ERRATA: Disable overcurrent protection for at least * ERRATA: Disable overcurrent protection for at least
* 3ms when enabling vibrator drivers to avoid false * 3ms when enabling vibrator drivers to avoid false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment