From patchwork Fri Apr 15 15:28:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Kocialkowski X-Patchwork-Id: 12815136 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D84B3C433F5 for ; Fri, 15 Apr 2022 15:56:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YRwM4y5otY3ZbcbrVIqCD7ycSELX4g/CJP43Z0iipf8=; b=pyeUcVgwr2glRN lzgfVJJTUTYSqCjmS78U5CimPmoNUP3KSKMud1qmuJTycAlYDQN7LokOw6+ubuxwRW9NUEKb060WY RID6jEtBqlgMA+0v6ZOC/GYq6ViMzZi1RN5rrOt2nPhMupiEmHQTJQn9C5sqr5NSe2W8u+P2Av7m1 Vjv/cgJHVkFs3L+zaDaXo+V3rOG3SEnUTmQYxcxisaBw3PIEF0iSLqP7buPMxbqoNJrgCoS2fbcLf /6KC2B+CGo0nAc4pgjmVkClvN2g5PZQczqpnzeORBNDmtLQz8Jg74XYpnI/0tGLjpIispccjBx79C VAQxO5VHIWpOECQoDgCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfOHp-00Aiks-0G; Fri, 15 Apr 2022 15:55:06 +0000 Received: from desiato.infradead.org ([90.155.92.199]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfNsi-00AXfs-S0 for linux-arm-kernel@bombadil.infradead.org; Fri, 15 Apr 2022 15:29:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=gGj0QnH8QxZA9mRlqEQryshwhN+v1j41f5zJdRdM9m4=; b=UmAISMp2FGQp09QXJOPECsPz5f qnj6WC6RUht2FGgQCC6ADRDK0xdiuBRQ4EGkJ7WEcP7VFD4A3RO3Z/qSd52i7v098bkMhR09Fc5Uk 4GejP3/sojGvQCGIZXE7qOUB2rmUx8XNRBsm9GJUjINARDAANAYqNcy1LAgrOGf4ztvXrZ6qPoC4d e3VSsf75G9GwMNee/FqEXl7kgQEQ1FZafDDLQbDbmF65D+vNXL7gVN4A7EikTHQoKSgR2Kn9/eJc7 iFVughrhfC8yZ8Wint2zsDrjtF4o7FEWMJ18p1oTHrR5NfWNbhGlJJrG1Tz1zGLp8Aocr7H4nqNS4 MEv/fPoA==; Received: from relay4-d.mail.gandi.net ([2001:4b98:dc4:8::224]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfNse-005QWh-0Z for linux-arm-kernel@lists.infradead.org; Fri, 15 Apr 2022 15:29:06 +0000 Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id B7516E0013; Fri, 15 Apr 2022 15:29:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1650036543; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gGj0QnH8QxZA9mRlqEQryshwhN+v1j41f5zJdRdM9m4=; b=GknlYP5+vG8cneVCfJ35894QrnXKkvkSEa00P2ZF9hmjJYA0oYV04WTLcdVoBDWqTWl6sn 6oFGWB3nPxClOOSnFuj2ptQvZ52BS+mp2nBwukWelOtiYvAC+syTTOic+96ALSoKjB2alJ ClPsJMCgPubTPWaJ4XRZqqJtbJoJKwK7Rd1dlFdcm6Hx2tvnKvhhMtiyAvP9C8Ntbdq+KI 7bHYb8vSZsLXpM4Dl5fYLoLnHlta0/3EDd4zjOVANIVIeiku/zYJMbSo26Jvc+0R6bwslg 5ObhOWS97I+DEVKkFDGR3Nn+5CL6L+mZVYW08RSsDScRUNzzF6DgeNYNTIqK9Q== From: Paul Kocialkowski To: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Cc: Yong Deng , Paul Kocialkowski , Mauro Carvalho Chehab , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Laurent Pinchart , Maxime Ripard , Thomas Petazzoni Subject: [PATCH v4 37/45] media: sun6i-csi: Rename the capture video device to sun6i-csi-capture Date: Fri, 15 Apr 2022 17:28:03 +0200 Message-Id: <20220415152811.636419-38-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220415152811.636419-1-paul.kocialkowski@bootlin.com> References: <20220415152811.636419-1-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220415_162904_555037_7E0F752A X-CRM114-Status: GOOD ( 12.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Now that the driver is properly split between bridge and capture, rename the video device to highlight its role and be in line with the bridge entity naming. Signed-off-by: Paul Kocialkowski Acked-by: Jernej Skrabec --- drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c | 3 ++- drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c index a6619d083308..c3b1e1411da4 100644 --- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c +++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c @@ -1027,7 +1027,8 @@ int sun6i_csi_capture_setup(struct sun6i_csi_device *csi_dev) /* Video Device */ - strscpy(video_dev->name, SUN6I_CSI_NAME, sizeof(video_dev->name)); + strscpy(video_dev->name, SUN6I_CSI_CAPTURE_NAME, + sizeof(video_dev->name)); video_dev->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; video_dev->vfl_dir = VFL_DIR_RX; video_dev->release = video_device_release_empty; diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.h b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.h index a61db3bc72e5..59c57bcefeec 100644 --- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.h +++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.h @@ -11,6 +11,8 @@ #include #include +#define SUN6I_CSI_CAPTURE_NAME "sun6i-csi-capture" + #define SUN6I_CSI_CAPTURE_WIDTH_MIN 32 #define SUN6I_CSI_CAPTURE_WIDTH_MAX 4800 #define SUN6I_CSI_CAPTURE_HEIGHT_MIN 32