media: i2c: ov9282: Support event handlers
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Fri, 28 Oct 2022 16:09:02 +0000 (17:09 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 06:58:41 +0000 (06:58 +0000)
commit34ec724806a2c965b4c1cd9578b16144ba067d3f
tree8711b3345c12f8ad2a0842ac780eab3fe8e38042
parent43ac0cac18f41fdf39635e2bd0f8fadc361cdb2f
media: i2c: ov9282: Support event handlers

As noted in the headers for V4L2_SUBDEV_FL_HAS_EVENTS,
"controls can send events, thus drivers exposing controls
should set this flag".

This driver exposes controls, but didn't reflect that it
could generate events. Correct this, and add the default
event handler functions.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov9282.c