Home
last modified time | relevance | path

Searched refs:tj9 (Results 1 – 1 of 1) sorted by relevance

/drivers/input/misc/
Dkxtj9.c97 static int kxtj9_i2c_read(struct kxtj9_data *tj9, u8 addr, u8 *data, int len) in kxtj9_i2c_read() argument
101 .addr = tj9->client->addr, in kxtj9_i2c_read()
102 .flags = tj9->client->flags, in kxtj9_i2c_read()
107 .addr = tj9->client->addr, in kxtj9_i2c_read()
108 .flags = tj9->client->flags | I2C_M_RD, in kxtj9_i2c_read()
114 return i2c_transfer(tj9->client->adapter, msgs, 2); in kxtj9_i2c_read()
117 static void kxtj9_report_acceleration_data(struct kxtj9_data *tj9) in kxtj9_report_acceleration_data() argument
123 err = kxtj9_i2c_read(tj9, XOUT_L, (u8 *)acc_data, 6); in kxtj9_report_acceleration_data()
125 dev_err(&tj9->client->dev, "accelerometer data read failed\n"); in kxtj9_report_acceleration_data()
127 x = le16_to_cpu(acc_data[tj9->pdata.axis_map_x]); in kxtj9_report_acceleration_data()
[all …]