From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: Samuel Ortiz <sameo@linux.intel.com>,
uclinux-dist-devel@blackfin.uclinux.org,
linux-kernel@vger.kernel.org,
Michael Hennerich <michael.hennerich@analog.com>,
Bryan Wu <cooloney@kernel.org>
Subject: Re: [PATCH v3] mfd: ADP5520 Multifunction LCD Backlight and Keypad Input Device Driver
Date: Tue, 6 Oct 2009 12:55:44 +0100 [thread overview]
Message-ID: <20091006115543.GH27168@sirena.org.uk> (raw)
In-Reply-To: <1254815071-15822-1-git-send-email-vapier@gentoo.org>
On Tue, Oct 06, 2009 at 03:44:31AM -0400, Mike Frysinger wrote:
> +int adp5520_register_notifier(struct device *dev, struct notifier_block *nb,
> + unsigned int events)
> +{
This notifier stuff looks an awful lot like an interrupt controller
driver. Now that it's possible to implement support for an I2C/SPI
driven interrupt controller it'd be good to use that rather than having
a custom API if that's possible.
> +#define GPIO_R3 (1 << 3) /* LED3 or GPIO3 aka R3 */
> +#define GPIO_R2 (1 << 2)
> +#define GPIO_R1 (1 << 1)
> +#define GPIO_R0 (1 << 0)
> +struct adp5520_gpio_platfrom_data {
> + unsigned gpio_start;
> + u8 gpio_en_mask;
> + u8 gpio_pullup_mask;
> +};
Since there's platform data in here it'd probably be better to namespace
the #defines or put them in a separate header in case there are
collisions with some other chip used on a board.
> +struct adp5520_leds_platfrom_data {
There's some 'platfrom' rather than 'platform' typos.
> + int num_leds;
> + struct led_info *leds;
> + u8 fade_in; /* Backlight Fade-In Timer */
> + u8 fade_out; /* Backlight Fade-Out Timer */
> + u8 led_on_time;
I don't know exactly what the on_time option does but if it controls
hardware-implemented blinking there's actually a callback function the
LED driver can implement to allow triggers to use the hardware assisted
blinking at runtime. If it returns an error or isn't implemented
there's a software fallback.
next prev parent reply other threads:[~2009-10-06 11:56 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-17 18:27 [PATCH] " Mike Frysinger
2009-09-23 5:11 ` [PATCH v2] " Mike Frysinger
2009-09-29 21:04 ` [Uclinux-dist-devel] " Mike Frysinger
2009-09-29 21:14 ` Andrew Morton
2009-09-29 21:19 ` Mike Frysinger
2009-09-29 21:31 ` Samuel Ortiz
2009-09-29 21:19 ` Andrew Morton
2009-09-29 21:57 ` Hennerich, Michael
2009-10-01 14:09 ` Samuel Ortiz
2009-10-02 9:38 ` Hennerich, Michael
2009-10-02 13:15 ` Samuel Ortiz
2009-10-02 14:39 ` Hennerich, Michael
2009-10-02 13:48 ` [Uclinux-dist-devel] [PATCH v2] mfd: ADP5520 Multifunction LCDBacklight " Hennerich, Michael
2009-10-02 14:05 ` Samuel Ortiz
2009-10-02 14:27 ` Mark Brown
2009-10-02 14:37 ` [Uclinux-dist-devel] [PATCH v2] mfd: ADP5520 MultifunctionLCDBacklight " Hennerich, Michael
2009-10-02 14:38 ` Mark Brown
2009-10-02 15:24 ` [Uclinux-dist-devel] [PATCH v2] mfd: ADP5520MultifunctionLCDBacklight " Hennerich, Michael
2009-10-06 7:44 ` [PATCH v3] mfd: ADP5520 Multifunction LCD Backlight " Mike Frysinger
2009-10-06 11:55 ` Mark Brown [this message]
2009-10-06 12:23 ` [PATCH v3] mfd: ADP5520 Multifunction LCD Backlight and KeypadInput " Hennerich, Michael
2009-10-06 12:36 ` Mark Brown
2009-10-06 12:55 ` Hennerich, Michael
2009-10-06 13:58 ` Mark Brown
2009-10-06 14:32 ` Hennerich, Michael
2009-10-06 14:48 ` Mark Brown
2009-10-06 15:05 ` Hennerich, Michael
2009-10-06 16:05 ` Mark Brown
2009-10-07 8:50 ` Hennerich, Michael
2009-10-07 10:06 ` Mark Brown
2009-10-07 12:11 ` Hennerich, Michael
2009-10-07 13:03 ` Mark Brown
2009-10-07 13:01 ` Hennerich, Michael
2009-10-07 13:19 ` Mark Brown
2009-10-07 13:35 ` Hennerich, Michael
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=20091006115543.GH27168@sirena.org.uk \
--to=broonie@opensource.wolfsonmicro.com \
--cc=cooloney@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.hennerich@analog.com \
--cc=sameo@linux.intel.com \
--cc=uclinux-dist-devel@blackfin.uclinux.org \
--cc=vapier@gentoo.org \
/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
all inboxes | Powered by JetHome®