You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2020/06/06 18:47:00 UTC
[incubator-nuttx] 01/02: arch/arm/src: Return ENOTTY when the ioctl
command is not recognized.
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 465a13c2cbc5bb9cdaa0c1a7d088ac03b6ac2160
Author: Ouss4 <ab...@gmail.com>
AuthorDate: Sat Jun 6 19:05:09 2020 +0100
arch/arm/src: Return ENOTTY when the ioctl command is not recognized.
---
arch/arm/src/cxd56xx/cxd56_adc.c | 2 +-
arch/arm/src/stm32/stm32_hrtim.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/src/cxd56xx/cxd56_adc.c b/arch/arm/src/cxd56xx/cxd56_adc.c
index 45a5298..ee49b5e 100644
--- a/arch/arm/src/cxd56xx/cxd56_adc.c
+++ b/arch/arm/src/cxd56xx/cxd56_adc.c
@@ -869,7 +869,7 @@ static int cxd56_adc_ioctl(FAR struct file *filep, int cmd,
else
{
aerr("Unrecognized cmd: %d\n", cmd);
- ret = -EINVAL;
+ ret = -ENOTTY;
}
}
break;
diff --git a/arch/arm/src/stm32/stm32_hrtim.c b/arch/arm/src/stm32/stm32_hrtim.c
index 198a177..493bbdd 100644
--- a/arch/arm/src/stm32/stm32_hrtim.c
+++ b/arch/arm/src/stm32/stm32_hrtim.c
@@ -1692,7 +1692,7 @@ static int stm32_hrtim_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{
default:
{
- ret = -ENOSYS;
+ ret = -ENOTTY;
break;
}
}