regulator: rc5t583: Remove max_uV from struct rc5t583_regulator_info
authorAxel Lin <axel.lin@gmail.com>
Thu, 17 May 2012 00:50:45 +0000 (08:50 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 17 May 2012 22:00:55 +0000 (23:00 +0100)
This driver has been converted to set_voltage_sel and regulator_map_voltage_linear.
regulator_map_voltage_linear will check the voltage falls within specified range.
The max_uV field is not used now, remove it.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/rc5t583-regulator.c

index 987fa34627feb5c45a7f260080977226bd44c8d5..1d34e64a1307ac3b1e6fd9edb0ad47395aee56ef 100644 (file)
@@ -40,9 +40,6 @@ struct rc5t583_regulator_info {
        uint8_t                 disc_bit;
        uint8_t                 deepsleep_reg;
 
-       /* Chip constraints on regulator behavior */
-       int                     max_uV;
-
        /* Regulator specific turn-on delay  and voltage settling time*/
        int                     enable_uv_per_us;
        int                     change_uv_per_us;
@@ -106,7 +103,6 @@ static struct regulator_ops rc5t583_ops = {
        .reg_disc_reg   = RC5T583_REG_##_disc_reg,              \
        .disc_bit       = _disc_bit,                            \
        .deepsleep_reg  = RC5T583_REG_##_id##DAC_DS,            \
-       .max_uV         = _max_mv * 1000,                       \
        .enable_uv_per_us = _enable_mv * 1000,                  \
        .change_uv_per_us = 40 * 1000,                          \
        .deepsleep_id   = RC5T583_DS_##_id,                     \