[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-kernel
Subject: Re: [PATCH 1/1] leds: Add LED driver for lm3556 chip
From: Mark Brown <broonie () opensource ! wolfsonmicro ! com>
Date: 2012-03-31 21:09:13
Message-ID: 20120331210913.GA19965 () sirena ! org ! uk
[Download RAW message or body]
On Fri, Mar 30, 2012 at 08:56:34PM +0200, Wolfram Sang wrote:
> On Fri, Mar 30, 2012 at 03:38:28PM +0900, Geon Si Jeong wrote:
> > +EXPORT_SYMBOL_GPL(lm3556_write_bits);
> Seeing all these functions it may be worth converting to REGMAP.
> Then you already have regmap_update_bits and the like.
Plus cache and debug infrastructure if that's useful.
> > +static ssize_t lm3556_indicator_pattern_store(struct device *dev,
> > + struct device_attribute *devAttr,
> > + const char *buf, size_t size)
> > +static DEVICE_ATTR(pattern, 0644, NULL, lm3556_indicator_pattern_store);
> I don't know the LED subsytsem very well. Is it that specific to the chip so we
> need a DEVICE_ATTR? Or can this be generalized in the core?
Alternatively some documentation indicating what the userspace ABI is
might help someone identify if there's a relevant feature more easily :)
If it's periodic blinking then there's definitely a core feature for
that.
> > + chip = kzalloc(sizeof(struct lm3556_chip_data), GFP_KERNEL);
devm_kzalloc()
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic