diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-09-23 17:20:58 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-09-27 10:47:23 +0200 |
commit | 06016a67c61675642c71358c2afe6ce99b5d1468 (patch) | |
tree | 3813c675911871a9489e314025b29dec6fa5ce5a /include/media | |
parent | 8cdd708f11655d5f28fca1ab2fa0dbe5424f274c (diff) | |
download | linux-stable-06016a67c61675642c71358c2afe6ce99b5d1468.tar.gz linux-stable-06016a67c61675642c71358c2afe6ce99b5d1468.tar.bz2 linux-stable-06016a67c61675642c71358c2afe6ce99b5d1468.zip |
media: v4l2-device.h: drop V4L2_DEVICE_NAME_SIZE
Don't use defines for the size of a name field, everyone
should just use sizeof(). In this case it was never used,
but it is bad practice, so just drop it.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/v4l2-device.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/media/v4l2-device.h b/include/media/v4l2-device.h index 8a8977a33ec1..f6f111fae33c 100644 --- a/include/media/v4l2-device.h +++ b/include/media/v4l2-device.h @@ -13,8 +13,6 @@ #include <media/v4l2-subdev.h> #include <media/v4l2-dev.h> -#define V4L2_DEVICE_NAME_SIZE (20 + 16) - struct v4l2_ctrl_handler; /** @@ -49,7 +47,7 @@ struct v4l2_device { struct media_device *mdev; struct list_head subdevs; spinlock_t lock; - char name[V4L2_DEVICE_NAME_SIZE]; + char name[36]; void (*notify)(struct v4l2_subdev *sd, unsigned int notification, void *arg); struct v4l2_ctrl_handler *ctrl_handler; |