The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Mike Rapoport <mike@compulab.co.il>
To: Eric Miao <ymiao3@marvell.com>
Cc: rpurdie@rpsys.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drivers/video/backlight: rename da903x to da903x_bl
Date: Tue, 25 Nov 2008 12:01:37 +0200	[thread overview]
Message-ID: <492BCD01.7080508@compulab.co.il> (raw)
In-Reply-To: <E913911567467945BBEB9277E27868B00153DC31@msiexch01.marvell.com>



Eric Miao wrote:
> Isn't modprobe supposed to be smart enough for things like this?

Here's snap from build log:

mike@gentoodev /mnt/sdb1/git/linux-2.6-arm $ touch drivers/video/backlight/da903x.c
mike@gentoodev /mnt/sdb1/git/linux-2.6-arm $ touch drivers/regulator/da903x.c
mike@gentoodev /mnt/sdb1/git/linux-2.6-arm $ make O=/home/mike/arm/kernel/build/pxa/  modules
  CHK     include/linux/version.h
make[2]: `include/asm-arm/mach-types.h' is up to date.
  Using /mnt/sdb1/git/linux-2.6-arm as source for kernel
  GEN     /home/mike/arm/kernel/build/pxa/Makefile
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-arm
  CALL    /mnt/sdb1/git/linux-2.6-arm/scripts/checksyscalls.sh
<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
  CC [M]  drivers/regulator/da903x.o
  CC [M]  drivers/video/backlight/da903x.o
  Building modules, stage 2.
  MODPOST 70 modules
  LD [M]  drivers/video/backlight/da903x.ko
mike@gentoodev /mnt/sdb1/git/linux-2.6-arm $

So, apparently modpost is not smart enough for things like this :)

> I'm afraid if modprobe isn't so capable, we may encounter the same
> issue with other drivers and sometimes it is not so easy for
> developers of aphasia like me to choose a better name :)
> 
> - eric
> 
> -----Original Message-----
> From: Mike Rapoport [mailto:mike@compulab.co.il] 
> Sent: Tuesday, November 25, 2008 5:43 PM
> To: rpurdie@rpsys.net
> Cc: Eric Miao; linux-kernel@vger.kernel.org; Mike Rapoport
> Subject: [PATCH] drivers/video/backlight: rename da903x to da903x_bl
> 
> Currently both da903x backlight and voltage reulator drivers have the
> same name. Rename the backlight driver to allow use of both drivers as
> modules.
> 
> Signed-off-by: Mike Rapoport <mike@compulab.co.il>
> ---
>  drivers/video/backlight/Makefile                  |    2 +-
>  drivers/video/backlight/{da903x.c => da903x_bl.c} |    0 
>  2 files changed, 1 insertions(+), 1 deletions(-)
>  rename drivers/video/backlight/{da903x.c => da903x_bl.c} (100%)
> 
> diff --git a/drivers/video/backlight/Makefile
> b/drivers/video/backlight/Makefile
> index 103427d..2d8f7cb 100644
> --- a/drivers/video/backlight/Makefile
> +++ b/drivers/video/backlight/Makefile
> @@ -18,7 +18,7 @@ obj-$(CONFIG_BACKLIGHT_OMAP1)	+= omap1_bl.o
>  obj-$(CONFIG_BACKLIGHT_PROGEAR) += progear_bl.o
>  obj-$(CONFIG_BACKLIGHT_CARILLO_RANCH) += cr_bllcd.o
>  obj-$(CONFIG_BACKLIGHT_PWM)	+= pwm_bl.o
> -obj-$(CONFIG_BACKLIGHT_DA903X)	+= da903x.o
> +obj-$(CONFIG_BACKLIGHT_DA903X)	+= da903x_bl.o
>  obj-$(CONFIG_BACKLIGHT_MBP_NVIDIA) += mbp_nvidia_bl.o
>  obj-$(CONFIG_BACKLIGHT_TOSA)	+= tosa_bl.o
>  obj-$(CONFIG_BACKLIGHT_SAHARA)	+= kb3886_bl.o
> diff --git a/drivers/video/backlight/da903x.c
> b/drivers/video/backlight/da903x_bl.c
> similarity index 100%
> rename from drivers/video/backlight/da903x.c
> rename to drivers/video/backlight/da903x_bl.c

-- 
Sincerely yours,
Mike.



  reply	other threads:[~2008-11-25 10:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-25  9:42 [PATCH] drivers/video/backlight: rename da903x to da903x_bl Mike Rapoport
2008-11-25  9:51 ` Eric Miao
2008-11-25 10:01   ` Mike Rapoport [this message]
2008-11-26  8:12     ` Eric Miao
2008-11-29 13:03       ` Sam Ravnborg
2008-12-01  1:14         ` Eric Miao

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=492BCD01.7080508@compulab.co.il \
    --to=mike@compulab.co.il \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rpurdie@rpsys.net \
    --cc=ymiao3@marvell.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