public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
To: Hans Verkuil <hansverk@cisco.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
	Mauro Carvalho Chehab <mchehab@infradead.org>,
	Hans Verkuil <hans.verkuil@cisco.com>,
	Sakari Ailus <sakari.ailus@linux.intel.com>,
	Kate Stewart <kstewart@linuxfoundation.org>,
	Philippe Ombredanne <pombredanne@nexb.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jacopo Mondi <jacopo+renesas@jmondi.org>,
	Akinobu Mita <akinobu.mita@gmail.com>
Subject: Re: [PATCH] media: rename soc_camera I2C drivers
Date: Fri, 19 Oct 2018 09:31:46 -0300	[thread overview]
Message-ID: <20181019093146.195d0be5@coco.lan> (raw)
In-Reply-To: <fa7f6ef2-af25-a554-2ecc-e99c9fb1e68d@cisco.com>

Em Fri, 19 Oct 2018 13:45:32 +0200
Hans Verkuil <hansverk@cisco.com> escreveu:

> On 10/19/18 13:43, Mauro Carvalho Chehab wrote:
> > Those drivers are part of the legacy SoC camera framework.
> > They're being converted to not use it, but sometimes we're
> > keeping both legacy any new driver.
> > 
> > This time, for example, we have two drivers on media with
> > the same name: ov772x. That's bad.
> > 
> > So, in order to prevent that to happen, let's prepend the SoC
> > legacy drivers with soc_.
> > 
> > No functional changes.
> > 
> > Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>  
> 
> Acked-by: Hans Verkuil <hans.verkuil@cisco.com>

For now, let's just avoid the conflict if one builds both modules and
do a modprobe ov772x.

> Let's kill all of these in the next kernel. I see no reason for keeping
> them around.

While people are doing those SoC conversions, I would keep it. We
could move it to staging, to let it clear that those drivers require
conversion, and give people some time to work on it.

In the specific case of ov772x, as we have already a driver that doesn't
require soc_camera, we can strip it for -next.

