lkml.org 
[lkml]   [2012]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 7/7] mfd: s2mps11: Add samsung s2mps11 pmic
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.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2012-06-18 15:41    [W:0.054 / U:0.572 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site