On Fri, 10 Apr 2009 10:53:11 +0100 Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote: > From: Hans-Christian Egtvedt <hans-christian.egtvedt@xxxxxxxxx> > > This patch adds an accelerated driver for Atmel AVR32 AT32AP700X > microprocessors. It uses interrupts on the channel B in the AC97 > controller. Thus, offloading the work queue in the wm97xx-ts driver. > > The driver has been tested with Atmel AVR32 AT32AP7000 and Wolfson > WM9712 codec. > > The driver can also be easily modified to support Atmel AT91 devices, as > AT91 and AVR32 share the same AC97C module. > > [Fixed leak of atmel_wm97xx when probe fails. -- broonie] > > > ... > > +static void atmel_wm97xx_acc_pen_up(struct wm97xx *wm) > +{ > + struct atmel_wm97xx *atmel_wm97xx = platform_get_drvdata(wm->touch_dev); > + int pen_down = gpio_get_value(atmel_wm97xx->gpio_pen); > + > + if (pen_down != 0) { > + mod_timer(&atmel_wm97xx->pen_timer, jiffies > + + msecs_to_jiffies(1)); I'd be more comfortable if there was a del_timer_sync() somewhere in this driver? > + } else { > + input_report_abs(wm->input_dev, ABS_PRESSURE, 0); > + input_report_key(wm->input_dev, BTN_TOUCH, 0); > + input_sync(wm->input_dev); > + } > +} > + -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html