mfd: Refactor WM8350 chip identification
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 24 Nov 2008 19:22:58 +0000 (20:22 +0100)
committerSamuel Ortiz <samuel@sortiz.org>
Sun, 4 Jan 2009 11:17:39 +0000 (12:17 +0100)
commitb797a5551979da22b0a35632198ffc8a330d9537
tree664747dc55889cd30a7d853e2fe5e816a2d9d6a2
parentd756f4a4446227ca9626087939a6769ca55ab036
mfd: Refactor WM8350 chip identification

Since the WM8350 driver was originally written the semantics for the
identification registers of the chip have been clarified, allowing
us to do an exact match on all the fields. This avoids mistakenly
running on unsupported hardware.

Also change to using the datasheet names more consistently for
legibility and fix a printk() that should be dev_err().

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
drivers/mfd/wm8350-core.c
include/linux/mfd/wm8350/core.h