From: Ben Dooks <ben-linux@fluff.org>
To: akpm@linux-foundation.org, linux-fbdev-devel@lists.sourceforge.net
Cc: Ben Dooks <ben-linux@fluff.org>
Subject: BACKLIGHT: Give platform_lcd the same name as the platform device.
Date: Mon, 28 Jul 2008 23:52:47 +0100 [thread overview]
Message-ID: <20080728225247.700174853@fluff.org.uk> (raw)
[-- Attachment #1: simtec/simtec-drivers-platlcd-unique-name.patch --]
[-- Type: text/plain, Size: 1299 bytes --]
When registering an platform_lcd, use the name of the platform
device specified in case there are more than one platform_lcd
backlights registered.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Index: linux-2.6.26-quilt4/drivers/video/backlight/platform_lcd.c
===================================================================
--- linux-2.6.26-quilt4.orig/drivers/video/backlight/platform_lcd.c 2008-07-28 10:48:01.000000000 +0100
+++ linux-2.6.26-quilt4/drivers/video/backlight/platform_lcd.c 2008-07-28 10:48:29.000000000 +0100
@@ -96,7 +96,7 @@ static int __devinit platform_lcd_probe(
plcd->us = dev;
plcd->pdata = pdata;
- plcd->lcd = lcd_device_register("platform-lcd", dev,
+ plcd->lcd = lcd_device_register(dev_name(dev), dev,
plcd, &platform_lcd_ops);
if (IS_ERR(plcd->lcd)) {
dev_err(dev, "cannot register lcd device\n");
--
Ben (ben@fluff.org, http://www.fluff.org/)
'a smiley only costs 4 bytes'
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
reply other threads:[~2008-07-28 22:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20080728225247.700174853@fluff.org.uk \
--to=ben-linux@fluff.org \
--cc=akpm@linux-foundation.org \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/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;
as well as URLs for NNTP newsgroup(s).