History

platform/x86: int3472: Rename pled to led in LED registration code

Rename the privacy LED type, struct member, and functions from "pled" to "led" in preparation for supporting additional LED types beyond just the privacy LED. No functional change.

Marco Nenciarini committed 7 months ago

Commit 39237e31 parent d6116d83 files · +13 −13Browse files

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

Unified · Split

include/linux/platform_data/x86/int3472.h+4−4
@@ -122,12 +122,12 @@ struct int3472_discrete_device { · 121 unmodified lines
122 u8 imgclk_index;122 u8 imgclk_index;
123 } clock;123 } clock;
124 124
125 struct int3472_pled {125 struct int3472_led {
126 struct led_classdev classdev;126 struct led_classdev classdev;
127 struct led_lookup_data lookup;127 struct led_lookup_data lookup;
128 char name[INT3472_LED_MAX_NAME_LEN];128 char name[INT3472_LED_MAX_NAME_LEN];
129 struct gpio_desc *gpio;129 struct gpio_desc *gpio;
130 } pled;130 } led;
131 131
132 struct int3472_discrete_quirks quirks;132 struct int3472_discrete_quirks quirks;
133 133
@@ -161,7 +161,7 @@ int skl_int3472_register_regulator(struct int3472_discrete_device *int3472, · 27 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_pled(struct int3472_discrete_device *int3472, struct gpio_desc *gpio);164int skl_int3472_register_led(struct int3472_discrete_device *int3472, struct gpio_desc *gpio);
165void skl_int3472_unregister_pled(struct int3472_discrete_device *int3472);165void skl_int3472_unregister_led(struct int3472_discrete_device *int3472);
166 166
167#endif167#endif