Lines Matching refs:button_dev
209 if (pdev->button_dev) { in pwc_snapshot_button()
210 input_report_key(pdev->button_dev, KEY_CAMERA, down); in pwc_snapshot_button()
211 input_sync(pdev->button_dev); in pwc_snapshot_button()
1136 pdev->button_dev = input_allocate_device(); in usb_pwc_probe()
1137 if (!pdev->button_dev) { in usb_pwc_probe()
1145 pdev->button_dev->name = "PWC snapshot button"; in usb_pwc_probe()
1146 pdev->button_dev->phys = pdev->button_phys; in usb_pwc_probe()
1147 usb_to_input_id(pdev->udev, &pdev->button_dev->id); in usb_pwc_probe()
1148 pdev->button_dev->dev.parent = &pdev->udev->dev; in usb_pwc_probe()
1149 pdev->button_dev->evbit[0] = BIT_MASK(EV_KEY); in usb_pwc_probe()
1150 pdev->button_dev->keybit[BIT_WORD(KEY_CAMERA)] = BIT_MASK(KEY_CAMERA); in usb_pwc_probe()
1152 rc = input_register_device(pdev->button_dev); in usb_pwc_probe()
1154 input_free_device(pdev->button_dev); in usb_pwc_probe()
1155 pdev->button_dev = NULL; in usb_pwc_probe()
1195 if (pdev->button_dev) in usb_pwc_disconnect()
1196 input_unregister_device(pdev->button_dev); in usb_pwc_disconnect()