05 Jun, 2019

2 commits

  • Based on 2 normalized pattern(s):

    it and or modify it under the terms of the gnu general public
    license version 2 as published by the free software foundation this
    program is distributed in the hope it will be useful but without any
    warranty without even the implied warranty of merchantability or
    fitness for a particular purpose see the gnu general public license
    for more details you should have received a copy of the gnu general
    public license along with this program

    this program is free software you can redistribute it and or modify
    it under the terms and conditions of the gnu general public license
    version 2 as published by the free software foundation this program
    is distributed in the hope it will be useful but without any
    warranty without even the implied warranty of merchantability or
    fitness for a particular purpose see the gnu general public license
    for more details you should have received a copy of the gnu general
    public license along with this program

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 11 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Alexios Zavras
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190530000434.249870634@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms and conditions of the gnu general public license
    version 2 as published by the free software foundation this program
    is distributed in the hope it will be useful but without any
    warranty without even the implied warranty of merchantability or
    fitness for a particular purpose see the gnu general public license
    for more details

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 263 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Alexios Zavras
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190529141901.208660670@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

21 May, 2019

1 commit


16 Nov, 2018

1 commit

  • Before this commit sensor_hub_input_attr_get_raw_value() failed to take
    the signedness of 16 and 8 bit values into account, returning e.g.
    65436 instead of -100 for the z-axis reading of an accelerometer.

    This commit adds a new is_signed parameter to the function and makes all
    callers pass the appropriate value for this.

    While at it, this commit also fixes up some neighboring lines where
    statements were needlessly split over 2 lines to improve readability.

    Signed-off-by: Hans de Goede
    Acked-by: Srinivas Pandruvada
    Acked-by: Benjamin Tissoires
    Cc:
    Signed-off-by: Jonathan Cameron

    Hans de Goede
     

23 Aug, 2017

1 commit


18 Jul, 2017

1 commit

  • Drop static on a local variable, when the variable is initialized before
    any possible use. Thus, the static has no benefit.

    The semantic patch that fixes this problem is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @bad exists@
    position p;
    identifier x;
    type T;
    @@
    static T x@p;
    ...
    x =

    @@
    identifier x;
    expression e;
    type T;
    position p != bad.p;
    @@
    -static
    T x@p;
    ... when != x
    when strict
    ?x = e;
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Jonathan Cameron

    Julia Lawall
     

07 May, 2017

3 commits

  • Add orientation sensor "scale" and "offset" parse support.
    These two properties are needed for exponent data conversion.

    Signed-off-by: Song Hongyan
    Reviewed-by: Andy Shevchenko
    Reviewed-by: Xu Even
    Acked-by: Srinivas Pandruvada
    Signed-off-by: Jonathan Cameron

    Song Hongyan
     
  • Geomagnetic orientation(AM) sensor is one kind of orientation 6dof sensor.
    It gives the device rotation in respect to the earth center and the
    magnetic north. The sensor is implemented through use of an accelerometer
    and magnetometer do not use gyroscope. It is a standard HID sensor.

    More information can be found in:
    http://www.usb.org/developers/hidpage/HUTRR59_-_Usages_for_Wearables.pdf

    Geomagnetic orientation(AM) sensor and dev rotation sensor have same
    channel and share channel usage id. So the most of the code for relative
    orientation sensor can be reused.

    Signed-off-by: Song Hongyan
    Signed-off-by: Jonathan Cameron

    Song Hongyan
     
  • Relative orientation(AG) sensor is a 6dof orientation sensor,
    it depends on acceleration and gyroscope sensor data. It gives
    a quaternion describing the orientation of the device relative
    to an initial orientation. It is a standard HID sensor.

    More information can be found in:
    http://www.usb.org/developers/hidpage/HUTRR59_-_Usages_for_Wearables.pdf

    Relative orientation(AG) sensor and dev rotation sensor have same
    channels and share channel usage id. So the most of the code for
    relative orientation sensor can be reused.

    Signed-off-by: Song Hongyan
    Reviewed-by: Andy Shevchenko
    Reviewed-by: Xu Even
    Acked-by: Srinivas Pandruvada
    Signed-off-by: Jonathan Cameron

    Song Hongyan
     

06 Nov, 2016

1 commit

  • This fix makes newer ISH hubs work. Previous ones worked by lucky
    coincidence.

    Rotation sensor function does not work due to miss PM function.
    Add common hid sensor iio pm function for rotation sensor.

    Further clarification from Srinivas:

    If CONFIG_PM is not defined, then this prevents this sensor to
    function. So above commit caused this.

    This sensor was supposed to be always on to trigger wake up in prior
    external hubs. But with the new ISH hub this is not the case.

    Signed-off-by: Song Hongyan
    Fixes: 2b89635e9a9e ("iio: hid_sensor_hub: Common PM functions")
    Cc:
    Signed-off-by: Jonathan Cameron

    Song Hongyan
     

17 May, 2015

2 commits


11 May, 2015

2 commits


14 Apr, 2015

1 commit


23 Feb, 2015

1 commit

  • Add additional flag to read in async mode. In this mode the caller will get
    reply via registered callback for capture_sample. Callbacks can be registered
    using sensor_hub_register_callback function. The usage id parameter of the
    capture_sample can be matched with the usage id of the requested attribute.

    Signed-off-by: Srinivas Pandruvada
    Acked-by: Jonathan Cameron
    Signed-off-by: Jiri Kosina

    Srinivas Pandruvada
     

26 Jan, 2015

1 commit


27 Aug, 2014

1 commit


05 May, 2014

3 commits


30 Apr, 2014

1 commit

  • Added usage id processing for device rotation. This uses IIO
    interfaces for triggered buffer to present data to user
    mode.This uses HID sensor framework for registering callback
    events from the sensor hub.
    Data is exported to user space in the form of quaternion rotation
    format.

    Signed-off-by: Srinivas Pandruvada
    Signed-off-by: Jonathan Cameron

    Srinivas Pandruvada
     

04 Dec, 2013

1 commit

  • Added usage id processing for Inclinometer 3D. This uses IIO
    interfaces for triggered buffer to present data to user
    mode.This uses HID sensor framework for registering callback
    events from the sensor hub.

    Signed-off-by: Srinivas Pandruvada
    Signed-off-by: Jonathan Cameron

    Srinivas Pandruvada