Received: by 10.192.165.148 with SMTP id m20csp1661966imm; Thu, 3 May 2018 03:23:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr7PaNI7fBj9GiMAcgB7atFISeRkVpf3COiTQBvJpu8sFo+txq0vCBKit1J2f0jU5bfC+cJ X-Received: by 2002:a63:7f59:: with SMTP id p25-v6mr18741907pgn.440.1525342997845; Thu, 03 May 2018 03:23:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525342997; cv=none; d=google.com; s=arc-20160816; b=nC1wDE1Pqg9ljkpujfI0ZJObvd2FIeGJxhwY5VQY7BXVw1ChU6tujQPQcJZ2CKKAK3 id2LxiD9CIy/el2hFA4LaUN0312iO/dcvZe9NgQpKPd7iNgAVJpsq7MhnkRtzXEKLVal QrIZTB8PtK8LrP9OfEm5QU8XXwLljKrAKaP5vKHnWW6meXlu+d3AGQHeau1GjYWjCPpQ GIijaoNwAQdcFQvTOeJjhXQdgeSrFg2QqXhN05//RdlCS9o0Y4LwpB/PVDULM76pSJQ1 wa3Wu9jXAuQNu/uppXuxwStX9HcePWtrhkCYN12ZEZ4fBmlxq4b/UwJr0+Z+nD2cWZ+e mZSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=2NKhuK2wHs76SZ+Hgt4o8BHIUl/gjmPJqeDMi7JbFAU=; b=R8pE9p7+BynCyKnviTXmJEgL7r/uW3Zixg5jFMnsoSY4jCwzabcWZp7h+TGC9CR1k5 e9f23iwO2fmgT3UAC6sAiNQM66MD9crMwIaZR2gnRkfm4NZqUmOOLDCEMvbCCUR8eAf2 5UUDpIOAJrWhtyO9etx2IjmClbtrTRSJV0wl3lXwNgpVPbHYBjMEa1/nLu9V3w/75rTq e06IN9mR+/k1//85svoI6DgOK2Klf9Y3Day1V0OoBk660SYGbuu6t9p/i9vyeUyqbgXP 3CMUbHH5S991QCOYTJU+OL9RR8RdmRlCfPGAILzRbBTI+33Bm/kP7adv5LwJbwJQI2M0 mYEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HEZWfL/m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12-v6si10909836pgs.183.2018.05.03.03.23.03; Thu, 03 May 2018 03:23:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HEZWfL/m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752370AbeECKVs (ORCPT + 99 others); Thu, 3 May 2018 06:21:48 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:46202 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752063AbeECKVl (ORCPT ); Thu, 3 May 2018 06:21:41 -0400 Received: by mail-pf0-f194.google.com with SMTP id p12so14329763pff.13 for ; Thu, 03 May 2018 03:21:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=2NKhuK2wHs76SZ+Hgt4o8BHIUl/gjmPJqeDMi7JbFAU=; b=HEZWfL/mO+KLksdGixv7JX2xbHeOi8JOog5F3cn86/a9lF2/AC15XnXE53K0cNBlNx n+Ci3aV7DxAu7c02jTHPvycg19A83md55p2yQdLpcJ+cWT5kP780c3SV8QrwMYSbVnSI bE1B2+HsKdW8KQ7xOUbwrk9c4xLuXinUOzI3xTVkID+E7DV0VxJK6bBtPkATwqBL42LJ mf5vGS6+5K4UZ5Uw23rJl2CSDQwNWsS7MGvylqVXZOcN1tgz/hmaSIkTwUJJCjHy7ddS 9VFr0/5mWavZJ7QGFlbHyrF7bLjIYO0kYYPSvmpZNdsbuDai2ea5REihZasiFD4a8Bfd q71A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=2NKhuK2wHs76SZ+Hgt4o8BHIUl/gjmPJqeDMi7JbFAU=; b=jgFrPULidJQjWy18ioHk7Sxaq60jJk8GVlcTikgtSXEDiOLVWB+xBKR3jVdJPDe3yS GrPyH9PqRWWPKdCyo3vlGA82r90MsdZO/AlP4d7FtdV40mXAiwjDMOprVD2k5B7SFTyx 1X73YjKNHzjbjV5tOiRG6csfjLnWhHPRADUDVgpLv7dbTj63t5jGwBfZsMbbdktjAA3F kf4RWfj9KMpcMgsP9TrWUaLTj7cG1Dvl+30eSZaU0N/h2WdHmYkU96bMwytghHn8cAo1 PyhhrQ9e3vH/zEZ4vo8UfT2JgTznM4f3hIdMXFAjFVY49NJpDjrjqlURPBJailDOj3zS v4bQ== X-Gm-Message-State: ALQs6tAW0SdrYJ/UWBg3Zh4sjFvtiXcEYeKS0yCI979uXZ9SIsapD7SO TNhYlstUrgWo3/Jns4zDZUAaG6l7OlI= X-Received: by 2002:a17:902:1e2:: with SMTP id b89-v6mr23806294plb.389.1525342900761; Thu, 03 May 2018 03:21:40 -0700 (PDT) Received: from nihaal-Latitude-E6410 ([2405:204:734f:a0fc:b8a9:67b7:5577:80d9]) by smtp.gmail.com with ESMTPSA id f29sm24529566pff.169.2018.05.03.03.21.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 May 2018 03:21:40 -0700 (PDT) From: Abdun Nihaal To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Abdun Nihaal Subject: [PATCH] staging: most: video: use __func__ instead of function name Date: Thu, 3 May 2018 15:51:05 +0530 Message-Id: <20180503102105.13225-1-abdun.nihaal@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fixes the following checkpatch warning in video.c: WARNING: Prefer using '\"%s...\", __func__' to using function's name in a string Signed-off-by: Abdun Nihaal --- drivers/staging/most/video/video.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/most/video/video.c b/drivers/staging/most/video/video.c index 9d7e747519d9..c85e289275a9 100644 --- a/drivers/staging/most/video/video.c +++ b/drivers/staging/most/video/video.c @@ -73,7 +73,7 @@ static int comp_vdev_open(struct file *filp) struct most_video_dev *mdev = video_drvdata(filp); struct comp_fh *fh; - v4l2_info(&mdev->v4l2_dev, "comp_vdev_open()\n"); + v4l2_info(&mdev->v4l2_dev, "%s()\n", __func__); switch (vdev->vfl_type) { case VFL_TYPE_GRABBER: @@ -122,7 +122,7 @@ static int comp_vdev_close(struct file *filp) struct most_video_dev *mdev = fh->mdev; struct mbo *mbo, *tmp; - v4l2_info(&mdev->v4l2_dev, "comp_vdev_close()\n"); + v4l2_info(&mdev->v4l2_dev, "%s()\n", __func__); /* * We need to put MBOs back before we call most_stop_channel() @@ -250,7 +250,7 @@ static int vidioc_querycap(struct file *file, void *priv, struct comp_fh *fh = priv; struct most_video_dev *mdev = fh->mdev; - v4l2_info(&mdev->v4l2_dev, "vidioc_querycap()\n"); + v4l2_info(&mdev->v4l2_dev, "%s()\n", __func__); strlcpy(cap->driver, "v4l2_component", sizeof(cap->driver)); strlcpy(cap->card, "MOST", sizeof(cap->card)); @@ -270,7 +270,7 @@ static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv, struct comp_fh *fh = priv; struct most_video_dev *mdev = fh->mdev; - v4l2_info(&mdev->v4l2_dev, "vidioc_enum_fmt_vid_cap() %d\n", f->index); + v4l2_info(&mdev->v4l2_dev, "%s() %d\n", __func__, f->index); if (f->index) return -EINVAL; @@ -289,7 +289,7 @@ static int vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct comp_fh *fh = priv; struct most_video_dev *mdev = fh->mdev; - v4l2_info(&mdev->v4l2_dev, "vidioc_g_fmt_vid_cap()\n"); + v4l2_info(&mdev->v4l2_dev, "%s()\n", __func__); comp_set_format_struct(f); return 0; @@ -318,7 +318,7 @@ static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *norm) struct comp_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; @@ -355,7 +355,7 @@ static int vidioc_s_input(struct file *file, void *priv, unsigned int index) struct comp_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_CMP_MAX_INPUT) return -EINVAL; @@ -435,7 +435,7 @@ static int comp_register_videodev(struct most_video_dev *mdev) { int ret; - v4l2_info(&mdev->v4l2_dev, "comp_register_videodev()\n"); + v4l2_info(&mdev->v4l2_dev, "%s()\n", __func__); init_waitqueue_head(&mdev->wait_data); @@ -465,7 +465,7 @@ static int comp_register_videodev(struct most_video_dev *mdev) static void comp_unregister_videodev(struct most_video_dev *mdev) { - v4l2_info(&mdev->v4l2_dev, "comp_unregister_videodev()\n"); + v4l2_info(&mdev->v4l2_dev, "%s()\n", __func__); video_unregister_device(mdev->vdev); } @@ -485,7 +485,7 @@ static int comp_probe_channel(struct most_interface *iface, int channel_idx, int ret; struct most_video_dev *mdev = get_comp_dev(iface, channel_idx); - pr_info("comp_probe_channel(%s)\n", name); + pr_info("%s(%s)\n", __func__, name); if (mdev) { pr_err("channel already linked\n"); @@ -531,7 +531,7 @@ static int comp_probe_channel(struct most_interface *iface, int channel_idx, spin_lock_irq(&list_lock); list_add(&mdev->list, &video_devices); spin_unlock_irq(&list_lock); - v4l2_info(&mdev->v4l2_dev, "comp_probe_channel() done\n"); + v4l2_info(&mdev->v4l2_dev, "%s() done\n", __func__); return 0; err_unreg: @@ -550,7 +550,7 @@ static int comp_disconnect_channel(struct most_interface *iface, return -ENOENT; } - v4l2_info(&mdev->v4l2_dev, "comp_disconnect_channel()\n"); + v4l2_info(&mdev->v4l2_dev, "%s()\n", __func__); spin_lock_irq(&list_lock); list_del(&mdev->list); -- 2.17.0