From: Tommaso Merciai <tomm.merciai@gmail.com>
Cc: sakari.ailus@linux.intel.com, laurent.pinchart@ideasonboard.com,
Tommaso Merciai <tomm.merciai@gmail.com>,
Martin Hecht <martin.hecht@avnet.eu>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>,
Sebastian Reichel <sre@kernel.org>,
Zhi Mao <zhi.mao@mediatek.com>,
Alain Volmat <alain.volmat@foss.st.com>,
Dave Stevenson <dave.stevenson@raspberrypi.com>,
Kieran Bingham <kieran.bingham@ideasonboard.com>,
Umang Jain <umang.jain@ideasonboard.com>,
Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
Julien Massot <julien.massot@collabora.com>,
Bingbu Cao <bingbu.cao@intel.com>,
Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
Nicholas Roth <nicholas@rothemail.net>,
Paul Elder <paul.elder@ideasonboard.com>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v2 0/2] media: i2c: Drop HAS_EVENTS and event handlers
Date: Tue, 29 Oct 2024 23:56:29 +0100 [thread overview]
Message-ID: <20241029225632.3019083-1-tomm.merciai@gmail.com> (raw)
Hi All,
After the introduction of [1] v4l2_subdev_init_finalize()
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.
Then Let's drop the HAS_EVENTS flag and event handlers.
As suggested by LPinchart imx415 imx415 sets the HAS_EVENTS
flags but not the event operations, all is already done from
[1] then we can drop the HAS_EVENTS.
base-commit: 0f9eef17a2638151c56663eb909fe72a7dd4c698
[1] https://git.linuxtv.org/sailus/media_tree.git/commit/?h=devel&id=0f9eef17a2638151c56663eb909fe72a7dd4c698
Tommaso Merciai (2):
media: i2c: Drop HAS_EVENTS and event handlers
media: i2c: imx415: Drop HAS_EVENTS flag
drivers/media/i2c/alvium-csi2.c | 5 +----
drivers/media/i2c/ds90ub953.c | 5 +----
drivers/media/i2c/ds90ub960.c | 5 +----
drivers/media/i2c/gc0308.c | 4 ----
drivers/media/i2c/gc05a2.c | 10 +---------
drivers/media/i2c/gc08a3.c | 10 +---------
drivers/media/i2c/gc2145.c | 10 +---------
drivers/media/i2c/imx219.c | 10 +---------
drivers/media/i2c/imx283.c | 10 +---------
drivers/media/i2c/imx290.c | 10 +---------
drivers/media/i2c/imx415.c | 3 +--
drivers/media/i2c/max96714.c | 6 +-----
drivers/media/i2c/max96717.c | 6 +-----
drivers/media/i2c/ov01a10.c | 6 +-----
drivers/media/i2c/ov64a40.c | 10 +---------
drivers/media/i2c/ov8858.c | 9 +--------
drivers/media/i2c/thp7312.c | 5 +----
17 files changed, 16 insertions(+), 108 deletions(-)
--
2.34.1
next reply other threads:[~2024-10-29 22:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-29 22:56 Tommaso Merciai [this message]
2024-10-29 22:56 ` [PATCH v2 1/2] " Tommaso Merciai
2024-10-29 22:56 ` [PATCH v2 2/2] media: i2c: imx415: Drop HAS_EVENTS flag Tommaso Merciai
2024-10-30 19:40 ` Laurent Pinchart
2024-10-31 21:38 ` Michael Riesch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241029225632.3019083-1-tomm.merciai@gmail.com \
--to=tomm.merciai@gmail.com \
--cc=alain.volmat@foss.st.com \
--cc=bingbu.cao@intel.com \
--cc=dave.stevenson@raspberrypi.com \
--cc=jacopo.mondi@ideasonboard.com \
--cc=julien.massot@collabora.com \
--cc=kieran.bingham@ideasonboard.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=martin.hecht@avnet.eu \
--cc=mchehab@kernel.org \
--cc=nicholas@rothemail.net \
--cc=paul.elder@ideasonboard.com \
--cc=sakari.ailus@linux.intel.com \
--cc=sre@kernel.org \
--cc=tomi.valkeinen@ideasonboard.com \
--cc=umang.jain@ideasonboard.com \
--cc=zhi.mao@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®