|
@@ -601,7 +601,7 @@ static void pwc_snapshot_button(struct pwc_device *pdev, int down)
|
|
|
|
|
|
#ifdef CONFIG_USB_PWC_INPUT_EVDEV
|
|
|
if (pdev->button_dev) {
|
|
|
- input_report_key(pdev->button_dev, BTN_0, down);
|
|
|
+ input_report_key(pdev->button_dev, KEY_CAMERA, down);
|
|
|
input_sync(pdev->button_dev);
|
|
|
}
|
|
|
#endif
|
|
@@ -1847,7 +1847,7 @@ static int usb_pwc_probe(struct usb_interface *intf, const struct usb_device_id
|
|
|
usb_to_input_id(pdev->udev, &pdev->button_dev->id);
|
|
|
pdev->button_dev->dev.parent = &pdev->udev->dev;
|
|
|
pdev->button_dev->evbit[0] = BIT_MASK(EV_KEY);
|
|
|
- pdev->button_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0);
|
|
|
+ pdev->button_dev->keybit[BIT_WORD(KEY_CAMERA)] = BIT_MASK(KEY_CAMERA);
|
|
|
|
|
|
rc = input_register_device(pdev->button_dev);
|
|
|
if (rc) {
|