mfd: Correct revision display for WM1811 revision D

As WM1811 revision C was transparent to software the revision IDs for
subsequent revisions are one less than they would normally be. Correct
for this in log messages.

Signed-off-by: Mark Brown <[email protected]>
Acked-by: Samuel Ortiz <[email protected]>
This commit is contained in:
Mark Brown 2011-11-30 16:51:04 +00:00
commit 443e67ed8d

View file

@ -460,6 +460,11 @@ static int wm8994_device_init(struct wm8994 *wm8994, int irq)
break;
}
break;
case WM1811:
/* Revision C did not change the relevant layer */
if (ret > 1)
ret++;
break;
default:
break;
}