Re: [PATCH 7/7] mfd: s2mps11: Add samsung s2mps11 pmic

From: Samuel Ortiz
Date: Mon Jul 02 2012 - 10:22:22 EST


Hi Sangbeom,

On Mon, Jun 18, 2012 at 01:52:32PM +0100, Mark Brown wrote:
> On Mon, Jun 18, 2012 at 08:29:45PM +0900, Sangbeom Kim wrote:
>
> > -struct sec_irq_data {
> > - int reg;
> > - int mask;
> > +static struct sec_irq_data s2mps11_irqs[] = {
> > + [S2MPS11_IRQ_PWRONF] = {
> > + .reg = 1,
> > + .mask = S2MPS11_IRQ_PWRONF_MASK,
> > + },
>
> This looks like you should be able to factor this code out into
> regmap_irq? Might be worth doing that first before all the renames so
> that adding the new PMIC would just be adding some more data.
Would you mind looking into that ? I'm ok with the renaming parts of this
patchset, but I think addressing Mark comment here would make the last patch
look better (and smaller).

Cheers,
Samuel.

--
Intel Open Source Technology Centre
http://oss.intel.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/