[PATCH v2 3/9] regulator: max77693: Support different register configurations

2015-05-23 Thread Krzysztof Kozlowski
Add support for different configurations of charger's registers so the same driver could be used on other devices (e.g. MAX77843). Signed-off-by: Krzysztof Kozlowski Acked-by: Mark Brown --- drivers/regulator/max77693.c | 39 +++ 1 file changed, 27 insertions

[PATCH v2 4/9] extcon/input/mfd/power/regulator: max77693: Move state container to common header

2015-05-23 Thread Krzysztof Kozlowski
This prepares for merging some of the drivers between max77693 and max77843 so the child MFD driver can be attached to any parent MFD main driver. Move the state container to common header file. Additionally add consistent 'i2c' prefixes to its members (of 'struct i2c_client' type). Signed-off-by

[PATCH v2 1/9] mfd/extcon: max77693: Remove unused extern declarations and max77693_dev members

2015-05-23 Thread Krzysztof Kozlowski
Clean up the max77693 private header file by removing: 1. Left-overs from previous way of interrupt handling (driver uses regmap_irq_chip). 2. Unused members of struct 'max77693_dev' related to interrupts in extcon driver. Signed-off-by: Krzysztof Kozlowski [for extcon] Acked-by: Chanwoo Ch

[PATCH v2 2/9] mfd: max77693: Store I2C device type as enum and add default unknown

2015-05-23 Thread Krzysztof Kozlowski
Store the device type (obtained from i2c_device_id) as an enum and add a default type of unknown to distinguish from case when this is not set at all. Signed-off-by: Krzysztof Kozlowski --- include/linux/mfd/max77693-private.h | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) di

[PATCH v2 6/9] mfd/extcon: max77693: Rename defines to allow inclusion with max77843

2015-05-23 Thread Krzysztof Kozlowski
Add MAX77693 prefix to some of the defines used in max77693 extcon driver so the max77693-private.h can be included simultaneously with max77843-private.h. Additionally use BIT() macro in header. Signed-off-by: Krzysztof Kozlowski --- drivers/extcon/extcon-max77693.c | 72 +

[PATCH v2 5/9] extcon/input/mfd/regulator: max77843: Switch to common max77693 state container

2015-05-23 Thread Krzysztof Kozlowski
Switch to the same definition of state container as in MAX77693 drivers. This will allow usage of one regulator driver in both devices: MAX77693 and MAX77843. Signed-off-by: Krzysztof Kozlowski --- drivers/extcon/extcon-max77843.c | 17 + drivers/input/misc/max77843-haptic.c

[PATCH v2 7/9] mfd/extcon: max77843: Rename defines to allow inclusion with max77693

2015-05-23 Thread Krzysztof Kozlowski
Add MAX77843_MUIC prefix to some of the defines used in max77843 extcon driver so the max77693-private.h can be included simultaneously with max77843-private.h. Signed-off-by: Krzysztof Kozlowski Acked-by: Lee Jones --- drivers/extcon/extcon-max77843.c | 49 +++ include/linux/mfd/m

[PATCH v2 9/9] regulator: Remove the max77843 driver

2015-05-23 Thread Krzysztof Kozlowski
The max77693 regulator driver supports Maxim 77843 device so remove the max77843 driver. Signed-off-by: Krzysztof Kozlowski --- drivers/regulator/Kconfig| 8 -- drivers/regulator/Makefile | 1 - drivers/regulator/max77843.c | 203 --- 3 files cha

[PATCH v2 8/9] regulator: max77693: Add support for MAX77843 device

2015-05-23 Thread Krzysztof Kozlowski
The charger and safeout part of MAX77843 is almost the same as MAX77693. >From regulator point of view the only differences are the constraints and register values related to these constraints. Now the max77693 regulator driver can be used for MAX77843. Signed-off-by: Krzysztof Kozlowski Acked-by

[PATCH v2 0/9] regulator/power/mfd/input/extcon: Merge max77843 into max77693

2015-05-23 Thread Krzysztof Kozlowski
Hi, The patchset merges max77843 regulator driver into max77693. I am asking for review and acks from multiple subsystems: extcon, input, mfd, power and regulator. Changes since v1 1. Drop patch "regulator: max77693: Use core code for charger's is_enabled" because Mark Brown

Re: [PATCH] Input: stmpe-ts - enforce device tree only mode

2015-05-23 Thread Marek Vasut
On Saturday, May 23, 2015 at 06:41:50 PM, Dmitry Torokhov wrote: > On May 23, 2015 9:38:54 AM PDT, Marek Vasut wrote: > >On Saturday, May 23, 2015 at 12:58:32 AM, Dmitry Torokhov wrote: > >> The STMPE MFD is only used with device tree configured systems (and > > > >STMPE > > > >> MFD core depends

Re: [PATCH] Input: stmpe-ts - enforce device tree only mode

2015-05-23 Thread Dmitry Torokhov
On May 23, 2015 9:38:54 AM PDT, Marek Vasut wrote: >On Saturday, May 23, 2015 at 12:58:32 AM, Dmitry Torokhov wrote: >> The STMPE MFD is only used with device tree configured systems (and >STMPE >> MFD core depends on OF), so force the configuration to come from >device >> tree only. >> >> Signed

Re: [PATCH] Input: stmpe-ts - enforce device tree only mode

2015-05-23 Thread Marek Vasut
On Saturday, May 23, 2015 at 12:58:32 AM, Dmitry Torokhov wrote: > The STMPE MFD is only used with device tree configured systems (and STMPE > MFD core depends on OF), so force the configuration to come from device > tree only. > > Signed-off-by: Dmitry Torokhov > --- Hi! [...] > @@ -351,14 +3

Re: [PATCH 05/10] max77693: Move state container to common header

2015-05-23 Thread Sebastian Reichel
Hi, On Wed, Apr 29, 2015 at 07:58:30PM +0900, Krzysztof Kozlowski wrote: > This prepares for merging some of the drivers between max77693 and > max77843 so the child MFD driver can be attached to any parent MFD main > driver. > > Move the state container to common header file. Additionally add >

Re: [PATCH] Input: stmpe-ts - enforce device tree only mode

2015-05-23 Thread Heiner Kallweit
Am 23.05.2015 um 00:58 schrieb Dmitry Torokhov: > The STMPE MFD is only used with device tree configured systems (and STMPE > MFD core depends on OF), so force the configuration to come from device > tree only. > > Signed-off-by: Dmitry Torokhov > --- > > Not tested as no device, please give it

Re: [PATCH v2 0/2] Fix OF match for adxl34x driver

2015-05-23 Thread Geert Uytterhoeven
Hi Dmitry, On Sat, May 23, 2015 at 1:32 AM, Dmitry Torokhov wrote: > On Thu, May 21, 2015 at 01:42:24PM +0200, Geert Uytterhoeven wrote: >> This is a resent of a series by Laurent Pinchart to fix OF matching for >> the adxl34x driver. > Applied and sorry for the delay. Thanks a lot! Gr{oetje,e