diff options
Diffstat (limited to 'drivers/hid/hid-picolcd_backlight.c')
-rw-r--r-- | drivers/hid/hid-picolcd_backlight.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hid/hid-picolcd_backlight.c b/drivers/hid/hid-picolcd_backlight.c index b91f30945f9c..a32c5f86b0b3 100644 --- a/drivers/hid/hid-picolcd_backlight.c +++ b/drivers/hid/hid-picolcd_backlight.c | |||
@@ -18,8 +18,6 @@ | |||
18 | ***************************************************************************/ | 18 | ***************************************************************************/ |
19 | 19 | ||
20 | #include <linux/hid.h> | 20 | #include <linux/hid.h> |
21 | #include "usbhid/usbhid.h" | ||
22 | #include <linux/usb.h> | ||
23 | 21 | ||
24 | #include <linux/fb.h> | 22 | #include <linux/fb.h> |
25 | #include <linux/backlight.h> | 23 | #include <linux/backlight.h> |
@@ -46,7 +44,7 @@ static int picolcd_set_brightness(struct backlight_device *bdev) | |||
46 | spin_lock_irqsave(&data->lock, flags); | 44 | spin_lock_irqsave(&data->lock, flags); |
47 | hid_set_field(report->field[0], 0, data->lcd_power == FB_BLANK_UNBLANK ? data->lcd_brightness : 0); | 45 | hid_set_field(report->field[0], 0, data->lcd_power == FB_BLANK_UNBLANK ? data->lcd_brightness : 0); |
48 | if (!(data->status & PICOLCD_FAILED)) | 46 | if (!(data->status & PICOLCD_FAILED)) |
49 | usbhid_submit_report(data->hdev, report, USB_DIR_OUT); | 47 | hid_hw_request(data->hdev, report, HID_REQ_SET_REPORT); |
50 | spin_unlock_irqrestore(&data->lock, flags); | 48 | spin_unlock_irqrestore(&data->lock, flags); |
51 | return 0; | 49 | return 0; |
52 | } | 50 | } |