diff options
author | Nitin Kumbhar <nkumbhar@nvidia.com> | 2010-11-12 17:49:06 +0530 |
---|---|---|
committer | Bharat Nihalani <bnihalani@nvidia.com> | 2010-11-12 09:56:48 -0800 |
commit | 54dcffcf21a92195bd9f0b82081e796502f663de (patch) | |
tree | dd815a026c64bec8556ff4c58997096a9e72a43d | |
parent | 78e9f91c8c67b6863008e526f5ba8dabcba6b2ff (diff) |
mfd: tps6586x: add versioncrc for TPS658621C
update TPS6586x driver to handle TPS658621C along with TPS658621A
Change-Id: I7e8c5584740a8bb567766917048ad2a253e18d1e
Reviewed-on: http://git-master/r/10737
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
-rw-r--r-- | drivers/mfd/tps6586x.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/tps6586x.c b/drivers/mfd/tps6586x.c index 626081c5c281..76c315229abe 100644 --- a/drivers/mfd/tps6586x.c +++ b/drivers/mfd/tps6586x.c @@ -47,6 +47,7 @@ /* device id */ #define TPS6586X_VERSIONCRC 0xcd #define TPS658621A_VERSIONCRC 0x15 +#define TPS658621C_VERSIONCRC 0x18 struct tps6586x_irq_data { u8 mask_reg; @@ -491,7 +492,7 @@ static int __devinit tps6586x_i2c_probe(struct i2c_client *client, return -EIO; } - if (ret != TPS658621A_VERSIONCRC) { + if (ret != TPS658621A_VERSIONCRC && ret != TPS658621C_VERSIONCRC) { dev_err(&client->dev, "Unsupported chip ID: %x\n", ret); return -ENODEV; } |