static int hx_ts_penup(void) { int ret = 0; /* Read the status register */ ret = omap_tsc2101_read(TOUCHSCREEN_CONTROL_REGISTERS_PAGE, TSC2101_TS_STATUS); /* Check for availability of data in status register */ ret = TSC2101_GETSTATUS(ret); return !ret; }
/* * Simplified read for tsc2101 audio registers. */ inline u16 tsc2101_audio_read(u8 address) { return (omap_tsc2101_read(PAGE2_AUDIO_CODEC_REGISTERS, address)); }