[PATCH v5 (staging-next) 1/5] staging:iio:hmc5843: Added regmap support

2014-07-22 Thread Josef Gajdusek
This patch changes hmc5843.c to use regmap. This provides transparent caching to the code as well as abstraction necessary to add support for SPI-based hmc5983. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio/magnetometer/Kconfig | 1 + drivers/staging/iio/magnetometer

[PATCH v5 (staging-next) 2/5] staging:iio:hmc5843: Split hmc5843.c to multiple files

2014-07-22 Thread Josef Gajdusek
This patch splits hmc5843.c to multiple files - the interface-agnostic hmc5843_core.c, i2c specific hmc5843_i2c.c and header file hmc5843.h. This is another step to add support of SPI-enabled hmc5983. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio/magnetometer/Kconfig

[PATCH v5 (staging-next) 4/5] staging:iio:hmc5843: Add support for i2c hmc5983

2014-07-22 Thread Josef Gajdusek
This patch adds support for the hmc5983 i2c interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek a...@atx.name --- .../devicetree/bindings/iio

[PATCH v5 (staging-next) 3/5] staging:iio:hmc5843: register - value arrays now can have different lengths

2014-07-22 Thread Josef Gajdusek
Changed structure of struct hmc5843_chip_info to include length of translation arrays. Code previously using #defined constant has been changed accordingly. This allows to integrate devices which do have different amounts of available rates/scales. Signed-off-by: Josef Gajdusek a...@atx.name

[PATCH v4 (staging-next) 1/5] staging:iio:hmc5843: Added regmap support

2014-07-16 Thread Josef Gajdusek
This patch changes hmc5843.c to use regmap. This provides transparent caching to the code as well as abstraction necessary to add support for SPI-based hmc5983. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio/magnetometer/Kconfig | 1 + drivers/staging/iio/magnetometer

[PATCH v4 (staging-next) 0/5] staging:iio:hmc5843: Few adjustments and support for hmc5983

2014-07-16 Thread Josef Gajdusek
(this fixed bunch of variable not used warnings) Rebased v4 on top of staging-next Josef Gajdusek (5): staging:iio:hmc5843: Added regmap support staging:iio:hmc5843: Split hmc5843.c to multiple files staging:iio:hmc5843: register - value arrays now can have different lengths

[PATCH v4 (staging-next) 2/5] staging:iio:hmc5843: Split hmc5843.c to multiple files

2014-07-16 Thread Josef Gajdusek
This patch splits hmc5843.c to multiple files - the interface-agnostic hmc5843_core.c, i2c specific hmc5843_i2c.c and header file hmc5843.h. This is another step to add support of SPI-enabled hmc5983. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio/magnetometer/Kconfig

[PATCH v4 (staging-next) 3/5] staging:iio:hmc5843: register - value arrays now can have different lengths

2014-07-16 Thread Josef Gajdusek
Changed structure of struct hmc5843_chip_info to include length of translation arrays. Code previously using #defined constant has been changed accordingly. This allows to integrate devices which do have different amounts of available rates/scales. Signed-off-by: Josef Gajdusek a...@atx.name

[PATCH v4 (staging-next) 4/5] staging:iio:hmc5843: Add support for i2c hmc5983

2014-07-16 Thread Josef Gajdusek
This patch adds support for the hmc5983 i2c interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio

[PATCH v4 (staging-next) 5/5] staging:iio:hmc5843: Add support for spi hmc5983

2014-07-16 Thread Josef Gajdusek
This patch adds support for the hmc5983 spi interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio

[PATCH v4 0/5] staging:iio:hmc5843: Few adjustments and support for hmc5983

