public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Qing Xu <qingx@marvell.com>
To: Qing Xu <qingx@marvell.com>
Cc: Qiao Zhou <zhouqiao@marvell.com>,
	"sameo@linux.intel.com" <sameo@linux.intel.com>,
	Chao Xie <cxie4@marvell.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/4] mfd: 88pm80x: move to regmap irq base implementation
Date: Wed, 12 Dec 2012 14:25:53 +0800	[thread overview]
Message-ID: <50C82371.7040808@marvell.com> (raw)
In-Reply-To: <1354513245-20775-1-git-send-email-qingx@marvell.com>

On 12/03/2012 01:40 PM, Qing Xu wrote:
> From: Qing Xu <qingx@marvell.com>
>
> get irq_base for mfd sub-device
>
> Signed-off-by: Qiao Zhou <zhouqiao@marvell.com>
> Signed-off-by: Qing Xu <qingx@marvell.com>
> ---
>   drivers/mfd/88pm800.c       |    2 +-
>   drivers/mfd/88pm805.c       |    1 +
>   include/linux/mfd/88pm80x.h |    1 +
>   3 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c
> index 73b2c9f..e1525ab 100644
> --- a/drivers/mfd/88pm800.c
> +++ b/drivers/mfd/88pm800.c
> @@ -343,7 +343,7 @@ static int __devinit device_irq_init_800(struct pm80x_chip *chip)
>   	ret =
>   	    regmap_add_irq_chip(chip->regmap, chip->irq, flags, -1,
>   				chip->regmap_irq_chip, &chip->irq_data);
> -
> +	chip->irq_base = regmap_irq_chip_get_base(chip->irq_data);
>   out:
>   	return ret;
>   }
> diff --git a/drivers/mfd/88pm805.c b/drivers/mfd/88pm805.c
> index 7878013..8c9e25a 100644
> --- a/drivers/mfd/88pm805.c
> +++ b/drivers/mfd/88pm805.c
> @@ -168,6 +168,7 @@ static int __devinit device_irq_init_805(struct pm80x_chip *chip)
>   	ret =
>   	    regmap_add_irq_chip(chip->regmap, chip->irq, flags, -1,
>   				chip->regmap_irq_chip, &chip->irq_data);
> +	chip->irq_base = regmap_irq_chip_get_base(chip->irq_data);
>   out:
>   	return ret;
>   }
> diff --git a/include/linux/mfd/88pm80x.h b/include/linux/mfd/88pm80x.h
> index a0ca0dc..904efb9 100644
> --- a/include/linux/mfd/88pm80x.h
> +++ b/include/linux/mfd/88pm80x.h
> @@ -303,6 +303,7 @@ struct pm80x_chip {
>   	int id;
>   	int irq;
>   	int irq_mode;
> +	int irq_base;
>   	unsigned long wu_flag;
>   	spinlock_t lock;
>   };


Samuel,

Could you help to review my patch? Thanks a lot!

Qing



      reply	other threads:[~2012-12-12  7:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-03  5:40 [PATCH 2/4] mfd: 88pm80x: move to regmap irq base implementation Qing Xu
2012-12-12  6:25 ` Qing Xu [this message]

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=50C82371.7040808@marvell.com \
    --to=qingx@marvell.com \
    --cc=cxie4@marvell.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sameo@linux.intel.com \
    --cc=zhouqiao@marvell.com \
    /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