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
17 Aug, 2013
8 commits
-
Using devm_iio_device_alloc makes code simpler.
Signed-off-by: Sachin Kamat
Cc: Denis Ciocca
Signed-off-by: Jonathan Cameron -
Using devm_iio_device_alloc makes code simpler.
Signed-off-by: Sachin Kamat
Cc: Christian Strobel
Signed-off-by: Jonathan Cameron -
Using devm_iio_device_alloc makes code simpler.
Signed-off-by: Sachin Kamat
Signed-off-by: Jonathan Cameron -
Using devm_iio_device_alloc makes code simpler.
Signed-off-by: Sachin Kamat
Cc: Srinivas Pandruvada
Signed-off-by: Jonathan Cameron -
Using devm_iio_device_alloc makes code simpler.
Signed-off-by: Sachin Kamat
Acked-by: Lars-Peter Clausen
Signed-off-by: Jonathan Cameron -
Using devm_iio_device_alloc makes code simpler.
Signed-off-by: Sachin Kamat
Cc: Lars-Peter Clausen
Signed-off-by: Jonathan Cameron -
Using devm_iio_device_alloc makes code simpler.
Signed-off-by: Sachin Kamat
Acked-by: Lars-Peter Clausen
Signed-off-by: Jonathan Cameron -
Using devm_iio_device_alloc makes code simpler.
Signed-off-by: Sachin Kamat
Acked-by: Lars-Peter Clausen
Signed-off-by: Jonathan Cameron
04 Aug, 2013
5 commits
-
The drivers is in more or less good shape, conforms to the IIO ABI and none of
the default static code checker report any problems, so move it out of staging.Signed-off-by: Lars-Peter Clausen
Signed-off-by: Jonathan Cameron -
Keeping Makefile and Kconfig entries in alphabetical order usually works better
than just appending new entries at the end, since it reduces the amount of
conflicts. This patch adds a comment to the IIO Kconfig and Makefile files to
document that the entries should be kept in alphabetical order.Also reorder those entries which weren't in alphabetical order yet.
Signed-off-by: Lars-Peter Clausen
Signed-off-by: Jonathan Cameron -
Add a MODULE_DEVICE_TABLE in order to let hotplug mechanisms automatically
load the driver.This makes it also possible to use the usual driver name instead of
HID-SENSOR-2000xx which isn't very descriptive in kernel messages.Signed-off-by: Alexander Holler
Acked-by:Srinivas Pandruvada
Signed-off-by: Jonathan Cameron -
Signed-off-by: Peter Meerwald
Acked-by: "Denis Ciocca"
Signed-off-by: Jonathan Cameron -
This patch add support to redirect the DRDY interrupt on INT1 or INT2
on accelerometer and pressure sensors.Signed-off-by: Denis Ciocca
Signed-off-by: Jonathan Cameron
12 Jun, 2013
1 commit
-
The adis16130 driver is fairly simple and it a good shape now, so move it out of
staging. Remove an outdated FIXME along the way.Signed-off-by: Lars-Peter Clausen
Signed-off-by: Jonathan Cameron
06 Jun, 2013
1 commit
-
…nd added support on one-shot sysfs reads to 3 byte channel
This patch introduce num_data_channels variable on st_sensors struct
to manage different type of channels (size or number) in
st_sensors_get_buffer_element function.
Removed ST_SENSORS_NUMBER_DATA_CHANNELS and ST_SENSORS_BYTE_FOR_CHANNEL
and used struct iio_chan_spec const *ch to catch data.
Added 3 byte channel data support on one-shot reads.Signed-off-by: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
05 Jun, 2013
1 commit
-
Signed-off-by: Denis Ciocca
Signed-off-by: Jonathan Cameron
23 May, 2013
1 commit
-
Drivers for STMicroelectronics accelerometers, gyroscopes, and
magnetometers were added in v3.9. They all have a (similar) select
statement in their Kconfig files for a non-existant Kconfig symbol.
These select statements can safely be removed.Signed-off-by: Paul Bolle
Acked-by: Denis Ciocca
Signed-off-by: Jonathan Cameron
26 Mar, 2013
1 commit
-
Introduce iio_tigger_{set,get}_drvdata which allows to attach driver specific
data to a trigger. The functions wrap access to the triggers private_data field
and all current users are updated to use iio_tigger_{set,get}_drvdata instead of
directly accessing the private_data field. This is the first step towards
removing the private_data field from the iio_trigger struct.The following coccinelle script has been used to update the drivers:
@@
struct iio_trigger *trigger;
expression priv;
@@
-trigger->private_data = priv
+iio_trigger_set_drv_data(trigger, priv)@@
struct iio_trigger *trigger;
@@
-trigger->private_data
+iio_trigger_get_drv_data(trigger)Signed-off-by: Lars-Peter Clausen
Signed-off-by: Jonathan Cameron
18 Mar, 2013
4 commits
-
The original info_mask is going away in favour of the broken out versions.
Signed-off-by: Jonathan Cameron
cc: Manuel Stahl -
The original info_mask is going away in favour of the broken out versions.
Signed-off-by: Jonathan Cameron
Acked-by: Lars-Peter Clausen -
The original info_mask is going away in favour of the broken out versions.
Signed-off-by: Jonathan Cameron
Acked-by: Lars-Peter Clausen -
The original info_mask is going away in favour of the broken out versions.
Signed-off-by: Jonathan Cameron
Acked-by: Lars-Peter Clausen