Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161253
b: refs/heads/master
c: f9c2273
h: refs/heads/master
i:
  161251: b63e494
v: v3
  • Loading branch information
Hans J. Koch authored and Dmitry Torokhov committed Jul 13, 2009
1 parent d15d524 commit 539366e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f7370699fbbb18f97442d6f47cc2d478a911ad6f
refs/heads/master: f9c22736940cdc8f5e2db0109fc9493e0cbd895d
5 changes: 3 additions & 2 deletions trunk/drivers/input/touchscreen/ucb1400_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,10 @@ static inline unsigned int ucb1400_ts_read_yres(struct ucb1400_ts *ucb)
return ucb1400_adc_read(ucb->ac97, 0, adcsync);
}

static inline int ucb1400_ts_pen_down(struct snd_ac97 *ac97)
static inline int ucb1400_ts_pen_up(struct snd_ac97 *ac97)
{
unsigned short val = ucb1400_reg_read(ac97, UCB_TS_CR);

return val & (UCB_TS_CR_TSPX_LOW | UCB_TS_CR_TSMX_LOW);
}

Expand Down Expand Up @@ -209,7 +210,7 @@ static int ucb1400_ts_thread(void *_ucb)

msleep(10);

if (ucb1400_ts_pen_down(ucb->ac97)) {
if (ucb1400_ts_pen_up(ucb->ac97)) {
ucb1400_ts_irq_enable(ucb->ac97);

/*
Expand Down

0 comments on commit 539366e

Please sign in to comment.