/* Switch to Y plate resistance mode. Set MY to ground, PY to supply. Measure current.  */
static unsigned int ucb1x00_ts_read_yres(struct ucb1x00_ts *ts)
/* Switch to Y plate resistance mode. Set MY to ground, PY to supply. Measure current.  */
static unsigned int ucb1x00_ts_read_yres(struct ucb1x00_ts *ts)
{
	ucb1x00_reg_write(ts->ucb, UCB_TS_CR,
			UCB_TS_CR_TSMY_GND | UCB_TS_CR_TSPY_POW |
			UCB_TS_CR_MODE_PRES | UCB_TS_CR_BIAS_ENA);
	return ucb1x00_adc_read(ts->ucb, 0, ts->adcsync);
}