Skip to contentSkip to conversation

mfd: wm8994: Make current device behaviour the default

PATCH Applied Mark Brown 2 participants 2 messages Nov 27, 2012 – Nov 30, 2012

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 mfd: wm8994: Make current device behaviour the default

As the wm8994 series of devices are now very mature make the current behaviour of the devices the default behaviour, any future revisions are likely to have only minor updates.

---
 drivers/mfd/wm8994-core.c |   18 ++++--------------
 1 file changed, 4 insertions(+), 14 deletions(-)
drivers/mfd/wm8994-core.c +4 -14
index 2f6f7db..0596d61 100644
@@ -596,11 +596,10 @@ static __devinit int wm8994_device_init(struct wm8994 *wm8994, int irq)
 			break;
 		case 2:
 		case 3:
+		default:
 			regmap_patch = wm8994_revc_patch;
 			patch_regs = ARRAY_SIZE(wm8994_revc_patch);
 			break;
-		default:
-			break;
 		}
 		break;
 
@@ -619,18 +618,9 @@ static __devinit int wm8994_device_init(struct wm8994 *wm8994, int irq)
 		/* Revision C did not change the relevant layer */
 		if (wm8994->revision > 1)
 			wm8994->revision++;
-		switch (wm8994->revision) {
-		case 0:
-		case 1:
-		case 2:
-		case 3:
-		case 4:
-			regmap_patch = wm1811_reva_patch;
-			patch_regs = ARRAY_SIZE(wm1811_reva_patch);
-			break;
-		default:
-			break;
-		}
+
+		regmap_patch = wm1811_reva_patch;
+		patch_regs = ARRAY_SIZE(wm1811_reva_patch);
 		break;
 
 	default:
Signature · 1 line
1.7.10.4
Applied
#1 lore raw

Hi Mark,

Quoted 8 lines · Mark Brown

As the wm8994 series of devices are now very mature make the current behaviour of the devices the default behaviour, any future revisions are likely to have only minor updates.

---
 drivers/mfd/wm8994-core.c |   18 ++++--------------
 1 file changed, 4 insertions(+), 14 deletions(-)

Applied, thanks.

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/