mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-22 16:20:22 +07:00
mfd: Restructure wm8994-core device revision handling
Switch on the device type before revision since anything we do here will be device as well as revision specific. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
d1738aef38
commit
a2495bc727
@ -476,13 +476,18 @@ static int wm8994_device_init(struct wm8994 *wm8994, int irq)
|
|||||||
goto err_enable;
|
goto err_enable;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (ret) {
|
switch (wm8994->type) {
|
||||||
case 0:
|
case WM8994:
|
||||||
case 1:
|
switch (ret) {
|
||||||
if (wm8994->type == WM8994)
|
case 0:
|
||||||
|
case 1:
|
||||||
dev_warn(wm8994->dev,
|
dev_warn(wm8994->dev,
|
||||||
"revision %c not fully supported\n",
|
"revision %c not fully supported\n",
|
||||||
'A' + ret);
|
'A' + ret);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user