diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-07 05:03:22 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-05-07 05:32:08 -0400 |
commit | cc7a727941193e3e59be2e9f6522eb78bc7ee909 (patch) | |
tree | 3b7813120db496fce4c90f0c68e0795335233e31 /drivers | |
parent | b7b142d9fc056e98e6fdef82dca3e87067517340 (diff) |
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')
-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 9d7ca1e978fa..60e617549edd 100644 --- a/drivers/mfd/wm8994-core.c +++ b/drivers/mfd/wm8994-core.c | |||
@@ -500,7 +500,8 @@ static __devinit int wm8994_device_init(struct wm8994 *wm8994, int irq) | |||
500 | ret); | 500 | ret); |
501 | goto err_enable; | 501 | goto err_enable; |
502 | } | 502 | } |
503 | wm8994->revision = ret; | 503 | wm8994->revision = ret & WM8994_CHIP_REV_MASK; |
504 | wm8994->cust_id = (ret & WM8994_CUST_ID_MASK) >> WM8994_CUST_ID_SHIFT; | ||
504 | 505 | ||
505 | switch (wm8994->type) { | 506 | switch (wm8994->type) { |
506 | case WM8994: | 507 | case WM8994: |
@@ -553,8 +554,8 @@ static __devinit int wm8994_device_init(struct wm8994 *wm8994, int irq) | |||
553 | break; | 554 | break; |
554 | } | 555 | } |
555 | 556 | ||
556 | dev_info(wm8994->dev, "%s revision %c\n", devname, | 557 | dev_info(wm8994->dev, "%s revision %c CUST_ID %02x\n", devname, |
557 | 'A' + wm8994->revision); | 558 | 'A' + wm8994->revision, wm8994->cust_id); |
558 | 559 | ||
559 | switch (wm8994->type) { | 560 | switch (wm8994->type) { |
560 | case WM1811: | 561 | case WM1811: |