* [PATCH -next 0/2] media: i2c: mt9v111: workaround
@ 2024-08-29 12:52 Liao Chen
2024-08-29 12:52 ` [PATCH -next 1/2] media: i2c: mt9v111: Enable module autoloading Liao Chen
2024-08-29 12:52 ` [PATCH -next 2/2] media: i2c: mt9v111: Drop redundant comma Liao Chen
0 siblings, 2 replies; 7+ messages in thread
From: Liao Chen @ 2024-08-29 12:52 UTC (permalink / raw)
To: linux-media, linux-kernel
Cc: sakari.ailus, jacopo, mchehab, laurent.pinchart, biju.das.jz
Hi all,
This patchset enables module autoloading feature of mt9v111 module and
cleans the code up.
Liao Chen (2):
media: i2c: mt9v111: Add missing MODULE_DEVICE_TABLE
media: i2c: mt9v111: drop redundant comma
drivers/media/i2c/mt9v111.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--
2.34.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH -next 1/2] media: i2c: mt9v111: Enable module autoloading
2024-08-29 12:52 [PATCH -next 0/2] media: i2c: mt9v111: workaround Liao Chen
@ 2024-08-29 12:52 ` Liao Chen
2024-08-29 13:47 ` Laurent Pinchart
2024-08-29 12:52 ` [PATCH -next 2/2] media: i2c: mt9v111: Drop redundant comma Liao Chen
1 sibling, 1 reply; 7+ messages in thread
From: Liao Chen @ 2024-08-29 12:52 UTC (permalink / raw)
To: linux-media, linux-kernel
Cc: sakari.ailus, jacopo, mchehab, laurent.pinchart, biju.das.jz
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based
on the alias from of_device_id table.
Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
drivers/media/i2c/mt9v111.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/i2c/mt9v111.c b/drivers/media/i2c/mt9v111.c
index b0b98ed3c150..b6a2623798c5 100644
--- a/drivers/media/i2c/mt9v111.c
+++ b/drivers/media/i2c/mt9v111.c
@@ -1265,6 +1265,7 @@ static const struct of_device_id mt9v111_of_match[] = {
{ .compatible = "aptina,mt9v111", },
{ /* sentinel */ },
};
+MODULE_DEVICE_TABLE(of, mt9v111_of_match);
static struct i2c_driver mt9v111_driver = {
.driver = {
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH -next 1/2] media: i2c: mt9v111: Enable module autoloading
2024-08-29 12:52 ` [PATCH -next 1/2] media: i2c: mt9v111: Enable module autoloading Liao Chen
@ 2024-08-29 13:47 ` Laurent Pinchart
2024-09-03 11:47 ` Sakari Ailus
0 siblings, 1 reply; 7+ messages in thread
From: Laurent Pinchart @ 2024-08-29 13:47 UTC (permalink / raw)
To: Liao Chen
Cc: linux-media, linux-kernel, sakari.ailus, jacopo, mchehab,
biju.das.jz
Hi Liao,
Thank you for the patch.
On Thu, Aug 29, 2024 at 12:52:02PM +0000, Liao Chen wrote:
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based
> on the alias from of_device_id table.
>
> Signed-off-by: Liao Chen <liaochen4@huawei.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Sakari, I expect you will merge this series through your tree.
> ---
> drivers/media/i2c/mt9v111.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/media/i2c/mt9v111.c b/drivers/media/i2c/mt9v111.c
> index b0b98ed3c150..b6a2623798c5 100644
> --- a/drivers/media/i2c/mt9v111.c
> +++ b/drivers/media/i2c/mt9v111.c
> @@ -1265,6 +1265,7 @@ static const struct of_device_id mt9v111_of_match[] = {
> { .compatible = "aptina,mt9v111", },
> { /* sentinel */ },
> };
> +MODULE_DEVICE_TABLE(of, mt9v111_of_match);
>
> static struct i2c_driver mt9v111_driver = {
> .driver = {
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH -next 1/2] media: i2c: mt9v111: Enable module autoloading
2024-08-29 13:47 ` Laurent Pinchart
@ 2024-09-03 11:47 ` Sakari Ailus
0 siblings, 0 replies; 7+ messages in thread
From: Sakari Ailus @ 2024-09-03 11:47 UTC (permalink / raw)
To: Laurent Pinchart
Cc: Liao Chen, linux-media, linux-kernel, jacopo, mchehab,
biju.das.jz
On Thu, Aug 29, 2024 at 04:47:08PM +0300, Laurent Pinchart wrote:
> Hi Liao,
>
> Thank you for the patch.
>
> On Thu, Aug 29, 2024 at 12:52:02PM +0000, Liao Chen wrote:
> > Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based
> > on the alias from of_device_id table.
> >
> > Signed-off-by: Liao Chen <liaochen4@huawei.com>
>
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>
> Sakari, I expect you will merge this series through your tree.
Yes, they were in my previous PR to Hans and in media stage tree now.
--
Sakari Ailus
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH -next 2/2] media: i2c: mt9v111: Drop redundant comma
2024-08-29 12:52 [PATCH -next 0/2] media: i2c: mt9v111: workaround Liao Chen
2024-08-29 12:52 ` [PATCH -next 1/2] media: i2c: mt9v111: Enable module autoloading Liao Chen
@ 2024-08-29 12:52 ` Liao Chen
2024-08-29 13:05 ` Biju Das
2024-08-29 13:46 ` Laurent Pinchart
1 sibling, 2 replies; 7+ messages in thread
From: Liao Chen @ 2024-08-29 12:52 UTC (permalink / raw)
To: linux-media, linux-kernel
Cc: sakari.ailus, jacopo, mchehab, laurent.pinchart, biju.das.jz
Drop the redundant comma from mt9v111_of_match array to make the code
clean.
Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
drivers/media/i2c/mt9v111.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/i2c/mt9v111.c b/drivers/media/i2c/mt9v111.c
index b6a2623798c5..723fe138e7bc 100644
--- a/drivers/media/i2c/mt9v111.c
+++ b/drivers/media/i2c/mt9v111.c
@@ -1263,7 +1263,7 @@ static void mt9v111_remove(struct i2c_client *client)
static const struct of_device_id mt9v111_of_match[] = {
{ .compatible = "aptina,mt9v111", },
- { /* sentinel */ },
+ { /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, mt9v111_of_match);
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* RE: [PATCH -next 2/2] media: i2c: mt9v111: Drop redundant comma
2024-08-29 12:52 ` [PATCH -next 2/2] media: i2c: mt9v111: Drop redundant comma Liao Chen
@ 2024-08-29 13:05 ` Biju Das
2024-08-29 13:46 ` Laurent Pinchart
1 sibling, 0 replies; 7+ messages in thread
From: Biju Das @ 2024-08-29 13:05 UTC (permalink / raw)
To: Liao Chen, linux-media@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: sakari.ailus@linux.intel.com, jacopo@jmondi.org,
mchehab@kernel.org, laurent.pinchart@ideasonboard.com
Hi Liao Chen,
> -----Original Message-----
> From: Liao Chen <liaochen4@huawei.com>
> Sent: Thursday, August 29, 2024 1:52 PM
> Subject: [PATCH -next 2/2] media: i2c: mt9v111: Drop redundant comma
>
> Drop the redundant comma from mt9v111_of_match array to make the code clean.
LGTM.
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Actually, Removing the trailing comma in the terminator entry for the ID table
making code robust against (theoretical) misrebases or other similar things
where the new entry goes _after_ the termination without the compiler noticing."
>
> Signed-off-by: Liao Chen <liaochen4@huawei.com>
> ---
> drivers/media/i2c/mt9v111.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/i2c/mt9v111.c b/drivers/media/i2c/mt9v111.c index
> b6a2623798c5..723fe138e7bc 100644
> --- a/drivers/media/i2c/mt9v111.c
> +++ b/drivers/media/i2c/mt9v111.c
> @@ -1263,7 +1263,7 @@ static void mt9v111_remove(struct i2c_client *client)
>
> static const struct of_device_id mt9v111_of_match[] = {
> { .compatible = "aptina,mt9v111", },
> - { /* sentinel */ },
> + { /* sentinel */ }
> };
> MODULE_DEVICE_TABLE(of, mt9v111_of_match);
>
> --
> 2.34.1
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH -next 2/2] media: i2c: mt9v111: Drop redundant comma
2024-08-29 12:52 ` [PATCH -next 2/2] media: i2c: mt9v111: Drop redundant comma Liao Chen
2024-08-29 13:05 ` Biju Das
@ 2024-08-29 13:46 ` Laurent Pinchart
1 sibling, 0 replies; 7+ messages in thread
From: Laurent Pinchart @ 2024-08-29 13:46 UTC (permalink / raw)
To: Liao Chen
Cc: linux-media, linux-kernel, sakari.ailus, jacopo, mchehab,
biju.das.jz
Hi Liao,
Thank you for the patch.
On Thu, Aug 29, 2024 at 12:52:03PM +0000, Liao Chen wrote:
> Drop the redundant comma from mt9v111_of_match array to make the code
> clean.
>
> Signed-off-by: Liao Chen <liaochen4@huawei.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
> drivers/media/i2c/mt9v111.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/i2c/mt9v111.c b/drivers/media/i2c/mt9v111.c
> index b6a2623798c5..723fe138e7bc 100644
> --- a/drivers/media/i2c/mt9v111.c
> +++ b/drivers/media/i2c/mt9v111.c
> @@ -1263,7 +1263,7 @@ static void mt9v111_remove(struct i2c_client *client)
>
> static const struct of_device_id mt9v111_of_match[] = {
> { .compatible = "aptina,mt9v111", },
> - { /* sentinel */ },
> + { /* sentinel */ }
> };
> MODULE_DEVICE_TABLE(of, mt9v111_of_match);
>
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-09-03 11:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-29 12:52 [PATCH -next 0/2] media: i2c: mt9v111: workaround Liao Chen
2024-08-29 12:52 ` [PATCH -next 1/2] media: i2c: mt9v111: Enable module autoloading Liao Chen
2024-08-29 13:47 ` Laurent Pinchart
2024-09-03 11:47 ` Sakari Ailus
2024-08-29 12:52 ` [PATCH -next 2/2] media: i2c: mt9v111: Drop redundant comma Liao Chen
2024-08-29 13:05 ` Biju Das
2024-08-29 13:46 ` Laurent Pinchart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox