media: v4l2: Use FIELD_SIZEOF directly
It's more clear to use FIELD_SIZEOF instead of its implementation. Signed-off-by: zhong jiang <zhongjiang@huawei.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
7204e062ae
commit
40ee752472
@ -2652,7 +2652,7 @@ struct v4l2_ioctl_info {
|
||||
/* Zero struct from after the field to the end */
|
||||
#define INFO_FL_CLEAR(v4l2_struct, field) \
|
||||
((offsetof(struct v4l2_struct, field) + \
|
||||
sizeof(((struct v4l2_struct *)0)->field)) << 16)
|
||||
FIELD_SIZEOF(struct v4l2_struct, field)) << 16)
|
||||
#define INFO_FL_CLEAR_MASK (_IOC_SIZEMASK << 16)
|
||||
|
||||
#define DEFINE_V4L_STUB_FUNC(_vidioc) \
|
||||
|
Loading…
Reference in New Issue
Block a user