2014-07-15 Thread Josef Gajdusek
(this fixed bunch of variable not used warnings) Jonathan, the patch series applies cleanly against mainline (for me at least), maybe you already have some hmc5843 related patches in your tree which are not yet in upstream? (probably https://lkml.org/lkml/2014/2/14/312) Josef Gajdusek

[PATCH v4 2/5] staging:iio:hmc5843: Split hmc5843.c to multiple files

2014-07-15 Thread Josef Gajdusek
This patch splits hmc5843.c to multiple files - the interface-agnostic hmc5843_core.c, i2c specific hmc5843_i2c.c and header file hmc5843.h. This is another step to add support of SPI-enabled hmc5983. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio/magnetometer/Kconfig

[PATCH v4 3/5] staging:iio:hmc5843: register - value arrays now can have different lengths

2014-07-15 Thread Josef Gajdusek
Changed structure of struct hmc5843_chip_info to include length of translation arrays. Code previously using #defined constant has been changed accordingly. This allows to integrate devices which do have different amounts of available rates/scales. Signed-off-by: Josef Gajdusek a...@atx.name

[PATCH v4 1/5] staging:iio:hmc5843: Added regmap support

2014-07-15 Thread Josef Gajdusek
This patch changes hmc5843.c to use regmap. This provides transparent caching to the code as well as abstraction necessary to add support for SPI-based hmc5983. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio/magnetometer/Kconfig | 1 + drivers/staging/iio/magnetometer

[PATCH v4 4/5] staging:iio:hmc5843: Add support for i2c hmc5983

2014-07-15 Thread Josef Gajdusek
This patch adds support for the hmc5983 i2c interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio

[PATCH v4 5/5] staging:iio:hmc5843: Add support for spi hmc5983

2014-07-15 Thread Josef Gajdusek
This patch adds support for the hmc5983 spi interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio

Re: [PATCH v2 2/5] staging:iio:hmc5843: Split hmc5843.c to multiple files

2014-07-08 Thread Josef Gajdusek
On Tue, Jul 08, 2014 at 11:23:51AM +0300, Dan Carpenter wrote: When you compare the old and new versions of hmc5843_read_raw() then it appears there is a bug fix or something which hasn't been documentented in the changelog. -static int hmc5843_read_raw(struct iio_dev *indio_dev, -

[PATCH v3 2/5] staging:iio:hmc5843: Split hmc5843.c to multiple files

2014-07-08 Thread Josef Gajdusek
This patch splits hmc5843.c to multiple files - the interface-agnostic hmc5843_core.c, i2c specific hmc5843_i2c.c and header file hmc5843.h. This is another step to add support of SPI-enabled hmc5983. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio/magnetometer/Kconfig

[PATCH v3 3/5] staging:iio:hmc5843: register - value arrays now can have different lengths

2014-07-08 Thread Josef Gajdusek
Changed structure of struct hmc5843_chip_info to include length of translation arrays. Code previously using #defined constant has been changed accordingly. This allows to integrate devices which do have different amounts of available rates/scales. Signed-off-by: Josef Gajdusek a...@atx.name

[PATCH v3 4/5] staging:iio:hmc5843: Add support for i2c hmc5983

2014-07-08 Thread Josef Gajdusek
This patch adds support for the hmc5983 i2c interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio

[PATCH v3 5/5] staging:iio:hmc5843: Add support for spi hmc5983

2014-07-08 Thread Josef Gajdusek
This patch adds support for the hmc5983 spi interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio

Re: [PATCH 1/5] staging:iio:hmc5843: Added regmap support

2014-07-07 Thread Josef Gajdusek
On Mon, Jul 07, 2014 at 06:00:29PM +0100, Jonathan Cameron wrote: On 02/07/14 14:50, Josef Gajdusek wrote: This patch changes hmc5843.c to use regmap. This provides transparent caching to the code as well as abstraction necessary to add support for SPI-based hmc5983. Signed-off

[PATCH v2 0/5] staging:iio:hmc5843: Few adjustments and support for hmc5983

2014-07-07 Thread Josef Gajdusek
This patch series modifies the hmc5843 driver to support the hmc5983 i2c and spi interfaces. Josef Gajdusek (5): staging:iio:hmc5843: Added regmap support staging:iio:hmc5843: Split hmc5843.c to multiple files staging:iio:hmc5843: register - value arrays now can have different lengths

[PATCH v2 1/5] staging:iio:hmc5843: Added regmap support

2014-07-07 Thread Josef Gajdusek
This patch changes hmc5843.c to use regmap. This provides transparent caching to the code as well as abstraction necessary to add support for SPI-based hmc5983. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio/magnetometer/Kconfig | 1 + drivers/staging/iio/magnetometer

[PATCH v2 2/5] staging:iio:hmc5843: Split hmc5843.c to multiple files

2014-07-07 Thread Josef Gajdusek
This patch splits hmc5843.c to multiple files - the interface-agnostic hmc5843_core.c, i2c specific hmc5843_i2c.c and header file hmc5843.h. This is another step to add support of SPI-enabled hmc5983. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio/magnetometer/Kconfig

[PATCH v2 3/5] staging:iio:hmc5843: register - value arrays now can have different lengths

2014-07-07 Thread Josef Gajdusek
Changed structure of struct hmc5843_chip_info to include length of translation arrays. Code previously using #defined constant has been changed accordingly. This allows to integrate devices which do have different amounts of available rates/scales. Signed-off-by: Josef Gajdusek a...@atx.name

[PATCH v2 4/5] staging:iio:hmc5843: Add support for i2c hmc5983

2014-07-07 Thread Josef Gajdusek
This patch adds support for the hmc5983 i2c interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio

[PATCH v2 5/5] staging:iio:hmc5843: Add support for spi hmc5983

2014-07-07 Thread Josef Gajdusek
This patch adds support for the hmc5983 spi interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio

[PATCH 5/5] staging:iio:hmc5843: Add support for spi hmc5983

2014-07-02 Thread Josef Gajdusek
This patch adds support for the hmc5983 spi interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio

[PATCH 3/5] staging:iio:hmc5843: register - value arrays now can have different lengths

2014-07-02 Thread Josef Gajdusek
Changed structure of struct hmc5843_chip_info to include length of translation arrays. Code previously using #defined constant has been changed accordingly. This allows to integrate devices which do have different amounts of available rates/scales. Signed-off-by: Josef Gajdusek a...@atx.name

[PATCH 4/5] staging:iio:hmc5843: Add support for i2c hmc5983

2014-07-02 Thread Josef Gajdusek
This patch adds support for the hmc5983 i2c interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio

[PATCH 0/5] staging:iio:hmc5843: Few adjustments and support for hmc5983

2014-07-02 Thread Josef Gajdusek
This patch series modifies the hmc5843 driver to support the hmc5983 i2c and spi interfaces. Josef Gajdusek (5): staging:iio:hmc5843: Added regmap support staging:iio:hmc5843: Split hmc5843.c to multiple files staging:iio:hmc5843: register - value arrays now can have different lengths

[PATCH 1/5] staging:iio:hmc5843: Added regmap support

2014-07-02 Thread Josef Gajdusek
This patch changes hmc5843.c to use regmap. This provides transparent caching to the code as well as abstraction necessary to add support for SPI-based hmc5983. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio/magnetometer/Kconfig | 1 + drivers/staging/iio/magnetometer

[PATCH 2/5] staging:iio:hmc5843: Split hmc5843.c to multiple files

2014-07-02 Thread Josef Gajdusek
This patch splits hmc5843.c to multiple files - the interface-agnostic hmc5843_core.c, i2c specific hmc5843_i2c.c and header file hmc5843.h. This is another step to add support of SPI-enabled hmc5983. Signed-off-by: Josef Gajdusek a...@atx.name --- drivers/staging/iio/magnetometer/Kconfig