max8907c regulator: fix unit error
authorTom Cherry <tcherry@nvidia.com>
Wed, 29 Dec 2010 02:30:31 +0000 (18:30 -0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Fri, 23 Mar 2012 21:01:01 +0000 (14:01 -0700)
commitfd82c5afe379d83a574f3aee89f8ed3b9300536c
tree961e7c1e115926a0ea237d0d9a9db246fefef3c6
parent4651f22a2526a570d394b0b0c18b09570d7de737
max8907c regulator: fix unit error

The minimum, maximum, and step voltages for SD1 are different on max8907b
and max8907c.  This change reads the version register of the device
and uses the proper values, defaulting to the max8907c values, unless
the device is a max8907b.

Bug 772688

Original-Change-Id: I2bc53e81c7784e47c50e4ff45c4f4d71d875e187
Reviewed-on: http://git-master/r/14503
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R52c46e5096b21f9b530cfe19cea2cef964d640e5
drivers/regulator/max8907c-regulator.c