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.
Showing the changes to include/linux/platform_data (1 of 3 files). Show all
Unified · Split
| @@ -161,7 +161,8 @@ int skl_int3472_register_regulator(struct int3472_discrete_device *int3472, · 160 unmodified lines | ||
| 161 | 161 | const char *second_sensor); |
| 162 | 162 | void skl_int3472_unregister_regulator(struct int3472_discrete_device *int3472); |
| 163 | 163 | |
| 164 | −int skl_int3472_register_led(struct int3472_discrete_device *int3472, struct gpio_desc *gpio); | |
| 164 | +int skl_int3472_register_led(struct int3472_discrete_device *int3472, struct gpio_desc *gpio, | |
| 165 | + const char *con_id); | |
| 165 | 166 | void skl_int3472_unregister_led(struct int3472_discrete_device *int3472); |
| 166 | 167 | |
| 167 | 168 | #endif |