On 07/24/16 at 02:25pm, Jonathan Cameron wrote: > Hi Jelle, > > One quick process thing first. If you are sending a new version, please > don't send it as a reply to the previous. I leads to convoluted > and very deep threads where it isn't always clear which version > is being replied to! Thanks, I'm quiet new to Linux kernel development. I hope to address the last few comments today and send out a v3. --- Jelle van der Waa > > Thanks, > > Jonathan > > On 18/07/16 21:54, Jelle van der Waa wrote: > > This patch adds basic read_raw support for the DMARD09 3-axis accelerometer > > which can be found in a q8 A33 Allwinner tablet. [0] > > > > The driver is based on the Android driver which can be found > > on Github. [1] > > > > Unfortunately there is no datatsheet of the DMARD09 available online. > > > > [0] http://linux-sunxi.org/TZX-723Qa4 > > [1] https://github.com/JujuXIII/android_kernel_acer_v370_KK/tree/master/mediatek/custom/common/kernel/accelerometer/dmard09 > > > > Changes in v2: > > - Use ARRAY_SIZE instead of the #define DMARD09_AXES_NUM > > - Use a function-like macro to generate the channel structs > > - Remove duplicate 3-axis in driver description > > - Don't initialize the u8 buf > > - Use devm_iio_device_register and remove the now unrequired > > dmard09_remove. > > - Remove device from dmard09_data struct and use the client member to retrieve > > the device. > > - Describe the read strategy of the read_raw function > > - Simplify reading the X, Y, Z axis, by introducing DMARD09_AXIS_N_OFFSET, > > which removes the required if statements. > > - Log the _STAT address in the dev_error in the dmard09_read_raw function. > > > > > > Jelle van der Waa (1): > > iio: accel: add support for the Domintech DMARD09 3-axis accelerometer > > > > .../devicetree/bindings/iio/accel/dmard09.txt | 13 ++ > > drivers/iio/accel/Kconfig | 10 ++ > > drivers/iio/accel/Makefile | 1 + > > drivers/iio/accel/dmard09.c | 149 +++++++++++++++++++++ > > 4 files changed, 173 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/iio/accel/dmard09.txt > > create mode 100644 drivers/iio/accel/dmard09.c > > > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html