]> git.karo-electronics.de Git - linux-beck.git/commitdiff
extcon: arizona: Apply HP clamps correctly for WM8280
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thu, 30 Apr 2015 14:43:37 +0000 (23:43 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 19 May 2015 07:39:05 +0000 (16:39 +0900)
The headphone clamping is not set correctly currently, this was missed
because the wm8280 patches and the patch fixing the clamping for wm5110
went upstream at very similar times. This patch sets the headphone
clamping correctly for wm8280.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-arizona.c

index 50975b3123d629fa572aa54e4a159dcee429d8d1..5e08c358649b43d9d510f2de4caa542f8b229fd4 100644 (file)
@@ -145,6 +145,7 @@ static void arizona_extcon_hp_clamp(struct arizona_extcon_info *info,
 
        switch (arizona->type) {
        case WM5110:
+       case WM8280:
                mask = ARIZONA_HP1L_SHRTO | ARIZONA_HP1L_FLWR |
                       ARIZONA_HP1L_SHRTI;
                if (clamp)