mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
mfd: WM835x GPIO direction register is not locked
No need to set the security key when writing to it. Signed-off-by: Mark Brown <[email protected]> Cc: [email protected] Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
64e8867ba8
commit
8e6ba2dfa2
1 changed files with 1 additions and 2 deletions
|
|
@ -134,8 +134,7 @@ static inline int is_reg_locked(struct wm8350 *wm8350, u8 reg)
|
|||
wm8350->reg_cache[WM8350_SECURITY] == WM8350_UNLOCK_KEY)
|
||||
return 0;
|
||||
|
||||
if ((reg == WM8350_GPIO_CONFIGURATION_I_O) ||
|
||||
(reg >= WM8350_GPIO_FUNCTION_SELECT_1 &&
|
||||
if ((reg >= WM8350_GPIO_FUNCTION_SELECT_1 &&
|
||||
reg <= WM8350_GPIO_FUNCTION_SELECT_4) ||
|
||||
(reg >= WM8350_BATTERY_CHARGER_CONTROL_1 &&
|
||||
reg <= WM8350_BATTERY_CHARGER_CONTROL_3))
|
||||
|
|
|
|||
Loading…
Reference in a new issue