Skip to content

Commit 3a8753d

Browse files
kltsengAnas Nashif
authored andcommitted
samples: driver: led_apa102c: change hard-coded device name
Use the config name defined by the driver Kconfig in device binding calls as that is safer because device name can change and the app does not need to change. Jira: ZEP-1764 Change-Id: I5a3e16e10f7700ec12edbd07603808cd32f15755 Signed-off-by: Kuo-Lang Tseng <[email protected]>
1 parent dba515f commit 3a8753d

File tree

1 file changed

+1
-1
lines changed
  • samples/drivers/led_apa102c/src

1 file changed

+1
-1
lines changed

samples/drivers/led_apa102c/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#define GPIO_CLK_PIN 19
3636
#define GPIO_NAME "GPIO_"
3737

38-
#define GPIO_DRV_NAME "GPIO_0"
38+
#define GPIO_DRV_NAME CONFIG_GPIO_QMSI_0_NAME
3939

4040
#define APA102C_START_FRAME 0x00000000
4141
#define APA102C_END_FRAME 0xFFFFFFFF

0 commit comments

Comments
 (0)