]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86: int3472: Parameterize LED con_id in registration
authorMarco Nenciarini <mnencia@kcore.it>
Wed, 1 Apr 2026 20:36:37 +0000 (22:36 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 10 Apr 2026 14:11:15 +0000 (17:11 +0300)
commit218d3c44f5f0a3cc1647bc61a4e4eac663b37aa5
tree073b63deab26b7eeede60c88a0f8abc156c57b58
parent39237e3208209d1bb35d939d6fee1f36b642f562
platform/x86: int3472: Parameterize LED con_id in registration

Add a con_id parameter to skl_int3472_register_led() to allow callers
to specify both the LED name suffix and lookup con_id instead of
hardcoding "privacy". This prepares for registering additional LED
types with different names.

While at it, rename the privacy LED's GPIO con_id from "privacy-led"
to "privacy" in int3472_get_con_id_and_polarity() and pass it
directly to skl_int3472_register_led(), reducing churn when adding
new LED types.

No functional change.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Signed-off-by: Marco Nenciarini <mnencia@kcore.it>
Link: https://patch.msgid.link/20260401203638.1601661-4-mnencia@kcore.it
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/discrete.c
drivers/platform/x86/intel/int3472/led.c
include/linux/platform_data/x86/int3472.h