diff options
Diffstat (limited to 'drivers/media/video/pwc/pwc-if.c')
-rw-r--r-- | drivers/media/video/pwc/pwc-if.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/pwc/pwc-if.c b/drivers/media/video/pwc/pwc-if.c index 7c542caf248e..db25c3034c11 100644 --- a/drivers/media/video/pwc/pwc-if.c +++ b/drivers/media/video/pwc/pwc-if.c | |||
@@ -601,7 +601,7 @@ static void pwc_snapshot_button(struct pwc_device *pdev, int down) | |||
601 | 601 | ||
602 | #ifdef CONFIG_USB_PWC_INPUT_EVDEV | 602 | #ifdef CONFIG_USB_PWC_INPUT_EVDEV |
603 | if (pdev->button_dev) { | 603 | if (pdev->button_dev) { |
604 | input_report_key(pdev->button_dev, BTN_0, down); | 604 | input_report_key(pdev->button_dev, KEY_CAMERA, down); |
605 | input_sync(pdev->button_dev); | 605 | input_sync(pdev->button_dev); |
606 | } | 606 | } |
607 | #endif | 607 | #endif |
@@ -1783,7 +1783,7 @@ static int usb_pwc_probe(struct usb_interface *intf, const struct usb_device_id | |||
1783 | return -ENOMEM; | 1783 | return -ENOMEM; |
1784 | } | 1784 | } |
1785 | memcpy(pdev->vdev, &pwc_template, sizeof(pwc_template)); | 1785 | memcpy(pdev->vdev, &pwc_template, sizeof(pwc_template)); |
1786 | pdev->vdev->parent = &(udev->dev); | 1786 | pdev->vdev->parent = &intf->dev; |
1787 | strcpy(pdev->vdev->name, name); | 1787 | strcpy(pdev->vdev->name, name); |
1788 | video_set_drvdata(pdev->vdev, pdev); | 1788 | video_set_drvdata(pdev->vdev, pdev); |
1789 | 1789 | ||
@@ -1847,7 +1847,7 @@ static int usb_pwc_probe(struct usb_interface *intf, const struct usb_device_id | |||
1847 | usb_to_input_id(pdev->udev, &pdev->button_dev->id); | 1847 | usb_to_input_id(pdev->udev, &pdev->button_dev->id); |
1848 | pdev->button_dev->dev.parent = &pdev->udev->dev; | 1848 | pdev->button_dev->dev.parent = &pdev->udev->dev; |
1849 | pdev->button_dev->evbit[0] = BIT_MASK(EV_KEY); | 1849 | pdev->button_dev->evbit[0] = BIT_MASK(EV_KEY); |
1850 | pdev->button_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0); | 1850 | pdev->button_dev->keybit[BIT_WORD(KEY_CAMERA)] = BIT_MASK(KEY_CAMERA); |
1851 | 1851 | ||
1852 | rc = input_register_device(pdev->button_dev); | 1852 | rc = input_register_device(pdev->button_dev); |
1853 | if (rc) { | 1853 | if (rc) { |