sync_receive_data_send_cmd(1, 1, 1u, wait_time); 
sync_receive_data_send_cmd(corgi_ts, 1, 1, 1u, wait_time); 
static int read_xydata(struct corgi_ts *corgi_ts){	unsigned int x, y, z1, z2;	unsigned long flags, wait_time;	/* critical section */	local_irq_save(flags);	corgi_ssp_ads7846_lock();	wait_time=calc_waittime();	/* Y-axis */	sync_receive_data_send_cmd(0, 1, 1u, wait_time);	/* Y-axis */	sync_receive_data_send_cmd(1, 1, 1u, wait_time);	/* X-axis */	y = sync_receive_data_send_cmd(1, 1, 5u, wait_time);	/* Z1 */	x = sync_receive_data_send_cmd(1, 1, 3u, wait_time);	/* Z2 */	z1 = sync_receive_data_send_cmd(1, 1, 4u, wait_time);	z2 = sync_receive_data_send_cmd(1, 0, 4u, wait_time);	/* Power-Down Enable */	corgi_ssp_ads7846_put((1u << ADSCTRL_ADR_SH) | ADSCTRL_STS);	corgi_ssp_ads7846_get();	corgi_ssp_ads7846_unlock();	local_irq_restore(flags);	if (x== 0 || y == 0 || z1 == 0 || (x * (z2 - z1) / z1) >= 15000) {		corgi_ts->tc.pressure = 0;		return 0;	}	corgi_ts->tc.x = x;	corgi_ts->tc.y = y;	corgi_ts->tc.pressure = (x * (z2 - z1)) / z1;	return 1;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/513b6e1afaf81b42cacbb24ef1aa7eea5e9661c2/corgi_ts.c/buggy/drivers/input/touchscreen/corgi_ts.c