linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Wolfram Sang <w.sang@pengutronix.de>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: linux-input@vger.kernel.org, dp@opensource.wolfsonmicro.com
Subject: Re: wm97xx_read_aux_adc() for battery & pen down?
Date: Fri, 24 Jun 2011 18:58:02 +0200	[thread overview]
Message-ID: <20110624165802.GB5042@pengutronix.de> (raw)
In-Reply-To: <20110624165204.GB30047@opensource.wolfsonmicro.com>

[-- Attachment #1: Type: text/plain, Size: 923 bytes --]

On Fri, Jun 24, 2011 at 05:52:04PM +0100, Mark Brown wrote:
> On Fri, Jun 24, 2011 at 03:00:49PM +0200, Wolfram Sang wrote:
> 
> > battery-status, but I need the following dirty hack for 3.0-rc4 in
> > wm97xx_read_aux_adc():
> 
> > ...
> > -       if (!(*sample & WM97XX_PEN_DOWN)) {
> > +       /* HACK! Disable check for battery channel on Jaytech PID7901 */
> > +       if ((adcsel != 0x6000) && !(*sample & WM97XX_PEN_DOWN)) {
> >                 wm->pen_probably_down = 0;
> >                 return RC_PENUP;
> >         }
> 
> I don't see this code in that function?

Ahem, sorry, I mixed the function names. wm97xx_read_aux_adc() uses the
poll_sample-pointer which points to wm9712_poll_sample() in my case.
There I need the above code.

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2011-06-24 16:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-24 13:00 wm97xx_read_aux_adc() for battery & pen down? Wolfram Sang
2011-06-24 16:52 ` Mark Brown
2011-06-24 16:58   ` Wolfram Sang [this message]
2011-06-26 11:00     ` Mark Brown

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=20110624165802.GB5042@pengutronix.de \
    --to=w.sang@pengutronix.de \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=dp@opensource.wolfsonmicro.com \
    --cc=linux-input@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;
as well as URLs for NNTP newsgroup(s).