Skip to content

Commit cf4641c

Browse files
committed
drivers: led: Added PCA9533 to build_all overlay
PCA9533 is added to the overlay so the new driver is compiled by the automated “build all LED drivers” test Signed-off-by: Van Petrosyan <van.petrosyan@sensirion.com>
1 parent e367c92 commit cf4641c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

drivers/led/pca9533.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,6 @@ static int pca9533_pm_action(const struct device *dev, enum pm_device_action act
380380
static int pca9533_led_init(const struct device *dev)
381381
{
382382
const struct pca9533_config *config = dev->config;
383-
struct pca9533_data *data = dev->data;
384383

385384
if (!device_is_ready(config->i2c.bus)) {
386385
LOG_ERR("I²C bus not ready");

tests/drivers/build_all/led/app.overlay

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
test_dac_leds {
2626
compatible = "dac-leds";
27+
2728
test_dac_led0: test_dac_led_0 {
2829
dac-dev = <&test_dac>;
2930
channel = <0>;
@@ -45,6 +46,7 @@
4546

4647
test_gpio_leds {
4748
compatible = "gpio-leds";
49+
4850
test_gpio_led0: test_gpio_led_0 {
4951
gpios = <&test_gpio 0 0>;
5052
};
@@ -128,6 +130,7 @@
128130
is31fl3194@e {
129131
compatible = "issi,is31fl3194";
130132
reg = <0xe>;
133+
131134
led_rgb {
132135
label = "led_rgb";
133136
color-mapping = <0>, <1>, <2>;
@@ -192,6 +195,11 @@
192195
nordic,led2-mode = "host";
193196
};
194197
};
198+
199+
pca9533@15 {
200+
compatible = "nxp,pca9533";
201+
reg = <0x15>;
202+
};
195203
};
196204

197205
test_pwm: pwm@12341234 {
@@ -204,6 +212,7 @@
204212
test_pwm_leds {
205213
compatible = "pwm-leds";
206214
status = "okay";
215+
207216
test_pwm_led0: test_pwm_led_0 {
208217
pwms = <&test_pwm 0 0 0>;
209218
};

0 commit comments

Comments
 (0)