aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2016-04-12 12:31:00 +0200
committerMark Brown <[email protected]>2016-04-13 07:33:44 +0100
commit469b640e4f4a28bdd50f0ac1d2b310907afb464c (patch)
treec739534dfe6b5bc6441680c51d21ed4269fdd8ce /tools/perf/scripts/python/bin/export-to-postgresql-report
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff)
regulator: reorder initialization steps in regulator_register()
device_register() is calling ->get_voltage() as part of it's sysfs attribute initialization process, and this functions might need to know the regulator constraints to return a valid value. This is at least true for the pwm regulator driver (when operating in continuous mode) which needs to know the minimum and maximum voltage values to calculate the current voltage: min_uV + (((max_uV - min_uV) * dutycycle) / 100); Move device_register() after set_machine_constraints() to make sure those constraints are correctly initialized when ->get_voltage() is called. Signed-off-by: Boris Brezillon <[email protected]> Reported-by: Stephen Barber <[email protected]> Tested-by: Caesar Wang <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions