Home
last modified time | relevance | path

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

/drivers/input/misc/
Dkxtj9.c80 static int kxtj9_i2c_read(struct kxtj9_data *tj9, u8 addr, u8 *data, int len) in kxtj9_i2c_read() argument
84 .addr = tj9->client->addr, in kxtj9_i2c_read()
85 .flags = tj9->client->flags, in kxtj9_i2c_read()
90 .addr = tj9->client->addr, in kxtj9_i2c_read()
91 .flags = tj9->client->flags | I2C_M_RD, in kxtj9_i2c_read()
97 return i2c_transfer(tj9->client->adapter, msgs, 2); in kxtj9_i2c_read()
100 static void kxtj9_report_acceleration_data(struct kxtj9_data *tj9) in kxtj9_report_acceleration_data() argument
106 err = kxtj9_i2c_read(tj9, XOUT_L, (u8 *)acc_data, 6); in kxtj9_report_acceleration_data()
108 dev_err(&tj9->client->dev, "accelerometer data read failed\n"); in kxtj9_report_acceleration_data()
110 x = le16_to_cpu(acc_data[tj9->pdata.axis_map_x]); in kxtj9_report_acceleration_data()
[all …]