2d239c9e92087d5f4f667371ae350db9f76e3191 |
|
22-Jun-2014 |
Jonathan Cameron <jic23@kernel.org> |
iio:st sensors: remove custom sampling frequence attribute in favour of core support. This allows in kernel client drivers to access this Signed-off-by: Jonathan Cameron <jic23@kernel.org> Cc: Denis Ciocca <denis.ciocca@st.com> Reviewed-by: Hartmut Knaack <knaack.h@gmx.de>
|
ea7e586bdd331fd6fba2b6f9fd3777928c2814d8 |
|
13-Apr-2014 |
Linus Walleij <linus.walleij@linaro.org> |
iio: st_sensors: move regulator retrieveal to core 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 <lee.jones@linaro.org> Cc: Denis CIOCCA <denis.ciocca@st.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
|
4f544ced19b3d300ac11414b68a676a2c42f6d06 |
|
13-Apr-2014 |
Linus Walleij <linus.walleij@linaro.org> |
iio: st_sensors: announce registered sensors 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 <lee.jones@linaro.org> Cc: Denis CIOCCA <denis.ciocca@st.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
|
e21e254e49831075f7fb13d9dbe33defb00a3d3d |
|
18-Sep-2013 |
Denis CIOCCA <denis.ciocca@st.com> |
iio:accel: Register buffer also without specific trigger This patch fix buffer registration that allows to use generic IIO trigger. Signed-off-by: Denis Ciocca <denis.ciocca@st.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
|
cf4dd430c4cfeb2b41e2de43f3463d0a3dba2463 |
|
16-Sep-2013 |
Lee Jones <lee.jones@linaro.org> |
iio: accel-core: st: Clean up error handling in probe() 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 <lee.jones@linaro.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
|
6b7e0a9cd42a24e4e2c2a037773a12c375e25b69 |
|
23-Jul-2013 |
Sachin Kamat <sachin.kamat@linaro.org> |
iio: accel: st_accel: Use devm_iio_device_alloc Using devm_iio_device_alloc makes code simpler. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Denis Ciocca <denis.ciocca@st.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
|
23cde4d65cc7d11e2048d2b240cdf13927ac50d0 |
|
19-Jun-2013 |
Denis CIOCCA <denis.ciocca@st.com> |
iio: Added ST-sensors platform data to select the DRDY interrupt pin This patch add support to redirect the DRDY interrupt on INT1 or INT2 on accelerometer and pressure sensors. Signed-off-by: Denis Ciocca <denis.ciocca@st.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
|
607a568ab69c5ac345a286267a27294888f8bb5f |
|
03-Jun-2013 |
Denis CIOCCA <denis.ciocca@st.com> |
iio:common: Removed stuff macros, added num_data_channels on st_sensors struct and 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>
|
762011d6193f8b9af9b491ded87dde3221d0600a |
|
03-Jun-2013 |
Denis CIOCCA <denis.ciocca@st.com> |
iio:common: ST_SENSORS_LSM_CHANNELS macro changed Signed-off-by: Denis Ciocca <denis.ciocca@st.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
|
8ce4a56a52bf566659768a9e46e759e7cd5f33d9 |
|
09-Feb-2013 |
Jonathan Cameron <jic23@kernel.org> |
iio:st_sensors fix build when !CONFIG_IIO_TRIGGER Partly a case of removing unused headers and partly a case of ifdefing out the iio_trigger_ops structures. This has come about because of an 'unusual' separation of code in this driver. Signed-off-by: Jonathan Cameron <jic23@kernel.org> Reported-by: Randy Dunlap <rdunlap@infradead.org> Acked-by: Denis Ciocca <denis.ciocca@st.com>
|
d62511689de5d34d3a07c43db1f46a234bb77b5f |
|
26-Jan-2013 |
Denis Ciocca <denis.ciocca@gmail.com> |
iio:accel: Add STMicroelectronics accelerometers driver This patch adds a generic accelerometer driver for STMicroelectronics accelerometers, currently it supports: LSM303DLH, LSM303DLHC, LIS3DH, LSM330D, LSM330DL, LSM330DLC, LIS331DLH, LSM303DL, LSM303DLM, LSM330. Signed-off-by: Denis Ciocca <denis.ciocca@st.com> Reviewed-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
|