Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1659537

Re: [PATCH v2 2/8] HID: hiddev: use hid_hw_power instead of usbhid_get/put_power

From Andy Shevchenko <andy.shevchenko@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 2/8] HID: hiddev: use hid_hw_power instead of usbhid_get/put_power
Date 2017-06-07 10:50 +0200
Message-ID <tPEP8-4gO-31@gated-at.bofh.it> (permalink)
References <tPD6G-34T-7@gated-at.bofh.it> <tPD6G-34T-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Jun 7, 2017 at 9:59 AM, Dmitry Torokhov
<dmitry.torokhov@gmail.com> wrote:
> Instead of calling into usbhid code directly, let's use the standard
> accessors for the transport HID drivers, and stop clobbering their error
> codes with -EIO.
>
> This also allows us to remove usbhid_get/put_power(), leaving only
> usbhid_power().

>                 break;
> +
>         case PM_HINT_NORMAL:

>         }
> +
>         return r;

I think you can drop above changes.

-- 
With Best Regards,
Andy Shevchenko

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2 2/8] HID: hiddev: use hid_hw_power instead of usbhid_get/put_power Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-06-07 09:00 +0200
  Re: [PATCH v2 2/8] HID: hiddev: use hid_hw_power instead of usbhid_get/put_power Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-06-07 10:50 +0200

csiph-web