]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/regulator/s2mps11.c
Merge remote-tracking branches 'regulator/topic/max8973', 'regulator/topic/max8997...
[karo-tx-linux.git] / drivers / regulator / s2mps11.c
index 1f6fd4c45006e93e56805ce65e3128c4a87103e5..68fd54702edbf12436fbd5f7b7ebd2a6cb68e7ef 100644 (file)
@@ -73,7 +73,7 @@ static int s2mps11_regulator_set_voltage_time_sel(struct regulator_dev *rdev,
        unsigned int ramp_delay = 0;
        int old_volt, new_volt;
 
-       switch (rdev->desc->id) {
+       switch (rdev_get_id(rdev)) {
        case S2MPS11_BUCK2:
                ramp_delay = s2mps11->ramp_delay2;
                break;
@@ -113,7 +113,7 @@ static int s2mps11_set_ramp_delay(struct regulator_dev *rdev, int ramp_delay)
        unsigned int ramp_enable = 1, enable_shift = 0;
        int ret;
 
-       switch (rdev->desc->id) {
+       switch (rdev_get_id(rdev)) {
        case S2MPS11_BUCK1:
                if (ramp_delay > s2mps11->ramp_delay16)
                        s2mps11->ramp_delay16 = ramp_delay;