* [PATCH 1/1] ov08x40: remove() now returns void
@ 2022-11-21 17:34 Sakari Ailus
2022-11-21 18:00 ` Kieran Bingham
0 siblings, 1 reply; 3+ messages in thread
From: Sakari Ailus @ 2022-11-21 17:34 UTC (permalink / raw)
To: linux-media; +Cc: Shawn Tu
The return type of the driver's remove() callback is now void. This driver
got merged while the return type got changed tree-wide. Fix this.
Fixes: 38fc5136ac16 ("media: i2c: Add ov08x40 image sensor driver")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
drivers/media/i2c/ov08x40.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/media/i2c/ov08x40.c b/drivers/media/i2c/ov08x40.c
index b4ade17a83f5e..72ae7fba94eb0 100644
--- a/drivers/media/i2c/ov08x40.c
+++ b/drivers/media/i2c/ov08x40.c
@@ -3281,7 +3281,7 @@ static int ov08x40_probe(struct i2c_client *client)
return ret;
}
-static int ov08x40_remove(struct i2c_client *client)
+static void ov08x40_remove(struct i2c_client *client)
{
struct v4l2_subdev *sd = i2c_get_clientdata(client);
struct ov08x40 *ov08x = to_ov08x40(sd);
@@ -3292,8 +3292,6 @@ static int ov08x40_remove(struct i2c_client *client)
pm_runtime_disable(&client->dev);
pm_runtime_set_suspended(&client->dev);
-
- return 0;
}
static const struct dev_pm_ops ov08x40_pm_ops = {
--
2.30.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] ov08x40: remove() now returns void
2022-11-21 17:34 [PATCH 1/1] ov08x40: remove() now returns void Sakari Ailus
@ 2022-11-21 18:00 ` Kieran Bingham
2022-11-21 22:17 ` Sakari Ailus
0 siblings, 1 reply; 3+ messages in thread
From: Kieran Bingham @ 2022-11-21 18:00 UTC (permalink / raw)
To: Sakari Ailus, linux-media; +Cc: Shawn Tu
Hi Sakari,
Quoting Sakari Ailus (2022-11-21 17:34:53)
> The return type of the driver's remove() callback is now void. This driver
> got merged while the return type got changed tree-wide. Fix this.
>
> Fixes: 38fc5136ac16 ("media: i2c: Add ov08x40 image sensor driver")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Kieran: Mon, 21 Nov 2022 17:34:47 +0000
Sakari: Mon, 21 Nov 2022 19:34:53 +0200
Aha, so I got my v1 out 6 seconds before you ;-) Quite the tense race
...
But I'll not worry - yours is probably already in your tree, so:
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
> ---
> drivers/media/i2c/ov08x40.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/media/i2c/ov08x40.c b/drivers/media/i2c/ov08x40.c
> index b4ade17a83f5e..72ae7fba94eb0 100644
> --- a/drivers/media/i2c/ov08x40.c
> +++ b/drivers/media/i2c/ov08x40.c
> @@ -3281,7 +3281,7 @@ static int ov08x40_probe(struct i2c_client *client)
> return ret;
> }
>
> -static int ov08x40_remove(struct i2c_client *client)
> +static void ov08x40_remove(struct i2c_client *client)
> {
> struct v4l2_subdev *sd = i2c_get_clientdata(client);
> struct ov08x40 *ov08x = to_ov08x40(sd);
> @@ -3292,8 +3292,6 @@ static int ov08x40_remove(struct i2c_client *client)
>
> pm_runtime_disable(&client->dev);
> pm_runtime_set_suspended(&client->dev);
> -
> - return 0;
> }
>
> static const struct dev_pm_ops ov08x40_pm_ops = {
> --
> 2.30.2
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] ov08x40: remove() now returns void
2022-11-21 18:00 ` Kieran Bingham
@ 2022-11-21 22:17 ` Sakari Ailus
0 siblings, 0 replies; 3+ messages in thread
From: Sakari Ailus @ 2022-11-21 22:17 UTC (permalink / raw)
To: Kieran Bingham; +Cc: linux-media, Shawn Tu
Hi Kieran,
On Mon, Nov 21, 2022 at 06:00:15PM +0000, Kieran Bingham wrote:
> Hi Sakari,
>
> Quoting Sakari Ailus (2022-11-21 17:34:53)
> > The return type of the driver's remove() callback is now void. This driver
> > got merged while the return type got changed tree-wide. Fix this.
> >
> > Fixes: 38fc5136ac16 ("media: i2c: Add ov08x40 image sensor driver")
> > Reported-by: kernel test robot <lkp@intel.com>
> > Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
>
> Kieran: Mon, 21 Nov 2022 17:34:47 +0000
> Sakari: Mon, 21 Nov 2022 19:34:53 +0200
>
> Aha, so I got my v1 out 6 seconds before you ;-) Quite the tense race
> ...
>
> But I'll not worry - yours is probably already in your tree, so:
>
> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Thanks!
The SMTP standard does not define what time the Date: header signifies, it
could have been set by the sender or another server later on... but in this
case git send-email probably set it in both cases.
I haven't pushed my tree to linuxtv.org yet and yours has a better commit
message so I'll take it instead.
--
Sakari Ailus
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-11-21 22:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-21 17:34 [PATCH 1/1] ov08x40: remove() now returns void Sakari Ailus
2022-11-21 18:00 ` Kieran Bingham
2022-11-21 22:17 ` Sakari Ailus
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.