Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/input/joystick/
Dsensehat-joystick.c25 struct input_dev *keys_dev; member
53 input_report_key(sensehat_joystick->keys_dev, keymap[i], in sensehat_joystick_report()
56 input_sync(sensehat_joystick->keys_dev); in sensehat_joystick_report()
79 sensehat_joystick->keys_dev = devm_input_allocate_device(&pdev->dev); in sensehat_joystick_probe()
80 if (!sensehat_joystick->keys_dev) { in sensehat_joystick_probe()
85 sensehat_joystick->keys_dev->name = "Raspberry Pi Sense HAT Joystick"; in sensehat_joystick_probe()
86 sensehat_joystick->keys_dev->phys = "sensehat-joystick/input0"; in sensehat_joystick_probe()
87 sensehat_joystick->keys_dev->id.bustype = BUS_I2C; in sensehat_joystick_probe()
89 __set_bit(EV_KEY, sensehat_joystick->keys_dev->evbit); in sensehat_joystick_probe()
90 __set_bit(EV_REP, sensehat_joystick->keys_dev->evbit); in sensehat_joystick_probe()
[all …]
/linux-5.19.10/drivers/staging/nvec/
Dnvec_kbd.c38 static struct nvec_keys keys_dev; variable
44 keys_dev.caps_lock = !keys_dev.caps_lock; in nvec_kbd_toggle_led()
46 if (keys_dev.caps_lock) in nvec_kbd_toggle_led()
50 nvec_write_async(keys_dev.nvec, buf, sizeof(buf)); in nvec_kbd_toggle_led()
75 input_report_key(keys_dev.input, code_tabs[_size][code], in nvec_keys_notifier()
77 input_sync(keys_dev.input); in nvec_keys_notifier()
88 struct nvec_chip *nvec = keys_dev.nvec; in nvec_kbd_event()
145 keys_dev.input = idev; in nvec_kbd_probe()
146 keys_dev.notifier.notifier_call = nvec_keys_notifier; in nvec_kbd_probe()
147 keys_dev.nvec = nvec; in nvec_kbd_probe()
[all …]