[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240910134428.795273-3-tomm.merciai@gmail.com>
Date: Tue, 10 Sep 2024 15:44:28 +0200
From: Tommaso Merciai <tomm.merciai@...il.com>
To:
Cc: linuxfancy@...glegroups.com,
sakari.ailus@...ux.intel.com,
laurent.pinchart@...asonboard.com,
tomm.merciai@...il.com,
julien.massot@...labora.com,
Mauro Carvalho Chehab <mchehab@...nel.org>,
linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 2/2] media: i2c: max96717: add HAS_EVENTS subdev flag
Controls can be exposed to userspace via a v4l-subdevX device, and
userspace has to be able to subscribe to control events so that it is
notified when the control changes value. Add missing HAS_EVENTS flag.
Signed-off-by: Tommaso Merciai <tomm.merciai@...il.com>
---
drivers/media/i2c/max96717.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/media/i2c/max96717.c b/drivers/media/i2c/max96717.c
index 4e85b8eb1e77..da534999e1ff 100644
--- a/drivers/media/i2c/max96717.c
+++ b/drivers/media/i2c/max96717.c
@@ -689,7 +689,8 @@ static int max96717_subdev_init(struct max96717_priv *priv)
goto err_free_ctrl;
}
- priv->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE | V4L2_SUBDEV_FL_STREAMS;
+ priv->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE |
+ V4L2_SUBDEV_FL_HAS_EVENTS | V4L2_SUBDEV_FL_STREAMS;
priv->sd.entity.function = MEDIA_ENT_F_VID_IF_BRIDGE;
priv->sd.entity.ops = &max96717_entity_ops;
--
2.34.1
Powered by blists - more mailing lists