diff options
| author | 2023-06-13 17:07:23 +0800 | |
|---|---|---|
| committer | 2023-07-19 23:58:52 +0200 | |
| commit | b52d51d88432dd7cf7bc57ea11d3ef1efad8cb96 (patch) | |
| tree | c86ec307ff56cb9d91369e6f83487d42276eee3f /tools/perf/scripts/python/futex-contention.py | |
| parent | power: reset: ocelot: Convert to devm_platform_ioremap_resource() (diff) | |
| download | linux-rng-b52d51d88432dd7cf7bc57ea11d3ef1efad8cb96.tar.xz linux-rng-b52d51d88432dd7cf7bc57ea11d3ef1efad8cb96.zip | |
power: supply: core: Avoid duplicate hwmon device from thermal framework
When the power supply device being registered supports a temperature
readout, the core registers a thermal zone for it. The thermal core
would register a hwmon device for that unless told otherwise.
When CONFIG_POWER_SUPPLY_HWMON is enabled, the power supply core creates
a hwmon device. This results in a second entry, one which has a better
name than the one registered through the thermal framework. It could
potentially have readouts other than temperature.
To simplify the result, tell the thermal framework to not register a
hwmon device if CONFIG_POWER_SUPPLY_HWMON is enabled. The result is
one hwmon device with all the readings the device supports.
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions
