diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-07 10:03:22 +0100 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2016-04-30 11:04:04 +0200 |
commit | cda13403633be4d5d2e94a1f05aa65e5bda2413c (patch) | |
tree | 71dabd148a10a11e30aec796d16821f64d041584 /drivers/mfd | |
parent | e55068623e2703bfb46d8ef0fd9a78dc5e256c7d (diff) | |
download | kernel_samsung_espresso10-cda13403633be4d5d2e94a1f05aa65e5bda2413c.zip kernel_samsung_espresso10-cda13403633be4d5d2e94a1f05aa65e5bda2413c.tar.gz kernel_samsung_espresso10-cda13403633be4d5d2e94a1f05aa65e5bda2413c.tar.bz2 |
mfd: Read CUST_ID from the wm8994 device
Read CUST_ID from the device and log it for diagnostics.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/wm8994-core.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mfd/wm8994-core.c b/drivers/mfd/wm8994-core.c index e0ff330..05802b9 100644 --- a/drivers/mfd/wm8994-core.c +++ b/drivers/mfd/wm8994-core.c @@ -569,7 +569,8 @@ static int wm8994_device_init(struct wm8994 *wm8994, int irq) ret); goto err_enable; } - wm8994->revision = ret; + wm8994->revision = ret & WM8994_CHIP_REV_MASK; + wm8994->cust_id = (ret & WM8994_CUST_ID_MASK) >> WM8994_CUST_ID_SHIFT; switch (wm8994->type) { case WM8994: @@ -593,8 +594,8 @@ static int wm8994_device_init(struct wm8994 *wm8994, int irq) break; } - dev_info(wm8994->dev, "%s revision %c\n", devname, - 'A' + wm8994->revision); + dev_info(wm8994->dev, "%s revision %c CUST_ID %02x\n", devname, + 'A' + wm8994->revision, wm8994->cust_id); if (pdata) { wm8994->irq_base = pdata->irq_base; |