From patchwork Tue Aug 17 07:26:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 498355 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD6B6C432BE for ; Tue, 17 Aug 2021 07:26:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A8EF860F5E for ; Tue, 17 Aug 2021 07:26:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234683AbhHQH1C (ORCPT ); Tue, 17 Aug 2021 03:27:02 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:32925 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233688AbhHQH1C (ORCPT ); Tue, 17 Aug 2021 03:27:02 -0400 Received: (Authenticated sender: jacopo@jmondi.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 54EC9FF80B; Tue, 17 Aug 2021 07:26:26 +0000 (UTC) From: Jacopo Mondi To: Mauro Carvalho Chehab , Kieran Bingham , Laurent Pinchart , =?utf-8?q?Niklas_S=C3=B6?= =?utf-8?q?derlund?= Cc: Jacopo Mondi , Hans Verkuil , Sakari Ailus , Manivannan Sadhasivam , Thomas NIZAN , linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org Subject: [RFC 1/5] media: i2c: max9271: Rename max9271 library driver Date: Tue, 17 Aug 2021 09:26:59 +0200 Message-Id: <20210817072703.1167-2-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210817072703.1167-1-jacopo+renesas@jmondi.org> References: <20210817072703.1167-1-jacopo+renesas@jmondi.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Support for the MAX9271 GMSL serializer was provided in the form of a library driver, with the RDACM20 and RDACM21 camera module drivers using the functions exported by the library. In preparation to introduce an i2c subdevice driver to support the MAX9271 serializer, rename the library driver from max9271 to max9271-lib. Signed-off-by: Jacopo Mondi Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- MAINTAINERS | 8 ++++---- drivers/media/i2c/Makefile | 2 +- drivers/media/i2c/{max9271.c => max9271-lib.c} | 2 +- drivers/media/i2c/{max9271.h => max9271-lib.h} | 0 drivers/media/i2c/rdacm20.c | 2 +- drivers/media/i2c/rdacm21.c | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) rename drivers/media/i2c/{max9271.c => max9271-lib.c} (99%) rename drivers/media/i2c/{max9271.h => max9271-lib.h} (100%) diff --git a/MAINTAINERS b/MAINTAINERS index 524eabe50d79..7ad89cac19b7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15625,8 +15625,8 @@ M: Niklas Söderlund L: linux-media@vger.kernel.org S: Maintained F: Documentation/devicetree/bindings/media/i2c/imi,rdacm2x-gmsl.yaml -F: drivers/media/i2c/max9271.c -F: drivers/media/i2c/max9271.h +F: drivers/media/i2c/max9271-lib.c +F: drivers/media/i2c/max9271-lib.h F: drivers/media/i2c/rdacm20.c RDACM21 Camera Sensor @@ -15637,8 +15637,8 @@ M: Niklas Söderlund L: linux-media@vger.kernel.org S: Maintained F: Documentation/devicetree/bindings/media/i2c/imi,rdacm2x-gmsl.yaml -F: drivers/media/i2c/max9271.c -F: drivers/media/i2c/max9271.h +F: drivers/media/i2c/max9271-lib.c +F: drivers/media/i2c/max9271-lib.h F: drivers/media/i2c/rdacm21.c RDC R-321X SoC diff --git a/drivers/media/i2c/Makefile b/drivers/media/i2c/Makefile index 83268f20aa3a..4d879373bd48 100644 --- a/drivers/media/i2c/Makefile +++ b/drivers/media/i2c/Makefile @@ -129,7 +129,7 @@ obj-$(CONFIG_VIDEO_IMX335) += imx335.o obj-$(CONFIG_VIDEO_IMX355) += imx355.o obj-$(CONFIG_VIDEO_IMX412) += imx412.o obj-$(CONFIG_VIDEO_MAX9286) += max9286.o -obj-$(CONFIG_VIDEO_MAX9271_LIB) += max9271.o +obj-$(CONFIG_VIDEO_MAX9271_LIB) += max9271-lib.o obj-$(CONFIG_VIDEO_RDACM20) += rdacm20.o obj-$(CONFIG_VIDEO_RDACM21) += rdacm21.o obj-$(CONFIG_VIDEO_ST_MIPID02) += st-mipid02.o diff --git a/drivers/media/i2c/max9271.c b/drivers/media/i2c/max9271-lib.c similarity index 99% rename from drivers/media/i2c/max9271.c rename to drivers/media/i2c/max9271-lib.c index ff86c8c4ea61..c554bb0f42f4 100644 --- a/drivers/media/i2c/max9271.c +++ b/drivers/media/i2c/max9271-lib.c @@ -20,7 +20,7 @@ #include #include -#include "max9271.h" +#include "max9271-lib.h" static int max9271_read(struct max9271_device *dev, u8 reg) { diff --git a/drivers/media/i2c/max9271.h b/drivers/media/i2c/max9271-lib.h similarity index 100% rename from drivers/media/i2c/max9271.h rename to drivers/media/i2c/max9271-lib.h diff --git a/drivers/media/i2c/rdacm20.c b/drivers/media/i2c/rdacm20.c index eb0e3dc22cc3..bf06a1c50306 100644 --- a/drivers/media/i2c/rdacm20.c +++ b/drivers/media/i2c/rdacm20.c @@ -27,7 +27,7 @@ #include #include -#include "max9271.h" +#include "max9271-lib.h" #define OV10635_I2C_ADDRESS 0x30 diff --git a/drivers/media/i2c/rdacm21.c b/drivers/media/i2c/rdacm21.c index 35217782f693..3a05abe4e96c 100644 --- a/drivers/media/i2c/rdacm21.c +++ b/drivers/media/i2c/rdacm21.c @@ -21,7 +21,7 @@ #include #include #include -#include "max9271.h" +#include "max9271-lib.h" #define MAX9271_RESET_CYCLES 10