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 programthis 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 programextracted 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 -
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 detailsextracted 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
21 May, 2019
1 commit
-
Add SPDX license identifiers to all Make/Kconfig files which:
- Have no license information of any form
These files fall under the project license, GPL v2 only. The resulting SPDX
license identifier is:GPL-2.0-only
Signed-off-by: Thomas Gleixner
Signed-off-by: Greg Kroah-Hartman
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
23 Aug, 2017
1 commit
-
The equivalent of this is now done via macro magic when
the relevant register call is made. The actual structure
elements will shortly go away.Signed-off-by: Jonathan Cameron
Reviewed-by: Lars-Peter Clausen
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
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 -
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.pdfGeomagnetic 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 -
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.pdfRelative 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
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
17 May, 2015
2 commits
-
'channels' is allocated via kmemdup and it is never freed in the
subsequent error paths.Use 'indio_dev->channels' directly instead, so that we avoid such
memory leak problem.Signed-off-by: Fabio Estevam
Reviewed-by: Srinivas Pandruvada
Signed-off-by: Jonathan Cameron -
'channels' is allocated via kmemdup and it is never freed in the
subsequent error paths.Use 'indio_dev->channels' directly instead, so that we avoid such
memory leak problem.Signed-off-by: Fabio Estevam
Reviewed-by: Srinivas Pandruvada
Signed-off-by: Jonathan Cameron
11 May, 2015
2 commits
-
The platform_device_id is not modified by the driver and core uses it as
const.Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Jonathan Cameron -
The platform_device_id is not modified by the driver and core uses it as
const.Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Jonathan Cameron
14 Apr, 2015
1 commit
-
Conflicts:
drivers/iio/common/hid-sensors/hid-sensor-trigger.c
include/linux/hid-sensor-hub.h
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
26 Jan, 2015
1 commit
-
Use common hid sensor iio pm functions. Also the poll time read and
wait is part of power up function of hid sensor iio pm function, so
remove from the client drivers.Signed-off-by: Srinivas Pandruvada
Signed-off-by: Jonathan Cameron
27 Aug, 2014
1 commit
-
This patch removes the .owner field for drivers which use the
platform_driver_register api because this is overriden in
_platform_driver_register.Signed-off-by: Sanjeev Sharma
Signed-off-by: Jonathan Cameron
05 May, 2014
3 commits
-
Added support for raw reading of channel. If the sensor is powered
off, it will turn on for reading value.Signed-off-by: Srinivas Pandruvada
Signed-off-by: Jonathan Cameron -
Added an API to allow client drivers to turn ON and OFF sensors for
quick read. Added data_read as counting varaible instead of boolean,
so that sensor is powered off only when last user released it.Signed-off-by: Srinivas Pandruvada
Signed-off-by: Jonathan Cameron -
Using units and unit exponent to calculate scale which is compliant
to IIO ABI.Signed-off-by: Srinivas Pandruvada
Signed-off-by: Jonathan Cameron
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
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