From f758e0f2603056ac006ddd596ee153ae042fef03 Mon Sep 17 00:00:00 2001 From: Jiuzhu Dong Date: Sat, 9 Apr 2022 21:57:35 +0800 Subject: [PATCH] sensor: format custom ioctl argument by stucture sensor_ioctl_s Signed-off-by: Jiuzhu Dong --- include/nuttx/sensors/sensor.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/nuttx/sensors/sensor.h b/include/nuttx/sensors/sensor.h index a9ef796eb7..0658d5c788 100644 --- a/include/nuttx/sensors/sensor.h +++ b/include/nuttx/sensors/sensor.h @@ -958,6 +958,14 @@ struct sensor_reginfo_s }; #endif +/* This structure describes the context custom ioctl for device */ + +struct sensor_ioctl_s +{ + size_t len; /* The length of argument of ioctl */ + char data[1]; /* The argument buf of ioctl */ +}; + /**************************************************************************** * Public Function Prototypes ****************************************************************************/