diff options
author | Hans de Goede <hdegoede@redhat.com> | 2021-12-03 11:28:51 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2021-12-13 11:44:48 +0100 |
commit | 71102bc7964342f0aaf1faf7aa384678b1207848 (patch) | |
tree | 29a0b3d0c479b82aedffeb19e10d847392de64ab /drivers/platform/x86/intel/int3472/common.h | |
parent | a2f9fbc247eea0ad1b0b59bc29bec144c5ead03c (diff) |
platform/x86: int3472: Add get_sensor_adev_and_name() helper
The discrete.c code is not the only code which needs to lookup the
acpi_device and device-name for the sensor for which the INT3472
ACPI-device is a GPIO/clk/regulator provider.
The tps68470.c code also needs this functionality, so factor this
out into a new get_sensor_adev_and_name() helper.
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20211203102857.44539-9-hdegoede@redhat.com
Diffstat (limited to 'drivers/platform/x86/intel/int3472/common.h')
-rw-r--r-- | drivers/platform/x86/intel/int3472/common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/platform/x86/intel/int3472/common.h b/drivers/platform/x86/intel/int3472/common.h index d14944ee8586..53270d19c73a 100644 --- a/drivers/platform/x86/intel/int3472/common.h +++ b/drivers/platform/x86/intel/int3472/common.h @@ -108,6 +108,9 @@ struct int3472_discrete_device { union acpi_object *skl_int3472_get_acpi_buffer(struct acpi_device *adev, char *id); int skl_int3472_fill_cldb(struct acpi_device *adev, struct int3472_cldb *cldb); +int skl_int3472_get_sensor_adev_and_name(struct device *dev, + struct acpi_device **sensor_adev_ret, + const char **name_ret); int skl_int3472_register_clock(struct int3472_discrete_device *int3472); void skl_int3472_unregister_clock(struct int3472_discrete_device *int3472); |