> 
> Regards,
> 
> 	Hans
> 
> > ---
> >  drivers/media/i2c/soc_camera/Makefile          | 18 +++++++++---------
> >  .../soc_camera/{mt9m001.c => soc_mt9m001.c}    |  0
> >  .../soc_camera/{mt9t112.c => soc_mt9t112.c}    |  0
> >  .../soc_camera/{mt9v022.c => soc_mt9v022.c}    |  0
> >  .../i2c/soc_camera/{ov5642.c => soc_ov5642.c}  |  0
> >  .../i2c/soc_camera/{ov772x.c => soc_ov772x.c}  |  0
> >  .../i2c/soc_camera/{ov9640.c => soc_ov9640.c}  |  0
> >  .../i2c/soc_camera/{ov9740.c => soc_ov9740.c}  |  0
> >  .../{rj54n1cb0c.c => soc_rj54n1cb0c.c}         |  0
> >  .../i2c/soc_camera/{tw9910.c => soc_tw9910.c}  |  0
> >  10 files changed, 9 insertions(+), 9 deletions(-)
> >  rename drivers/media/i2c/soc_camera/{mt9m001.c => soc_mt9m001.c} (100%)
> >  rename drivers/media/i2c/soc_camera/{mt9t112.c => soc_mt9t112.c} (100%)
> >  rename drivers/media/i2c/soc_camera/{mt9v022.c => soc_mt9v022.c} (100%)
> >  rename drivers/media/i2c/soc_camera/{ov5642.c => soc_ov5642.c} (100%)
> >  rename drivers/media/i2c/soc_camera/{ov772x.c => soc_ov772x.c} (100%)
> >  rename drivers/media/i2c/soc_camera/{ov9640.c => soc_ov9640.c} (100%)
> >  rename drivers/media/i2c/soc_camera/{ov9740.c => soc_ov9740.c} (100%)
> >  rename drivers/media/i2c/soc_camera/{rj54n1cb0c.c => soc_rj54n1cb0c.c} (100%)
> >  rename drivers/media/i2c/soc_camera/{tw9910.c => soc_tw9910.c} (100%)
> > 
> > diff --git a/drivers/media/i2c/soc_camera/Makefile b/drivers/media/i2c/soc_camera/Makefile
> > index 8c7770f62997..09ae483b96ef 100644
> > --- a/drivers/media/i2c/soc_camera/Makefile
> > +++ b/drivers/media/i2c/soc_camera/Makefile
> > @@ -1,10 +1,10 @@
> >  # SPDX-License-Identifier: GPL-2.0
> > -obj-$(CONFIG_SOC_CAMERA_MT9M001)	+= mt9m001.o
> > -obj-$(CONFIG_SOC_CAMERA_MT9T112)	+= mt9t112.o
> > -obj-$(CONFIG_SOC_CAMERA_MT9V022)	+= mt9v022.o
> > -obj-$(CONFIG_SOC_CAMERA_OV5642)		+= ov5642.o
> > -obj-$(CONFIG_SOC_CAMERA_OV772X)		+= ov772x.o
> > -obj-$(CONFIG_SOC_CAMERA_OV9640)		+= ov9640.o
> > -obj-$(CONFIG_SOC_CAMERA_OV9740)		+= ov9740.o
> > -obj-$(CONFIG_SOC_CAMERA_RJ54N1)		+= rj54n1cb0c.o
> > -obj-$(CONFIG_SOC_CAMERA_TW9910)		+= tw9910.o
> > +obj-$(CONFIG_SOC_CAMERA_MT9M001)	+= soc_mt9m001.o
> > +obj-$(CONFIG_SOC_CAMERA_MT9T112)	+= soc_mt9t112.o
> > +obj-$(CONFIG_SOC_CAMERA_MT9V022)	+= soc_mt9v022.o
> > +obj-$(CONFIG_SOC_CAMERA_OV5642)		+= soc_ov5642.o
> > +obj-$(CONFIG_SOC_CAMERA_OV772X)		+= soc_ov772x.o
> > +obj-$(CONFIG_SOC_CAMERA_OV9640)		+= soc_ov9640.o
> > +obj-$(CONFIG_SOC_CAMERA_OV9740)		+= soc_ov9740.o
> > +obj-$(CONFIG_SOC_CAMERA_RJ54N1)		+= soc_rj54n1cb0c.o
> > +obj-$(CONFIG_SOC_CAMERA_TW9910)		+= soc_tw9910.o
> > diff --git a/drivers/media/i2c/soc_camera/mt9m001.c b/drivers/media/i2c/soc_camera/soc_mt9m001.c
> > similarity index 100%
> > rename from drivers/media/i2c/soc_camera/mt9m001.c
> > rename to drivers/media/i2c/soc_camera/soc_mt9m001.c
> > diff --git a/drivers/media/i2c/soc_camera/mt9t112.c b/drivers/media/i2c/soc_camera/soc_mt9t112.c
> > similarity index 100%
> > rename from drivers/media/i2c/soc_camera/mt9t112.c
> > rename to drivers/media/i2c/soc_camera/soc_mt9t112.c
> > diff --git a/drivers/media/i2c/soc_camera/mt9v022.c b/drivers/media/i2c/soc_camera/soc_mt9v022.c
> > similarity index 100%
> > rename from drivers/media/i2c/soc_camera/mt9v022.c
> > rename to drivers/media/i2c/soc_camera/soc_mt9v022.c
> > diff --git a/drivers/media/i2c/soc_camera/ov5642.c b/drivers/media/i2c/soc_camera/soc_ov5642.c
> > similarity index 100%
> > rename from drivers/media/i2c/soc_camera/ov5642.c
> > rename to drivers/media/i2c/soc_camera/soc_ov5642.c
> > diff --git a/drivers/media/i2c/soc_camera/ov772x.c b/drivers/media/i2c/soc_camera/soc_ov772x.c
> > similarity index 100%
> > rename from drivers/media/i2c/soc_camera/ov772x.c
> > rename to drivers/media/i2c/soc_camera/soc_ov772x.c
> > diff --git a/drivers/media/i2c/soc_camera/ov9640.c b/drivers/media/i2c/soc_camera/soc_ov9640.c
> > similarity index 100%
> > rename from drivers/media/i2c/soc_camera/ov9640.c
> > rename to drivers/media/i2c/soc_camera/soc_ov9640.c
> > diff --git a/drivers/media/i2c/soc_camera/ov9740.c b/drivers/media/i2c/soc_camera/soc_ov9740.c
> > similarity index 100%
> > rename from drivers/media/i2c/soc_camera/ov9740.c
> > rename to drivers/media/i2c/soc_camera/soc_ov9740.c
> > diff --git a/drivers/media/i2c/soc_camera/rj54n1cb0c.c b/drivers/media/i2c/soc_camera/soc_rj54n1cb0c.c
> > similarity index 100%
> > rename from drivers/media/i2c/soc_camera/rj54n1cb0c.c
> > rename to drivers/media/i2c/soc_camera/soc_rj54n1cb0c.c
> > diff --git a/drivers/media/i2c/soc_camera/tw9910.c b/drivers/media/i2c/soc_camera/soc_tw9910.c
> > similarity index 100%
> > rename from drivers/media/i2c/soc_camera/tw9910.c
> > rename to drivers/media/i2c/soc_camera/soc_tw9910.c
> >   
> 



Thanks,
Mauro

  reply	other threads:[~2018-10-19 20:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-19 11:43 [PATCH] media: rename soc_camera I2C drivers Mauro Carvalho Chehab
2018-10-19 11:45 ` Hans Verkuil
2018-10-19 12:31   ` Mauro Carvalho Chehab [this message]
2018-10-19 12:39     ` Hans Verkuil
2018-10-19 12:58       ` Sakari Ailus
2018-10-19 13:13         ` jacopo mondi
2018-10-19 20:19           ` Sakari Ailus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181019093146.195d0be5@coco.lan \
    --to=mchehab+samsung@kernel.org \
    --cc=akinobu.mita@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hans.verkuil@cisco.com \
    --cc=hansverk@cisco.com \
    --cc=jacopo+renesas@jmondi.org \
    --cc=kstewart@linuxfoundation.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@infradead.org \
    --cc=pombredanne@nexb.com \
    --cc=sakari.ailus@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox