mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Samuel Ortiz <sameo@linux.intel.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mfd: Update WM8350 drivers for changed interrupt numbers
Date: Wed, 6 Jan 2010 20:50:01 +0100	[thread overview]
Message-ID: <20100106195000.GC23473@sortiz.org> (raw)
In-Reply-To: <1262805865-15605-1-git-send-email-broonie@opensource.wolfsonmicro.com>

Hi Mark,

On Wed, Jan 06, 2010 at 07:24:25PM +0000, Mark Brown wrote:
> The headphone detect and charger are using the IRQ numbers so need
> to take account of irq_base with the genirq conversion. I obviously
> picked the wrong system for initial testing.
Patch applied to my for-next branch, thanks.

Cheers,
Samuel.


> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
>  drivers/power/wm8350_power.c |    2 +-
>  sound/soc/codecs/wm8350.c    |    4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/power/wm8350_power.c b/drivers/power/wm8350_power.c
> index 3839a5e..0693902 100644
> --- a/drivers/power/wm8350_power.c
> +++ b/drivers/power/wm8350_power.c
> @@ -190,7 +190,7 @@ static irqreturn_t wm8350_charger_handler(int irq, void *data)
>  	struct wm8350_power *power = &wm8350->power;
>  	struct wm8350_charger_policy *policy = power->policy;
>  
> -	switch (irq) {
> +	switch (irq - wm8350->irq_base) {
>  	case WM8350_IRQ_CHG_BAT_FAIL:
>  		dev_err(wm8350->dev, "battery failed\n");
>  		break;
> diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c
> index f45845a..93f1e4e 100644
> --- a/sound/soc/codecs/wm8350.c
> +++ b/sound/soc/codecs/wm8350.c
> @@ -1349,7 +1349,7 @@ static irqreturn_t wm8350_hp_jack_handler(int irq, void *data)
>  	int mask;
>  	struct wm8350_jack_data *jack = NULL;
>  
> -	switch (irq) {
> +	switch (irq - wm8350->irq_base) {
>  	case WM8350_IRQ_CODEC_JCK_DET_L:
>  		jack = &priv->hpl;
>  		mask = WM8350_JACK_L_LVL;
> @@ -1424,7 +1424,7 @@ int wm8350_hp_jack_detect(struct snd_soc_codec *codec, enum wm8350_jack which,
>  	wm8350_set_bits(wm8350, WM8350_JACK_DETECT, ena);
>  
>  	/* Sync status */
> -	wm8350_hp_jack_handler(irq, priv);
> +	wm8350_hp_jack_handler(irq + wm8350->irq_base, priv);
>  
>  	return 0;
>  }
> -- 
> 1.6.5.7
> 

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

      reply	other threads:[~2010-01-06 19:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-06 19:24 Mark Brown
2010-01-06 19:50 ` Samuel Ortiz [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=20100106195000.GC23473@sortiz.org \
    --to=sameo@linux.intel.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=linux-kernel@vger.kernel.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

Powered by JetHome