Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -3
+1 -3
include/media/v4l2-device.h
··· 13 13 #include <media/v4l2-subdev.h> 14 14 #include <media/v4l2-dev.h> 15 15 16 - #define V4L2_DEVICE_NAME_SIZE (20 + 16) 17 - 18 16 struct v4l2_ctrl_handler; 19 17 20 18 /** ··· 47 49 struct media_device *mdev; 48 50 struct list_head subdevs; 49 51 spinlock_t lock; 50 - char name[V4L2_DEVICE_NAME_SIZE]; 52 + char name[36]; 51 53 void (*notify)(struct v4l2_subdev *sd, 52 54 unsigned int notification, void *arg); 53 55 struct v4l2_ctrl_handler *ctrl_handler;