]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: i2c: Drop HAS_EVENTS and event handlers
authorTommaso Merciai <tomm.merciai@gmail.com>
Tue, 29 Oct 2024 22:56:30 +0000 (23:56 +0100)
committerHans Verkuil <hverkuil@xs4all.nl>
Thu, 7 Nov 2024 08:05:57 +0000 (09:05 +0100)
commit17971a430ff90df896fb67d1d52a321a400bce0e
tree5646fd761f9f3dc2bafdf521d72bdbcc00b31ded
parenta3461f73f611a1f6fc520a270637f1f9b26fe297
media: i2c: Drop HAS_EVENTS and event handlers

v4l2_subdev_init_finalize() already sets the HAS_EVENTS flag if a
control handler is set, and subdev_do_ioctl() uses
v4l2_ctrl_subdev_subscribe_event() and v4l2_event_subdev_unsubscribe()
as defaults if the subdev doesn't have .(un)subscribe.
Let's drop the HAS_EVENTS flag and event handlers.

Signed-off-by: Tommaso Merciai <tomm.merciai@gmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
16 files changed:
drivers/media/i2c/alvium-csi2.c
drivers/media/i2c/ds90ub953.c
drivers/media/i2c/ds90ub960.c
drivers/media/i2c/gc0308.c
drivers/media/i2c/gc05a2.c
drivers/media/i2c/gc08a3.c
drivers/media/i2c/gc2145.c
drivers/media/i2c/imx219.c
drivers/media/i2c/imx283.c
drivers/media/i2c/imx290.c
drivers/media/i2c/max96714.c
drivers/media/i2c/max96717.c
drivers/media/i2c/ov01a10.c
drivers/media/i2c/ov64a40.c
drivers/media/i2c/ov8858.c
drivers/media/i2c/thp7312.c