Thread (4 messages) flat view 4 messages, 2 authors, 2011-06-26

Re: wm97xx_read_aux_adc() for battery & pen down?

From: Wolfram Sang <hidden>
Date: 2011-06-24 16:58:04

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:
quoted
battery-status, but I need the following dirty hack for 3.0-rc4 in
wm97xx_read_aux_adc():
quoted
...
-       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/  |

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help