11 May, 2015
20 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 -
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 -
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 -
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 -
Add support for ROHM BH1710/BH1715/BH1721/BH1750/BH1751 ambient light
sensors.Signed-off-by: Tomasz Duszynski
Signed-off-by: Jonathan Cameron -
When cross-compiling the IIO tools we need to opportunity to
specify a cross compiler prefix and some extra CFLAGS. This
patch enables this in the same way as for other stuff in
tools.Signed-off-by: Linus Walleij
Acked-by: Daniel Baluta
Signed-off-by: Jonathan Cameron -
We assume that ACPI device tables use MMC35240 to
identify MEMSIC's 3 axis magnetic sensor.Signed-off-by: Daniel Baluta
Signed-off-by: Jonathan Cameron -
We rely on regmap to save the state of the registers at suspend,
and then we do an explicit sync at resume.Signed-off-by: Daniel Baluta
Signed-off-by: Jonathan Cameron -
Minimal implementation for MMC35240 3-axis magnetometer
sensor. It provides processed readings and possiblity to change
the sampling frequency.Signed-off-by: Daniel Baluta
Signed-off-by: Jonathan Cameron -
Export the oversampling ratio so that the user can change the
number of repetions for x/y/z axis.The sampling frequency is limited by the oversampling ratio.
The available sampling frequencies might change depending
on the values of oversampling_ratio.The specification can be downloaded from:
http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf.Signed-off-by: Irina Tirdea
Signed-off-by: Jonathan Cameron -
Some magnetometers can perform a number of repetitions in HW
for each measurement to increase accuracy. One example is
Bosch BMC150:
http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf.Introduce an interface to set the oversampling ratio
for these devices.Signed-off-by: Irina Tirdea
Signed-off-by: Jonathan Cameron -
Add binding documentation for Bosch BMC150 magnetometer.
Signed-off-by: Irina Tirdea
Signed-off-by: Jonathan Cameron -
Add support for the Bosh BMC150 Magnetometer.
The specification can be downloaded from:
http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf.
The chip contains both an accelerometer and a magnetometer.
This patch adds support only for the magnetometer part.The temperature compensation formulas are based on bmm050_api.c
authored by contact@bosch.sensortec.com.Signed-off-by: Irina Tirdea
Signed-off-by: Jonathan Cameron -
The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is
not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer
functionality only, can still be compiled if GPIOLIB is not enabled.Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where
appropriate.Signed-off-by: Geert Uytterhoeven
Cc: Jonathan Cameron
Cc: linux-iio@vger.kernel.org
Cc: devel@driverdev.osuosl.org
Signed-off-by: Jonathan Cameron -
The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is
not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer
functionality only, can still be compiled if GPIOLIB is not enabled.Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where
appropriate.Signed-off-by: Geert Uytterhoeven
Cc: Jonathan Cameron
Cc: linux-iio@vger.kernel.org
Signed-off-by: Jonathan Cameron -
Added interrupt support for proximity threshold events
to the stk3310 driver.Signed-off-by: Tiberiu Breana
Signed-off-by: Jonathan Cameron -
Minimal implementation of an IIO driver for the Sensortek
STK3310 ambient light and proximity sensor. The STK3311
model is also supported.Includes:
- ACPI support;
- read_raw and write_raw;
- reading and setting configuration parameters for gain/scale
and integration time for both ALS and PS.
- power managementSigned-off-by: Tiberiu Breana
Signed-off-by: Jonathan Cameron
10 May, 2015
1 commit
-
…/iio into staging-next
Jonathan writes:
First round of new drivers, functionality and cleanups for the 4.2 cycle
New drivers / device support
* st sensors driver, lsm303dlh magnetometer support.
* ltr501 - support ltr301 and ltr559 chips.New functionality
* IIO_CHAN_INFO_CALIBEMISSIVITY for thermopile sensors.
* kxcjk1013 - make driver operational with external trigger.
* Add iio targets to the tools Makefile.Cleanups
* st sensors - more helpful error message if device id wrong or irq request
fails, explicitly make the Block Data Update optional rather
than relying on writes to address 0 not doing anything, make interrupt
support optional (Not always wired, and not all devices actually have
an interrupt line.)
* kxcjk-1013 white space additions for readability, add the KXCJ9000 ACPI
id as seen in the wild.
* sx9500 - GPIO reset support, refactor the GPIO interrupt code, add power
management, optimize power usage by powering down when possible, rename
the gpio interrupt pin to be more useful, trivial return path simplification,
trivial formatting fixes.
* isl29018 - move towards ABI compliance with a view to moving this driver
out of staging, add some brackets to ensure code works as expected. Note
there is no actual bug as the condition being tested is always true
(with current devices).
* ltr501 - add regmap support to get caching etc for later patches,
fix a parameter sanity check that always fails (bug introduced
earlier in this series), ACPI enumeration support,
interrupt rate control support, interrupt support in general and
integration time control support, code alignment cleanups.
* mma9553 - a number of little cleanups following a review from Hartmut
after I'd already applied the original driver patch.
* tmp006 - prefix some defines with TMP006 for consistency.
* tsl4531 - cleanup some wrong prefixes, presumably from copy and paste.
* mlx90614 - check for errors in read values, add power management,
add emissivity setting, add device tree binding documentation,
fix a duplicate const warning.
* ti_am335x_adc - refactor the DT parsing into a separate function.
08 May, 2015
19 commits
-
Signed-off-by: Jes Sorensen
Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Jes Sorensen
Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Jes Sorensen
Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Jes Sorensen
Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Jes Sorensen
Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman -
In addition remove unused parser_init()
Signed-off-by: Jes Sorensen
Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman -
This allows the caller to specify an appropriate GFP flag instead of
hardcoding the lowest common denominator.Signed-off-by: Jes Sorensen
Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman -
The visorutil directory is still mentioned in the top level makefile for
the Unisys drivers, so remove it.Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman -
Removing visorutil made it impossible to build visorbus. Remove the config
setting from the Kconfig so the module can be enabled in the build.Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman -
This patch removes visorutil directory, move periodic_work.c into
the visorbus directory.Signed-off-by: Erik Arfvidson
Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman -
This patch move the needed linux include files from timskmod.h
to the files that calls those include. Also procobjecttree.h is
removed since it is dead code.Signed-off-by: Erik Arfvidson
Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman -
This patch removes charqueue.[ch] since it no longer called
Signed-off-by: Erik Arfvidson
Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman -
This patch removes all timksmod.h pound defines. It also removes
visorkmodutils.c since it no longer has any use by itself. Since
visorkmodutils.c is no longer needed the module_init for
visorchipset.c is modified to call visorutil_spar_detect directly
instead of the extern variable in timksmod.h.Signed-off-by: Erik Arfvidson
Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman -
Later patches will require PCI and ACPI support in the kernel, so add these
features to the Kconfig.Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman -
According to Unisys, another OS detects the PNP0A07 as the auto load
device. We can also do this in the linux kernel by simply converting the
driver over to the ACPI driver model.Notes: This changes the usage of __init and it had to be removed from some
functions to avoid a !__init function calling an __init function.
Additionally I also cleaned up the headers in visorchipset.c since I was
adding a header file.Signed-off-by: Prarit Bhargava
Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman -
These shouldn't be defined in the code and can be replaced with the
standard bool, true, and false usage that the kernel uses.Signed-off-by: Prarit Bhargava
Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Jes Sorensen
Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman -
visorchannel's signal code should call visorchannel_write() directly.
This is more consistent and cleaner, and allows us to remove the last
memregion call.Signed-off-by: Jes Sorensen
Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Jes Sorensen
Signed-off-by: Benjamin Romer
Signed-off-by: Greg Kroah-Hartman