Lines Matching refs:poll_dev
95 struct input_polled_dev *poll_dev; in clps711x_keypad_probe() local
132 poll_dev = input_allocate_polled_device(); in clps711x_keypad_probe()
133 if (!poll_dev) in clps711x_keypad_probe()
136 poll_dev->private = priv; in clps711x_keypad_probe()
137 poll_dev->poll = clps711x_keypad_poll; in clps711x_keypad_probe()
138 poll_dev->poll_interval = poll_interval; in clps711x_keypad_probe()
139 poll_dev->input->name = pdev->name; in clps711x_keypad_probe()
140 poll_dev->input->dev.parent = dev; in clps711x_keypad_probe()
141 poll_dev->input->id.bustype = BUS_HOST; in clps711x_keypad_probe()
142 poll_dev->input->id.vendor = 0x0001; in clps711x_keypad_probe()
143 poll_dev->input->id.product = 0x0001; in clps711x_keypad_probe()
144 poll_dev->input->id.version = 0x0100; in clps711x_keypad_probe()
148 NULL, poll_dev->input); in clps711x_keypad_probe()
152 input_set_capability(poll_dev->input, EV_MSC, MSC_SCAN); in clps711x_keypad_probe()
154 __set_bit(EV_REP, poll_dev->input->evbit); in clps711x_keypad_probe()
156 platform_set_drvdata(pdev, poll_dev); in clps711x_keypad_probe()
162 err = input_register_polled_device(poll_dev); in clps711x_keypad_probe()
169 input_free_polled_device(poll_dev); in clps711x_keypad_probe()
175 struct input_polled_dev *poll_dev = platform_get_drvdata(pdev); in clps711x_keypad_remove() local
177 input_unregister_polled_device(poll_dev); in clps711x_keypad_remove()
178 input_free_polled_device(poll_dev); in clps711x_keypad_remove()