Lines Matching refs:input_dev
47 struct input_dev *input_dev;
158 input_event(touchkey->input_dev, EV_MSC, MSC_SCAN, index);
162 input_report_key(touchkey->input_dev,
165 input_report_key(touchkey->input_dev,
169 input_sync(touchkey->input_dev);
244 touchkey->input_dev = devm_input_allocate_device(&client->dev);
245 if (!touchkey->input_dev) {
250 touchkey->input_dev->name = TM2_TOUCHKEY_DEV_NAME;
251 touchkey->input_dev->id.bustype = BUS_I2C;
253 touchkey->input_dev->keycode = touchkey->keycodes;
254 touchkey->input_dev->keycodemax = touchkey->num_keycodes;
255 touchkey->input_dev->keycodesize = sizeof(touchkey->keycodes[0]);
257 input_set_capability(touchkey->input_dev, EV_MSC, MSC_SCAN);
259 input_set_capability(touchkey->input_dev, EV_KEY,
262 error = input_register_device(touchkey->input_dev);