All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5] Staging: most: use __func__ instead of the function name
@ 2017-04-26 23:16 Chandra Annamaneni
  2017-04-28  9:57 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Chandra Annamaneni @ 2017-04-26 23:16 UTC (permalink / raw)
  To: christian.gromm, andrey.shvetsov; +Cc: linux-kernel, devel


Change video.c to use %s, __func__ instead of function names.
Warnings flagged by checkpatch.pl

Signed-off-by: Chandra Annamaneni <chandra627@gmail.com>

diff --git a/drivers/staging/most/aim-v4l2/video.c b/drivers/staging/most/aim-v4l2/video.c
index e074841..59e861e 100644
--- a/drivers/staging/most/aim-v4l2/video.c
+++ b/drivers/staging/most/aim-v4l2/video.c
@@ -79,7 +79,7 @@ static int aim_vdev_open(struct file *filp)
  	struct most_video_dev *mdev = video_drvdata(filp);
  	struct aim_fh *fh;

-	v4l2_info(&mdev->v4l2_dev, "aim_vdev_open()\n");
+	v4l2_info(&mdev->v4l2_dev, "%s()\n", __func__);

  	switch (vdev->vfl_type) {
  	case VFL_TYPE_GRABBER:
@@ -128,7 +128,7 @@ static int aim_vdev_close(struct file *filp)
  	struct most_video_dev *mdev = fh->mdev;
  	struct mbo *mbo, *tmp;

-	v4l2_info(&mdev->v4l2_dev, "aim_vdev_close()\n");
+	v4l2_info(&mdev->v4l2_dev, "%s()\n", __func__);

  	/*
  	 * We need to put MBOs back before we call most_stop_channel()
@@ -324,7 +324,7 @@ static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *norm)
  	struct aim_fh *fh = priv;
  	struct most_video_dev *mdev = fh->mdev;

-	v4l2_info(&mdev->v4l2_dev, "vidioc_g_std()\n");
+	v4l2_info(&mdev->v4l2_dev, "%s()\n", __func__);

  	*norm = V4L2_STD_UNKNOWN;
  	return 0;
@@ -361,7 +361,7 @@ static int vidioc_s_input(struct file *file, void *priv, unsigned int index)
  	struct aim_fh *fh = priv;
  	struct most_video_dev *mdev = fh->mdev;

-	v4l2_info(&mdev->v4l2_dev, "vidioc_s_input(%d)\n", index);
+	v4l2_info(&mdev->v4l2_dev, "%s(%d)\n", __func__, index);

  	if (index >= V4L2_AIM_MAX_INPUT)
  		return -EINVAL;
@@ -441,7 +441,7 @@ static int aim_register_videodev(struct most_video_dev *mdev)
  {
  	int ret;

-	v4l2_info(&mdev->v4l2_dev, "aim_register_videodev()\n");
+	v4l2_info(&mdev->v4l2_dev, "%s()\n", __func__);

  	init_waitqueue_head(&mdev->wait_data);

@@ -471,7 +471,7 @@ static int aim_register_videodev(struct most_video_dev *mdev)

  static void aim_unregister_videodev(struct most_video_dev *mdev)
  {
-	v4l2_info(&mdev->v4l2_dev, "aim_unregister_videodev()\n");
+	v4l2_info(&mdev->v4l2_dev, "%s()\n", __func__);

  	video_unregister_device(mdev->vdev);
  }

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

* Re: [PATCH v5] Staging: most: use __func__ instead of the function name
  2017-04-26 23:16 [PATCH v5] Staging: most: use __func__ instead of the function name Chandra Annamaneni
@ 2017-04-28  9:57 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2017-04-28  9:57 UTC (permalink / raw)
  To: Chandra Annamaneni; +Cc: christian.gromm, andrey.shvetsov, devel, linux-kernel

On Wed, Apr 26, 2017 at 04:16:58PM -0700, Chandra Annamaneni wrote:
> 
> Change video.c to use %s, __func__ instead of function names.
> Warnings flagged by checkpatch.pl
> 
> Signed-off-by: Chandra Annamaneni <chandra627@gmail.com>

This patch does not apply to my staging-next branch at all :(

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

end of thread, other threads:[~2017-04-28  9:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-26 23:16 [PATCH v5] Staging: most: use __func__ instead of the function name Chandra Annamaneni
2017-04-28  9:57 ` Greg KH

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.