diff options
author | Pritesh Raithatha <praithatha@nvidia.com> | 2010-12-13 17:41:01 -0800 |
---|---|---|
committer | Bharat Nihalani <bnihalani@nvidia.com> | 2010-12-13 23:51:27 -0800 |
commit | ac24fe4ee9aab5b3f03fb799b549ff3daa0a7b73 (patch) | |
tree | 66a7825712bce7eab5c14f82cb2fc24d8e0be3eb /drivers/mfd | |
parent | 1b28d5d3831e7ed14fa383b02e13312b8de2b4d1 (diff) |
mfd: tps6586x: add VERSIONCRC for TPS658621D
Update TPS6586x driver to handle TPS658621D
Change-Id: I9f427d1e05d302a4547516bd6a2da4cc6a45dfa9
Reviewed-on: http://git-master/r/12798
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/tps6586x.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mfd/tps6586x.c b/drivers/mfd/tps6586x.c index c3dc32211d9e..d11e669913d6 100644 --- a/drivers/mfd/tps6586x.c +++ b/drivers/mfd/tps6586x.c @@ -48,6 +48,7 @@ #define TPS6586X_VERSIONCRC 0xcd #define TPS658621A_VERSIONCRC 0x15 #define TPS658621C_VERSIONCRC 0x18 +#define TPS658621D_VERSIONCRC 0x2C struct tps6586x_irq_data { u8 mask_reg; @@ -498,7 +499,8 @@ static int __devinit tps6586x_i2c_probe(struct i2c_client *client, return -EIO; } - if (ret != TPS658621A_VERSIONCRC && ret != TPS658621C_VERSIONCRC) { + if (ret != TPS658621A_VERSIONCRC && ret != TPS658621C_VERSIONCRC + && ret != TPS658621D_VERSIONCRC) { dev_err(&client->dev, "Unsupported chip ID: %x\n", ret); return -ENODEV; } |