]> www.infradead.org Git - users/dwmw2/linux.git/commit
platform/x86: int3472: Rework AVDD second sensor quirk handling
authorHans de Goede <hdegoede@redhat.com>
Thu, 17 Apr 2025 11:13:32 +0000 (13:13 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 24 Apr 2025 13:05:34 +0000 (16:05 +0300)
commit38ff83a374cdaf146ee6f6d1007419f7fad70e8f
tree7325a237626d0173a0afd80d679543329dddce09
parentb6d3d739b72ae1913d18d62126aee6039e2a42b1
platform/x86: int3472: Rework AVDD second sensor quirk handling

Rework the discrete quirk handling to use a quirks struct which is
pointed to by a dmi_system_id table, rather then having a dmi_system_id
table per type of quirk.

This is a preparation patch for adding support for multiple regulators,
where not all regulators might be shared between sensors.

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: David Heidelberg <david@ixit.cz> # Dell Latitude 9440
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Link: https://lore.kernel.org/r/20250417111337.38142-5-hdegoede@redhat.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/int3472/Makefile
drivers/platform/x86/intel/int3472/clk_and_regulator.c
drivers/platform/x86/intel/int3472/common.h
drivers/platform/x86/intel/int3472/discrete.c
drivers/platform/x86/intel/int3472/discrete_quirks.c [new file with mode: 0644]