Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754913AbbHLPEL (ORCPT ); Wed, 12 Aug 2015 11:04:11 -0400 Received: from smtp-out-194.synserver.de ([212.40.185.194]:1278 "EHLO smtp-out-194.synserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753437AbbHLPEJ (ORCPT ); Wed, 12 Aug 2015 11:04:09 -0400 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@metafoo.de X-SynServer-PPID: 31378 Message-ID: <55CB6065.8000901@metafoo.de> Date: Wed, 12 Aug 2015 17:04:05 +0200 From: Lars-Peter Clausen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: Markus Pargmann , Jonathan Cameron CC: Srinivas Pandruvada , Vlad Dogaru , Paul Bolle , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Irina Tirdea Subject: Re: [PATCH v3 0/6] iio: bmg160: Add SPI connection References: <1439391009-6051-1-git-send-email-mpa@pengutronix.de> In-Reply-To: <1439391009-6051-1-git-send-email-mpa@pengutronix.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2283 Lines: 61 Hi, Markus and Irina can you try to synchronize your efforts. This series will conflict with http://marc.info/?l=linux-iio&m=143938994602171&w=2 I think it would be best if the multi-read emulation support is added to regmap (which I think Markus' earlier series did). - Lars On 08/12/2015 04:50 PM, Markus Pargmann wrote: > Hi, > > bmg160 and bmi055 can be used via I2C and SPI. This series converts the driver > to regmap and splits core driver and I2C/SPI. > > Changes in v3: > - removed 'select REGMAP' as it is selected by REGMAP_I2C > - added EXPORT_SYMBOL_GPL for the core functions > - removed default values from regmap_config > - Added max_register and unset use_single_rw in regmap_config > - Changed Makefile to always compile bmg160-core with either spi or i2c. It is > not possible now to compile the core alone. > > Changes in v2: > - Added the id->name from the SPI driver to be used as iio device name > - Fixed Kconfig in patch 2 to add selects for REGMAP_I2C > - Fixed regmap configs to be static const > > > Best regards, > > Markus > > > Markus Pargmann (6): > iio: bmg160: Use i2c regmap instead of direct i2c access > iio: bmg160: Remove i2c_client from data struct > iio: bmg160: Use generic dev_drvdata > iio: bmg160: Remove remaining uses of i2c_client > iio: bmg160: Separate i2c and core driver > iio: bmg160: Add SPI driver > > drivers/iio/gyro/Kconfig | 28 ++- > drivers/iio/gyro/Makefile | 3 +- > drivers/iio/gyro/bmg160.h | 10 + > drivers/iio/gyro/{bmg160.c => bmg160_core.c} | 358 +++++++++++---------------- > drivers/iio/gyro/bmg160_i2c.c | 71 ++++++ > drivers/iio/gyro/bmg160_spi.c | 57 +++++ > 6 files changed, 306 insertions(+), 221 deletions(-) > create mode 100644 drivers/iio/gyro/bmg160.h > rename drivers/iio/gyro/{bmg160.c => bmg160_core.c} (74%) > create mode 100644 drivers/iio/gyro/bmg160_i2c.c > create mode 100644 drivers/iio/gyro/bmg160_spi.c > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/