aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2021-11-21 20:11:25 +0100
committerHans de Goede <hdegoede@redhat.com>2021-11-25 16:18:43 +0100
commit5a47ac0041678d3d610b3ac724bca8c4bda2ddff (patch)
treececbbd6c5c95de172caaeec91613339a60054ff5 /tools/perf/scripts/python
parentplatform/x86: thinkpad_acpi: Make *_init() functions return -ENODEV instead of 1 (diff)
downloadlinux-5a47ac0041678d3d610b3ac724bca8c4bda2ddff.tar.gz
linux-5a47ac0041678d3d610b3ac724bca8c4bda2ddff.zip
platform/x86: thinkpad_acpi: Simplify dytc_version handling
The only reason the proxysensor code needs dytc_version handling is for proxsensor_attr_is_visible() and that will only ever get called after all the subdrv init() callbacks have run. tpacpi_dytc_profile_init() already calls DYTC_CMD_QUERY and is the primary consumer of dytc_version, so simply let tpacpi_dytc_profile_init() set dytc_version and remove the now no longer necessary dytc_get_version() helper and its calls. Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Tested-by: Mark Pearson <mpearson@lenovo.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20211121191129.256713-4-hdegoede@redhat.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions