Lines Matching refs:idev
39 struct input_dev *idev; member
74 input_report_key(lp->idev, keycode, key_down); in pcf8574_kp_irq_handler()
75 input_sync(lp->idev); in pcf8574_kp_irq_handler()
86 struct input_dev *idev; in pcf8574_kp_probe() local
98 idev = input_allocate_device(); in pcf8574_kp_probe()
99 if (!idev) { in pcf8574_kp_probe()
105 lp->idev = idev; in pcf8574_kp_probe()
108 idev->evbit[0] = BIT_MASK(EV_KEY); in pcf8574_kp_probe()
109 idev->keycode = lp->btncode; in pcf8574_kp_probe()
110 idev->keycodesize = sizeof(lp->btncode[0]); in pcf8574_kp_probe()
111 idev->keycodemax = ARRAY_SIZE(lp->btncode); in pcf8574_kp_probe()
116 __set_bit(lp->btncode[i], idev->keybit); in pcf8574_kp_probe()
119 __clear_bit(KEY_RESERVED, idev->keybit); in pcf8574_kp_probe()
124 idev->name = lp->name; in pcf8574_kp_probe()
125 idev->phys = lp->phys; in pcf8574_kp_probe()
126 idev->id.bustype = BUS_I2C; in pcf8574_kp_probe()
127 idev->id.vendor = 0x0001; in pcf8574_kp_probe()
128 idev->id.product = 0x0001; in pcf8574_kp_probe()
129 idev->id.version = 0x0100; in pcf8574_kp_probe()
141 ret = input_register_device(idev); in pcf8574_kp_probe()
153 input_free_device(idev); in pcf8574_kp_probe()
166 input_unregister_device(lp->idev); in pcf8574_kp_remove()