Thread (12 messages) flat view 12 messages, 2 authors, 2014-08-30
STALE4411d

[PATCH 07/11] mfd: wm5102: Insert missing break in case statement

From: Lee Jones <hidden>
Date: 2014-08-28 13:16:02
Also in: lkml
Subsystem: multifunction devices (mfd), the rest, wolfson microelectronics drivers · Maintainers: Lee Jones, Linus Torvalds

Chip identifier wm5102_reva_patch is always overwritten with
wm5102_revb_patch, even when the code is run on a Rev-A chip.  Place
in the missing break to force the code into doing something sensible
instead.

Signed-off-by: Lee Jones <redacted>
---
 drivers/mfd/wm5102-tables.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/mfd/wm5102-tables.c b/drivers/mfd/wm5102-tables.c
index fb4d4bb..a219888 100644
--- a/drivers/mfd/wm5102-tables.c
+++ b/drivers/mfd/wm5102-tables.c
@@ -87,6 +87,7 @@ int wm5102_patch(struct arizona *arizona)
 	case 0:
 		wm5102_patch = wm5102_reva_patch;
 		patch_size = ARRAY_SIZE(wm5102_reva_patch);
+		break;
 	default:
 		wm5102_patch = wm5102_revb_patch;
 		patch_size = ARRAY_SIZE(wm5102_revb_patch);
-- 
1.9.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help