17 Nov, 2014
4 commits
-
Change event spec direction from
IIO_EV_DIR_RISING | IIO_EV_DIR_FALLING
to
IIO_EV_DIR_EITHERSuggested-by: Daniel Baluta
Signed-off-by: Srinivas Pandruvada
Signed-off-by: Jonathan Cameron -
This chip is capable to identify motion across x, y and z axes. So
send different events.Signed-off-by: Srinivas Pandruvada
Signed-off-by: Jonathan Cameron -
Change the mode to push/pull type instead of open drain as some
platforms fails to drive the GPIO pin with open drain.Signed-off-by: Srinivas Pandruvada
Signed-off-by: Jonathan Cameron -
When mode set fails due to some transient failures, it will atleast
reset the state of runtime usage count and also let the runtime
suspend retry from the driver framework.Signed-off-by: Srinivas Pandruvada
Signed-off-by: Jonathan Cameron
22 Sep, 2014
1 commit
-
We want the fixes in there, and it resolves a merge issue with
drivers/iio/accel/bma180.cSigned-off-by: Greg Kroah-Hartman
15 Sep, 2014
2 commits
-
Add support for the BMI055 gyroscope sensor. BMI055 is a package
consisting of an acceleration sensor and a gyroscope. This patch
adds support for the gyroscope only.Spec downloaded from:
http://ae-bst.resource.bosch.com/media/products/dokumente/bmi055/BST-BMI055-DS000-06.pdfThe BMI055 gyroscope uses the same register definition as BMG160,
but does not specify a temp register. However, the temp register
seems to be working in the same way as for BMG160, so this patch
does not remove the temp channel for BMI055.Signed-off-by: Irina Tirdea
Reviewed-by: Srinivas Pandruvada
Signed-off-by: Jonathan Cameron -
When CONFIG_PM_RUNTIME is not defined and bmg160 tries to power
off the device, bmg160_set_power_state will call pm_runtime_put_autosuspend,
which is not implemented (wil return -ENOSYS).Only call bmg160_set_power_state when CONFIG_PM_RUNTIME is defined.
Signed-off-by: Irina Tirdea
Acked-by: Hartmut Knaack
Signed-off-by: Jonathan Cameron
27 Aug, 2014
2 commits
-
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 -
This change implements support for BMG160 Gyro sensor. Although chip
has several advanced features, this change implements minimum set
required for using gyro sensor.Signed-off-by: Srinivas Pandruvada
Signed-off-by: Jonathan Cameron
26 Aug, 2014
1 commit
-
This can result in wrong reference count for trigger device, call
iio_trigger_get to increment reference.
Refer to http://www.spinics.net/lists/linux-iio/msg13669.html for discussion
with Jonathan.Signed-off-by: Srinivas Pandruvada
Signed-off-by: Jonathan Cameron
Cc: Stable@vger.kernel.org
14 Jul, 2014
1 commit
-
We want the fixes in -rc5 in here as well.
Signed-off-by: Greg Kroah-Hartman
12 Jul, 2014
1 commit
-
The I2C devices that make up the STMicroelectronics MEMS sensors
may be sneakily enabled by cleverly giving the device node the same
name as a string match from the platform device ID table. However
the right method is to use the compatible string.On detection, the ST sensors use the ID string to probe and
instatiate the right sensor driver, so pass the kernel-internal ID
string in the .data field of the OF match table, and set the I2C
client name to this name when a compatible match is used.This avoids having misc Linux-specific strings floating around in
the device tree.Cc: Lee Jones
Cc: Denis CIOCCA
Signed-off-by: Linus Walleij
Signed-off-by: Jonathan Cameron
07 Jul, 2014
3 commits
-
By using the info_mask_shared_by_all element of the channel spec, acce
to the sampling frequency becomes available to in kernel users of the
driver. It also shortens and simplifies the code.This particular conversion was made more complicated by the shared library
and the fact that a number of the drivers do not actually have support for
setting or reading the sampling frequency. The hardware, in those cases
investigated supports it. It's just never been implemented.Signed-off-by: Jonathan Cameron
Reviewed-by: Hartmut Knaack
Acked-by: Lars-Peter Clausen -
By using the info_mask_shared_by_all element of the channel spec, access
to the sampling frequency becomes available to in kernel users of the
driver. It also shortens and simplifies the code a little.Signed-off-by: Jonathan Cameron
Reviewed-by: Hartmut Knaack
Cc: Manuel Stahl
Cc: Thorsten Nowak
Cc: Christian Strobel -
This allows in kernel client drivers to access this
Signed-off-by: Jonathan Cameron
Cc: Denis Ciocca
Reviewed-by: Hartmut Knaack
05 Jul, 2014
1 commit
-
IIO_CHAN_INFO_SAMP_FREQ and IIO_CHAN_INFO_HYSTERESIS cases ignored
the actual return values (which could be -EINVAL) and instead
returned IIO_VAL_INT_PLUS_MICRO always. Return the actual value
obtained from the functions. Both functions return IIO_VAL_INT_PLUS_MICRO
upon success.Signed-off-by: Sachin Kamat
Cc: Srinivas Pandruvada
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
26 Apr, 2014
2 commits
-
Currently the pressure sensor has code to retrieve and enable two
regulators for Vdd and Vdd IO, but actually these voltage inputs
are found on all of these ST sensors, so move the regulator
handling to the core and make sure all the ST sensors call these
functions on probe() and remove() to enable/disable power.Here also mover over to obtaining the regulator from the *parent*
device of the IIO device, as the IIO device is created on-the-fly
in this very subsystem it very unlikely evert have any regulators
attached to it whatsoever. It is much more likely that the parent
is a platform device, possibly instantiated from a device tree,
which in turn have Vdd and Vdd IO supplied assigned to it.Cc: Lee Jones
Cc: Denis CIOCCA
Signed-off-by: Linus Walleij
Signed-off-by: Jonathan Cameron -
It is pretty helpful to know already from dmesg that a certain
device is successfully registered, instead of having to browse
sysfs to see if it's actually there.Cc: Lee Jones
Cc: Denis CIOCCA
Signed-off-by: Linus Walleij
Signed-off-by: Jonathan Cameron
17 Mar, 2014
1 commit
-
CHECK drivers/iio/gyro/itg3200_core.c
drivers/iio/gyro/itg3200_core.c:114 itg3200_read_raw() info: ignoring unreachable code.Signed-off-by: Jonathan Cameron
Cc: Neil Brown
Cc: Dan Carpenter
18 Feb, 2014
1 commit
-
The driver was not able to manage the sensor: during probe function
and wai check, the driver stops and writes: "device name and WhoAmI mismatch."
The correct value of L3GD20H wai is 0xd7 instead of 0xd4.
Dropped support for the sensor.Signed-off-by: Denis Ciocca
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Cameron
03 Dec, 2013
1 commit
-
we want these fixes in here.
Signed-off-by: Greg Kroah-Hartman
25 Nov, 2013
2 commits
-
devm_iio_device_register simplifies the code.
Signed-off-by: Sachin Kamat
Signed-off-by: Jonathan Cameron -
devm_iio_device_register simplifies the code.
Signed-off-by: Sachin Kamat
Signed-off-by: Jonathan Cameron
06 Nov, 2013
1 commit
-
A number of Properties that can be applied to Data Fields are per data
field basis or for all data fields. Adding sensitivity field for all
gyro fields, which is most commonly used in currently available
sensor hubs.Signed-off-by: Srinivas Pandruvada
Signed-off-by: Jonathan Cameron
03 Nov, 2013
1 commit
-
We can't store the trigger instance created by iio_trigger_alloc, in
trig field of iio_device structure. This needs to be stored in the
driver private data. Othewise it can result in crash during module
unload. Hence created a trig_ptr in the common data structure
for each HID sensor IIO driver and storing here.Signed-off-by: Srinivas Pandruvada
Signed-off-by: Jonathan Cameron
17 Oct, 2013
1 commit
-
The equivalent of iio_sw_buffer_preenable() is now done in the IIO buffer core,
so there is no need to do this from the driver anymore.Signed-off-by: Lars-Peter Clausen
Cc: Denis Ciocca
Signed-off-by: Jonathan Cameron
05 Oct, 2013
3 commits
-
Use the spi_sync_transfer() helper function instead of open-coding it. Makes
the code a bit shorter.Signed-off-by: Lars-Peter Clausen
Signed-off-by: Jonathan Cameron -
Use the spi_sync_transfer() helper function instead of open-coding it. Makes
the code a bit shorter.Signed-off-by: Lars-Peter Clausen
Signed-off-by: Jonathan Cameron -
Use the spi_sync_transfer() helper function instead of open-coding it. Makes
the code a bit shorter.Signed-off-by: Lars-Peter Clausen
Signed-off-by: Jonathan Cameron
22 Sep, 2013
3 commits
-
This patch fix buffer registration that allows to use generic IIO trigger.
Signed-off-by: Denis Ciocca
Signed-off-by: Jonathan Cameron -
Reduce the amount of those unnecessary goto calls, as in most cases
we can simply return immediately. We also only call for the IRQ number
once and use that value throughout.Signed-off-by: Lee Jones
Signed-off-by: Jonathan Cameron -
Makes the code a bit shorter and less ugly.
Signed-off-by: Lars-Peter Clausen
Cc: Manuel Stahl
Signed-off-by: Jonathan Cameron
16 Sep, 2013
1 commit
-
Now that iio_push_to_buffers() takes a void pointer for the data parameter we
can remove those casts to u8*.Signed-off-by: Lars-Peter Clausen
Signed-off-by: Jonathan Cameron
14 Sep, 2013
3 commits
-
'break' after return is redundant. Remove it.
Signed-off-by: Sachin Kamat
Signed-off-by: Jonathan Cameron -
'break' after return is redundant. Remove it.
Signed-off-by: Sachin Kamat
Signed-off-by: Jonathan Cameron -
'break' after return is redundant. Remove it.
Signed-off-by: Sachin Kamat
Signed-off-by: Jonathan Cameron
20 Aug, 2013
1 commit
-
IIO_VAL_INT_PLUS_MICRO is the default, no need to return it explicitly
Signed-off-by: Peter Meerwald
Acked-by: srinivas pandruvada
Signed-off-by: Jonathan Cameron