Skip to content
Commit 2a96540a authored by Reyad Attiyat's avatar Reyad Attiyat Committed by Jonathan Cameron
Browse files

iio: hid-sensor-magn-3d: Scan for usage attributes before setting up iio channels



Scan for and count the HID usage attributes supported by the driver.
This allows for the driver to only setup the IIO channels for the
sensor usages present in the HID USB reports.

Changes from v5
-Fixed kernel panic from invalid pointer dereference
-Fixed variable assignment style

Signed-off-by: default avatarReyad Attiyat <reyad.attiyat@gmail.com>
Acked-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 11b8ddab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment