History

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.

Marco Nenciarini committed 7 months ago

Commit 218d3c41 parent 39237e33 files · +8 −6Browse files

Showing the changes to include/linux/platform_data (1 of 3 files). Show all

Unified · Split

include/linux/platform_data/x86/int3472.h+2−1
@@ -161,7 +161,8 @@ int skl_int3472_register_regulator(struct int3472_discrete_device *int3472, · 160 unmodified lines
161 const char *second_sensor);161 const char *second_sensor);
162void skl_int3472_unregister_regulator(struct int3472_discrete_device *int3472);162void skl_int3472_unregister_regulator(struct int3472_discrete_device *int3472);
163 163
164int skl_int3472_register_led(struct int3472_discrete_device *int3472, struct gpio_desc *gpio);164int skl_int3472_register_led(struct int3472_discrete_device *int3472, struct gpio_desc *gpio,
165 const char *con_id);
165void skl_int3472_unregister_led(struct int3472_discrete_device *int3472);166void skl_int3472_unregister_led(struct int3472_discrete_device *int3472);
166 167
167#endif168#endif