input/ff: add control operation to force feedback driver interface

adds a generic control operation to the FF driver interface.

Signed-off-by: fangpeina <fangpeina@xiaomi.com>
This commit is contained in:
fangpeina
2025-08-26 18:44:28 +08:00
committed by archer
parent 4f3a72ef59
commit cfbbd06957
2 changed files with 20 additions and 1 deletions
+9 -1
View File
@@ -429,7 +429,15 @@ static int ff_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
break;
default:
ret = -ENOTTY;
if (upper->lower->control)
{
ret = upper->lower->control(upper->lower, cmd, arg);
}
else
{
ret = -ENOTTY;
}
break;
}