All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] media: atomisp: ov2722: replace hardcoded function name
@ 2021-01-05 20:29 Filip Kolev
  2021-01-06  7:51 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 9+ messages in thread
From: Filip Kolev @ 2021-01-05 20:29 UTC (permalink / raw)
  Cc: Filip Kolev, Mauro Carvalho Chehab, Sakari Ailus,
	Greg Kroah-Hartman, linux-media, devel, linux-kernel

There is a debug message using hardcoded function name instead of the
__func__ macro. Replace it.

Report from checkpatch.pl on the file:

WARNING: Prefer using '"%s...", __func__' to using 'ov2722_remove', this function's name, in a string
+	dev_dbg(&client->dev, "ov2722_remove...\n");

Signed-off-by: Filip Kolev <fil.kolev@gmail.com>
---
 drivers/staging/media/atomisp/i2c/atomisp-ov2722.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/media/atomisp/i2c/atomisp-ov2722.c b/drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
index eecefcd734d0e..21d6bc62d452a 100644
--- a/drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
+++ b/drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
@@ -1175,7 +1175,7 @@ static int ov2722_remove(struct i2c_client *client)
 	struct v4l2_subdev *sd = i2c_get_clientdata(client);
 	struct ov2722_device *dev = to_ov2722_sensor(sd);
 
-	dev_dbg(&client->dev, "ov2722_remove...\n");
+	dev_dbg(&client->dev, "%s...\n", __func__);
 
 	dev->platform_data->csi_cfg(sd, 0);
 	v4l2_ctrl_handler_free(&dev->ctrl_handler);
-- 
2.30.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-01-08 18:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-05 20:29 [PATCH] media: atomisp: ov2722: replace hardcoded function name Filip Kolev
2021-01-06  7:51 ` Greg Kroah-Hartman
2021-01-06 17:43   ` Filip Kolev
2021-01-06 17:52     ` Greg Kroah-Hartman
2021-01-06 18:25       ` Joe Perches
2021-01-06 19:36         ` Dan Carpenter
2021-01-06 21:17           ` Joe Perches
2021-01-07 10:53             ` Dan Carpenter
2021-01-08 18:32               ` [PATCH] checkpatch: Prefer ftrace over function entry/exit printks Joe Perches

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.