Lines Matching refs:qt2160
46 struct qt2160_data *qt2160; member
73 struct qt2160_data *qt2160 = led->qt2160; in qt2160_led_set() local
74 struct i2c_client *client = qt2160->client; in qt2160_led_set()
159 struct qt2160_data *qt2160 = input_get_drvdata(input); in qt2160_get_key_matrix() local
160 struct i2c_client *client = qt2160->client; in qt2160_get_key_matrix()
178 old_matrix = qt2160->key_matrix; in qt2160_get_key_matrix()
179 qt2160->key_matrix = new_matrix = (regs[2] << 8) | regs[1]; in qt2160_get_key_matrix()
186 input_report_key(input, qt2160->keycodes[i], keyval); in qt2160_get_key_matrix()
239 static int qt2160_register_leds(struct qt2160_data *qt2160) in qt2160_register_leds() argument
241 struct i2c_client *client = qt2160->client; in qt2160_register_leds()
246 struct qt2160_led *led = &qt2160->leds[i]; in qt2160_register_leds()
253 led->qt2160 = qt2160; in qt2160_register_leds()
270 static inline int qt2160_register_leds(struct qt2160_data *qt2160) in qt2160_register_leds() argument
310 struct qt2160_data *qt2160; in qt2160_probe() local
325 qt2160 = devm_kzalloc(&client->dev, sizeof(*qt2160), GFP_KERNEL); in qt2160_probe()
326 if (!qt2160) in qt2160_probe()
333 qt2160->client = client; in qt2160_probe()
334 qt2160->input = input; in qt2160_probe()
339 input->keycode = qt2160->keycodes; in qt2160_probe()
340 input->keycodesize = sizeof(qt2160->keycodes[0]); in qt2160_probe()
346 qt2160->keycodes[i] = qt2160_key2code[i]; in qt2160_probe()
351 input_set_drvdata(input, qt2160); in qt2160_probe()
379 error = qt2160_register_leds(qt2160); in qt2160_probe()
385 error = input_register_device(qt2160->input); in qt2160_probe()