sensor: format custom ioctl argument by stucture sensor_ioctl_s
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
2ae5a82607
commit
f758e0f260
@ -958,6 +958,14 @@ struct sensor_reginfo_s
|
|||||||
};
|
};
|
||||||
#endif
|
#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
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user