From f29beab982c534d0dc0bec17442bd684cef5c05f Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Tue, 26 Jan 2021 09:26:02 +0100 Subject: [PATCH] include: nuttx: leds: nxstyle fixes Nxstyle fixes to pass CI Signed-off-by: Alin Jerpelea --- include/nuttx/leds/max7219.h | 6 ++++-- include/nuttx/leds/ncp5623c.h | 11 ++++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/include/nuttx/leds/max7219.h b/include/nuttx/leds/max7219.h index 64f0d8b8f5..4524397ea0 100644 --- a/include/nuttx/leds/max7219.h +++ b/include/nuttx/leds/max7219.h @@ -111,8 +111,10 @@ extern "C" * ****************************************************************************/ - struct spi_dev_s; /* Forward reference */ -int max7219_leds_register(FAR const char *devpath, FAR struct spi_dev_s *spi); +struct spi_dev_s; /* Forward reference */ + +int max7219_leds_register(FAR const char *devpath, + FAR struct spi_dev_s *spi); #undef EXTERN #ifdef __cplusplus diff --git a/include/nuttx/leds/ncp5623c.h b/include/nuttx/leds/ncp5623c.h index e78a83ee68..388414519f 100644 --- a/include/nuttx/leds/ncp5623c.h +++ b/include/nuttx/leds/ncp5623c.h @@ -94,11 +94,12 @@ enum led_select_e LED_3 = NCP5623C_PWM3 }; -/* This structure is used in an IOCTL command for setting the PWM of an individual - * LED. The desired LED is selected by setting the 'led' parameter accordingly - * whereas the 'led_pwm' field governs the brightness of the selected LED. A value - * of 0 (0x00) leads to a duty cycle of 0 % = LED off while a value of 255 (0xFF) - * leads to a duty cycle of 99.6 % = Maximum brightness. +/* This structure is used in an IOCTL command for setting the PWM of an + * individual LED. The desired LED is selected by setting the 'led' parameter + * accordingly whereas the 'led_pwm' field governs the brightness of the + * selected LED. A value of 0 (0x00) leads to a duty cycle of 0 % = LED off + * while a value of 255 (0xFF) leads to a duty cycle of 99.6 % = Maximum + * brightness. */ struct ncp5623c_set_reg_s