Lines Matching refs:data
91 u8 data;
95 data = touchkey->variant->cmd_led_off;
98 data = touchkey->variant->cmd_led_on;
105 i2c_smbus_write_byte(touchkey->client, data) :
107 touchkey->variant->base_reg, data);
125 static void tm2_touchkey_power_disable(void *data)
127 struct tm2_touchkey_data *touchkey = data;
136 int data;
141 data = i2c_smbus_read_byte(touchkey->client);
143 data = i2c_smbus_read_byte_data(touchkey->client,
145 if (data < 0) {
147 "failed to read i2c data: %d\n", data);
151 index = (data & TM2_TOUCHKEY_BIT_KEYCODE) - 1;
160 if (data & TM2_TOUCHKEY_BIT_PRESS_EV) {
173 data & TM2_TOUCHKEY_BIT_PRESS_EV) {
337 .data = &tm2_touchkey_variant,
340 .data = &midas_touchkey_variant,
343 .data = &aries_touchkey_variant,
346 .data = &tc360_touchkey_variant,