[Backport v4.0-branch] drivers: led: lp50xx: check the number of LED colors #177390
compliance.yml
on: pull_request
Run compliance checks on patch series (PR)
2m 20s
Annotations
1 error, 1 warning, and 1 notice
Run compliance checks on patch series (PR)
Process completed with exit code 1.
|
Run compliance checks on patch series (PR):
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
|
You may want to run clang-format on this change:
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);
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
compliance.xml
|
757 Bytes |
|