diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2018-08-10 02:08:15 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2019-06-23 09:55:20 +0300 |
commit | 4873586278258453bed94ffc04bfdc439197e86b (patch) | |
tree | 310c0e17610cc3b2ffd07b5081b63386fc0bac39 /drivers/idle | |
parent | 4f99de6d9d57d29b10f132490034aa21b7ba184f (diff) | |
download | linux-4873586278258453bed94ffc04bfdc439197e86b.tar.xz |
Input: iforce - use DMA-safe buffer when getting IDs from USB
When working with USB devices we need to use DMA-safe buffers,
and iforce->edata is not one. Let's rework the code to allocate
temporary buffer (iforce_get_id() is called only during initialization
so there is no reason to have permanent buffer) and use it. While at it,
let's utilize usb_control_msg() API which simplifies code.
Tested-by: Tim Schumacher <timschumi@gmx.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/idle')
0 files changed, 0 insertions, 0 deletions