mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user