This is an automated email from the ASF dual-hosted git repository. Donny9 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 6612eae5b46b799bf8f894263886b2cf9a73b09a Author: yangsong8 <[email protected]> AuthorDate: Fri Nov 13 20:36:55 2026 +0800 drivers/timers/pwm: fix the nxstyle errors in the new ioctl cases Add the missing blank lines after the declarations in the PWMIOC_GETOUTPUTSTATE, PWMIOC_ENABLENOTIFY and PWMIOC_GETPOWERSTATE cases. No code change. Signed-off-by: yangsong8 <[email protected]> --- drivers/timers/pwm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/timers/pwm.c b/drivers/timers/pwm.c index 7be59b2335f..d6687bbc95d 100644 --- a/drivers/timers/pwm.c +++ b/drivers/timers/pwm.c @@ -448,6 +448,7 @@ static int pwm_ioctl(FAR struct file *filep, int cmd, unsigned long arg) { FAR struct pwm_output_state_s *p = (FAR struct pwm_output_state_s *)((uintptr_t)arg); + if (lower->ops->get_output_state == NULL) { ret = -ENOSYS; @@ -468,6 +469,7 @@ static int pwm_ioctl(FAR struct file *filep, int cmd, unsigned long arg) { FAR const struct pwm_notify_s *p = (FAR const struct pwm_notify_s *)((uintptr_t)arg); + if (lower->ops->enable_notify == NULL) { ret = -ENOSYS; @@ -500,6 +502,7 @@ static int pwm_ioctl(FAR struct file *filep, int cmd, unsigned long arg) { FAR uint8_t *state = (FAR uint8_t *)((uintptr_t)arg); + if (lower->ops->get_power_state == NULL) { ret = -ENOSYS;
