Skip to content

Commit

Permalink
mfd: Correct revision display for WM1811 revision D
Browse files Browse the repository at this point in the history
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 <broonie@opensource.wolfsonmicro.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Mark Brown committed Dec 12, 2011
1 parent 43913e5 commit 443e67e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/mfd/wm8994-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 443e67e

Please sign in to comment.