File tree Expand file tree Collapse file tree 8 files changed +8
-8
lines changed Expand file tree Collapse file tree 8 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ static int apa102_init(const struct device *dev)
92
92
return 0 ;
93
93
}
94
94
95
- static const struct led_strip_driver_api apa102_api = {
95
+ static DEVICE_API ( led_strip , apa102_api ) = {
96
96
.update_rgb = apa102_update_rgb ,
97
97
.length = apa102_length ,
98
98
};
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ static const struct lpd880x_config lpd880x_config = {
150
150
.length = DT_INST_PROP (0 , chain_length ),
151
151
};
152
152
153
- static const struct led_strip_driver_api lpd880x_strip_api = {
153
+ static DEVICE_API ( led_strip , lpd880x_strip_api ) = {
154
154
.update_rgb = lpd880x_strip_update_rgb ,
155
155
.update_channels = lpd880x_strip_update_channels ,
156
156
.length = lpd880x_strip_length ,
Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ static int tlc5971_init(const struct device *dev)
322
322
return 0 ;
323
323
}
324
324
325
- static const struct led_strip_driver_api tlc5971_api = {
325
+ static DEVICE_API ( led_strip , tlc5971_api ) = {
326
326
.update_rgb = tlc5971_update_rgb ,
327
327
.length = tlc5971_length ,
328
328
};
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ static size_t tlc59731_length(const struct device *dev)
139
139
return config -> length ;
140
140
}
141
141
142
- static const struct led_strip_driver_api tlc59731_gpio_api = {
142
+ static DEVICE_API ( led_strip , tlc59731_gpio_api ) = {
143
143
.update_rgb = tlc59731_gpio_update_rgb ,
144
144
.length = tlc59731_length ,
145
145
};
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ static size_t ws2812_gpio_length(const struct device *dev)
172
172
return config -> length ;
173
173
}
174
174
175
- static const struct led_strip_driver_api ws2812_gpio_api = {
175
+ static DEVICE_API ( led_strip , ws2812_gpio_api ) = {
176
176
.update_rgb = ws2812_gpio_update_rgb ,
177
177
.length = ws2812_gpio_length ,
178
178
};
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ static int ws2812_i2s_init(const struct device *dev)
202
202
return 0 ;
203
203
}
204
204
205
- static const struct led_strip_driver_api ws2812_i2s_api = {
205
+ static DEVICE_API ( led_strip , ws2812_i2s_api ) = {
206
206
.update_rgb = ws2812_strip_update_rgb ,
207
207
.length = ws2812_strip_length ,
208
208
};
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ static size_t ws2812_led_strip_length(const struct device *dev)
116
116
return config -> length ;
117
117
}
118
118
119
- static const struct led_strip_driver_api ws2812_led_strip_api = {
119
+ static DEVICE_API ( led_strip , ws2812_led_strip_api ) = {
120
120
.update_rgb = ws2812_led_strip_update_rgb ,
121
121
.length = ws2812_led_strip_length ,
122
122
};
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ static int ws2812_spi_init(const struct device *dev)
169
169
return 0 ;
170
170
}
171
171
172
- static const struct led_strip_driver_api ws2812_spi_api = {
172
+ static DEVICE_API ( led_strip , ws2812_spi_api ) = {
173
173
.update_rgb = ws2812_strip_update_rgb ,
174
174
.length = ws2812_strip_length ,
175
175
};
You can’t perform that action at this time.
0 commit comments