/* Switch to X plate resistance mode. Set MX to ground, PX to supply. Measure current.  */
static unsigned int ucb1400_ts_read_xres(struct ucb1400_ts *ucb)
/* Switch to X plate resistance mode. Set MX to ground, PX to supply. Measure current.  */
static unsigned int ucb1400_ts_read_xres(struct ucb1400_ts *ucb)
{
	ucb1400_reg_write(ucb->ac97, UCB_TS_CR,
			UCB_TS_CR_TSMX_GND | UCB_TS_CR_TSPX_POW |
			UCB_TS_CR_MODE_PRES | UCB_TS_CR_BIAS_ENA);
	return ucb1400_adc_read(ucb->ac97, 0, adcsync);
}