sensor: format custom ioctl argument by stucture sensor_ioctl_s

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2022-04-09 21:57:35 +08:00 committed by Xiang Xiao
parent 2ae5a82607
commit f758e0f260

View File

@ -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
****************************************************************************/