[PATCH v7 3/4] iio: hid-sensor-magn-3d: Scan for usage attributes before setting up iio channels

2014-07-20 Thread Reyad Attiyat
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 v6 - Fix kernel build error for invalid sizeof by removing the parameter from the hid_sensor_push_data

[PATCH v7 3/4] iio: hid-sensor-magn-3d: Scan for usage attributes before setting up iio channels

2014-07-20 Thread Reyad Attiyat
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 v6 - Fix kernel build error for invalid sizeof by removing the parameter from the hid_sensor_push_data