[Backport v4.0-branch] drivers: led: lp50xx: check the number of LED colors #176723
Annotations
1 error, 2 warnings, and 1 notice
Run Compliance Tests
Process completed with exit code 1.
|
cache-pip
Cache not found for keys: Linux-pip-4bab123cfa8061843da3491e70ce59870567a56e8baf5c281253fa61f682202c
|
check-warns:
ClangFormat.txt#L1
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.
You may want to run clang-format on this change:
- const struct led_info *led_info =
- lp50xx_led_to_info(config, led);
+ const struct led_info *led_info = lp50xx_led_to_info(config, led);
if (led_info->num_colors > LP50XX_COLORS_PER_LED) {
- LOG_ERR("%s: LED %d: invalid number of colors (max %d)",
- dev->name, led, LP50XX_COLORS_PER_LED);
+ LOG_ERR("%s: LED %d: invalid number of colors (max %d)", dev->name, led,
+ LP50XX_COLORS_PER_LED);
File:drivers/led/lp50xx.c
Line:293
|
Run Compliance Tests:
drivers/led/lp50xx.c#L293
drivers/led/lp50xx.c:293
- const struct led_info *led_info =
- lp50xx_led_to_info(config, led);
+ const struct led_info *led_info = lp50xx_led_to_info(config, led);
if (led_info->num_colors > LP50XX_COLORS_PER_LED) {
- LOG_ERR("%s: LED %d: invalid number of colors (max %d)",
- dev->name, led, LP50XX_COLORS_PER_LED);
+ LOG_ERR("%s: LED %d: invalid number of colors (max %d)", dev->name, led,
+ LP50XX_COLORS_PER_LED);
|
Loading