/* Driver's initial design makes no race condition possible on i2c bus, so there is no need in any locking. Keep it in mind, while playing with the code.  */
static s32 synaptics_i2c_reg_get(struct i2c_client *client, u16 reg)
/* Driver's initial design makes no race condition possible on i2c bus, so there is no need in any locking. Keep it in mind, while playing with the code.  */
static s32 synaptics_i2c_reg_get(struct i2c_client *client, u16 reg)
{
	int ret;
	ret = i2c_smbus_write_byte_data(client, PAGE_SEL_REG, reg >> 8);
	if (ret == 0)
		ret = i2c_smbus_read_byte_data(client, reg & 0xff);
	return ret;
}