From patchwork Thu Nov 3 16:31:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Kocialkowski X-Patchwork-Id: 15010 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp639764wru; Thu, 3 Nov 2022 09:37:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM61IcjIw8rV6flGci/BWSpnllTbfyf5JEbRStJFAbxucEPV4ZzGgpo6Gkkh12uTGiuGbz5B X-Received: by 2002:a05:6402:5250:b0:461:e870:850f with SMTP id t16-20020a056402525000b00461e870850fmr31023302edd.404.1667493430848; Thu, 03 Nov 2022 09:37:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667493430; cv=none; d=google.com; s=arc-20160816; b=TUfXPGBjICJdSPsB6Gk01bKP94cA1omh7l8T98dZzhwDEg/TzJRlBYklGQfaoQoriL 3WJZHMpxPWChMnJCkRxYecnZCrJgmlp4AsEs0KeFtyrg+Q49ytccDzuyBuUuO2SxXlBX GjQKJSLTVCiX1ov7Qjv3RuKAFgyJhIvYi6AVilEj3Sxb0VYhgUHgHI0epf2cL9Dz5AbE zQa8cxgUjQeVgE8/01zsoVleJwyy+tz7UWGw3g96a4nlasBPLxLEXPzYX6LmjoG2218O z1VMdlO3lbLI0wLHcSCeGwnUZNP/Qwbe7Fq/0f/bJ2/HCjUhrvkKp7NPeiHLEkAZz75u rZuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZMFnks6Lu4FCxDlZAZxi2Is0Upoea35FrSEj6lLHdlk=; b=fasBEkhwXS302eM+xjv0RA36eDBxd0RzgXqomtHTOmCOKfUcVAvW6FAjcEtCSpVqyq jZeqPTddwkdbrGeDJMwiMn8Y+4aRaWzh5ILOpLRLNFuBm5b9h5WNfxx7im++f59O9XSH GeAHK392KDFXiNjdY+kTTRefTYnbcGL3I/AZwulLKqcYHseTinJMCoB4AejCAnbn073g KVSr8CAFwKKqLGLqtrnUCradEfJdaAqj8aNlpnMljedf7m1FVSZWy8SmfL8/ct5TFJaO 8GcEDzER53vHgkYri4ALfRTHIDdmIiKwWxvkFc1H6QcZOsqo0NCZGVb4QlolOk5NSbOZ 3RIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=mBCUBOB8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f22-20020a0564021e9600b00463d1e263a7si1955370edf.332.2022.11.03.09.36.46; Thu, 03 Nov 2022 09:37:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=mBCUBOB8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232345AbiKCQdp (ORCPT + 99 others); Thu, 3 Nov 2022 12:33:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232124AbiKCQcT (ORCPT ); Thu, 3 Nov 2022 12:32:19 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D527C65D9; Thu, 3 Nov 2022 09:32:13 -0700 (PDT) Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 0956524000B; Thu, 3 Nov 2022 16:32:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667493132; 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=ZMFnks6Lu4FCxDlZAZxi2Is0Upoea35FrSEj6lLHdlk=; b=mBCUBOB8cc0YfaNz7cYZcOWfJbYdt/5PcIcgL4/HBRoSUkvhMawZl55VJPCJbPn6vETPMQ xaCNS3UwpEEgJ+v34IQoeHa4vooY1ZMk9zliOnI/z+Z1r3lYviYrZCl+XtzBWY79k2vGGl W9BxWaNAAVb32bmGbOmNza9e1UpC2GXq2Ohp5ZuM9okA9OLoOOyyX2mys6FubnRw26g6dh eDLBSX9sgKvGUEXAeItXm/78TAnTo2wvM52K8UQdFkPsSAk3U+Xe2jNxiPZkXjKqlztsWp rYULHmi3Ybh7islqMLW2om4TMslQEzwG4xUiLJ/ZG1KL0ySRqDqslfEKeM257w== 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 v7 22/28] media: sun6i-csi: Rename the capture video device to sun6i-csi-capture Date: Thu, 3 Nov 2022 17:31:07 +0100 Message-Id: <20221103163113.245462-23-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221103163113.245462-1-paul.kocialkowski@bootlin.com> References: <20221103163113.245462-1-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748493591937309341?= X-GMAIL-MSGID: =?utf-8?q?1748493591937309341?= 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 96a8e11fd55e..ec62442f778d 100644 --- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c +++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c @@ -1023,7 +1023,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