Lines Matching refs:qt2160
3 * qt2160.c - Atmel AT42QT2160 Touch Sense Controller
46 struct qt2160_data *qt2160;
73 struct qt2160_data *qt2160 = led->qt2160;
74 struct i2c_client *client = qt2160->client;
93 * of every LED in the qt2160. It's a HW limitation.
159 struct qt2160_data *qt2160 = input_get_drvdata(input);
160 struct i2c_client *client = qt2160->client;
178 old_matrix = qt2160->key_matrix;
179 qt2160->key_matrix = new_matrix = (regs[2] << 8) | regs[1];
186 input_report_key(input, qt2160->keycodes[i], keyval);
239 static int qt2160_register_leds(struct qt2160_data *qt2160)
241 struct i2c_client *client = qt2160->client;
246 struct qt2160_led *led = &qt2160->leds[i];
248 snprintf(led->name, sizeof(led->name), "qt2160:x%d", i);
253 led->qt2160 = qt2160;
270 static inline int qt2160_register_leds(struct qt2160_data *qt2160)
310 struct qt2160_data *qt2160;
325 qt2160 = devm_kzalloc(&client->dev, sizeof(*qt2160), GFP_KERNEL);
326 if (!qt2160)
333 qt2160->client = client;
334 qt2160->input = input;
339 input->keycode = qt2160->keycodes;
340 input->keycodesize = sizeof(qt2160->keycodes[0]);
346 qt2160->keycodes[i] = qt2160_key2code[i];
351 input_set_drvdata(input, qt2160);
364 "qt2160", input);
379 error = qt2160_register_leds(qt2160);
385 error = input_register_device(qt2160->input);
396 { "qt2160", 0, },
404 .name = "qt2160",