regulator: core: Log when we bring constraints into range
[cascardo/linux.git] / drivers / regulator / core.c
index 881c37e..18dd7ee 100644 (file)
@@ -935,6 +935,8 @@ static int machine_constraints_voltage(struct regulator_dev *rdev,
                }
 
                if (target_min != current_uV || target_max != current_uV) {
+                       rdev_info(rdev, "Bringing %duV into %d-%duV\n",
+                                 current_uV, target_min, target_max);
                        ret = _regulator_do_set_voltage(
                                rdev, target_min, target_max);
                        if (ret < 0) {