[PATCH V2 08/20] mfd: lp3943: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Milo Kim Acked-by: Milo Kim --- Changes from V1: - Convert mfd to MFD. - Collected acks. drivers

[PATCH V2 13/20] mfd: rn5t618: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and remove the call of mfd_remove_devices() from .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Beniamino Galvani <b.galv...@

[PATCH V2 13/20] mfd: rn5t618: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and remove the call of mfd_remove_devices() from .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Beniamino Galvani --- Changes from V1: - Convert mfd to MFD. - Run

[PATCH V2 12/20] mfd: rk808: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and remove the call of mfd_remove_devices() from .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Chris Zhong <z...@rock-chips.com>

[PATCH V2 12/20] mfd: rk808: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and remove the call of mfd_remove_devices() from .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Chris Zhong --- Changes from V1: - Convert mfd to MFD. - Run

[PATCH V2 09/20] mfd: menf21bmc: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Andreas Werner <andreas.wer...@men.de> Reviewed-by: Andreas Werner

[PATCH V2 10/20] mfd: mt6397: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: John Crispin <blo...@openwrt.org> CC: Javier Martinez C

[PATCH V2 17/20] mfd: tps6507x: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Todd Fischer <todd.fisc...@ridgerun.com> --- Changes from V1: -

[PATCH V2 15/20] mfd: sky81452: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Gyungoh Yoo <jack@skyworksinc.com> --- Changes from V1: -

[PATCH V2 09/20] mfd: menf21bmc: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Andreas Werner Reviewed-by: Andreas Werner --- Changes from V1: - Convert mfd to MFD. - Run

[PATCH V2 10/20] mfd: mt6397: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: John Crispin CC: Javier Martinez Canillas Reviewed-by: Javier Martinez Canillas --- Changes from

[PATCH V2 17/20] mfd: tps6507x: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Todd Fischer --- Changes from V1: - Convert mfd to MFD. - Fix checkpatch --strict error on patch

[PATCH V2 15/20] mfd: sky81452: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Gyungoh Yoo --- Changes from V1: - Convert mfd to MFD. - Run checkpatch with --strict option and fix

[PATCH V2 11/20] mfd: rdc321x: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Florian Fainelli <flor...@openwrt.org> --- Changes from V1: -

[PATCH V2 11/20] mfd: rdc321x: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Florian Fainelli --- Changes from V1: - Convert mfd to MFD. - Fix checkpatch --strict error on patch

[PATCH V2 07/20] mfd: hi6421-pmic: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Guodong Xu <guodong...@linaro.org> --- Changes from V1: - Conver

[PATCH V2 20/20] mfd: wm8400: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Mark Brown <broo...@kernel.org> CC: patc...@opensource.wolfsonmic

[PATCH V2 18/20] mfd: tps65217: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Tony Lindgren <t...@atomide.com> --- Changes from V1: - Conver

[PATCH V2 07/20] mfd: hi6421-pmic: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Guodong Xu --- Changes from V1: - Convert mfd to MFD. - Run checkpatch with --strict option and fix

[PATCH V2 20/20] mfd: wm8400: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Mark Brown CC: patc...@opensource.wolfsonmicro.com Acked-by: Charles Keepax --- Changes from V1

[PATCH V2 18/20] mfd: tps65217: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Tony Lindgren --- Changes from V1: - Convert mfd to MFD. - Run checkpatch with --strict option

[PATCH V2 14/20] mfd: rt5033: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Ingi Kim <ingi2@samsung.com> CC: Javier Martinez C

[PATCH V2 19/20] mfd: tps65910: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and remove the call of mfd_remove_devices() from .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Tony Lindgren <t...@atomide.com>

[PATCH V2 19/20] mfd: tps65910: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and remove the call of mfd_remove_devices() from .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Tony Lindgren --- Changes from V1: - Convert mfd to MFD. drivers

[PATCH V2 14/20] mfd: rt5033: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Ingi Kim CC: Javier Martinez Canillas Reviewed-by: Javier Martinez Canillas --- Changes from V1

[PATCH V2 06/20] mfd: bcm590xx: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Matt Porter <mpor...@linaro.org> --- Changes from V1: - Conver

[PATCH V2 16/20] mfd: stw481x: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Linus Walleij <linus.wall...@linaro.org> Acked-by: Linus Walleij

[PATCH V2 06/20] mfd: bcm590xx: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Matt Porter --- Changes from V1: - Convert mfd to MFD. - Run checkpatch with --strict option and fix

[PATCH V2 16/20] mfd: stw481x: Use devm_mfd_add_devices() for mfd_device registration

2016-04-07 Thread Laxman Dewangan
Use devm_mfd_add_devices() for MFD devices registration and get rid of .remove callback to remove MFD child-devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Linus Walleij Acked-by: Linus Walleij --- Changes from V1: - Convert mfd to MFD. - Run checkpatch

[PATCH V2 00/20] mfd: Add devm_ apis for mfd_add_devices and mfd_release_devices

2016-04-07 Thread Laxman Dewangan
. - Convert mfd to MFD on all commit message. - Handles the comment received from V1 patch like better error handling, APIs description. - Collected acks and reviewed by. - Run checkpatch --strict on all patches and fix alignment error. Laxman Dewangan (20): mfd: Add resource managed apis

[PATCH V2 00/20] mfd: Add devm_ apis for mfd_add_devices and mfd_release_devices

2016-04-07 Thread Laxman Dewangan
. - Convert mfd to MFD on all commit message. - Handles the comment received from V1 patch like better error handling, APIs description. - Collected acks and reviewed by. - Run checkpatch --strict on all patches and fix alignment error. Laxman Dewangan (20): mfd: Add resource managed apis

[PATCH V2 01/20] mfd: Add resource managed apis for mfd_add_devices

2016-04-07 Thread Laxman Dewangan
driver unbind. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> --- Changes from V1: - Reformat the commit message. - Run checkpatch with --strict option and fix warning. - Remove devm_ for mfd_remove_devices() as this is not used. - Consider V1 review comment on error handling. drive

[PATCH V2 01/20] mfd: Add resource managed apis for mfd_add_devices

2016-04-07 Thread Laxman Dewangan
driver unbind. Signed-off-by: Laxman Dewangan --- Changes from V1: - Reformat the commit message. - Run checkpatch with --strict option and fix warning. - Remove devm_ for mfd_remove_devices() as this is not used. - Consider V1 review comment on error handling. drivers/mfd/mfd-core.c | 38

Re: [PATCH 01/20] mfd: Add devm_ apis for mfd_add_devices and mfd_release_devices

2016-04-07 Thread Laxman Dewangan
On Thursday 07 April 2016 05:12 PM, Lee Jones wrote: On Thu, 07 Apr 2016, Laxman Dewangan wrote: + * Normally this function will not need to be called and the resource + * management code will ensure that the resource is freed. Then what is the purpose of providing it? Do you have a user

Re: [PATCH 01/20] mfd: Add devm_ apis for mfd_add_devices and mfd_release_devices

2016-04-07 Thread Laxman Dewangan
On Thursday 07 April 2016 05:12 PM, Lee Jones wrote: On Thu, 07 Apr 2016, Laxman Dewangan wrote: + * Normally this function will not need to be called and the resource + * management code will ensure that the resource is freed. Then what is the purpose of providing it? Do you have a user

Re: [PATCH 01/20] mfd: Add devm_ apis for mfd_add_devices and mfd_release_devices

2016-04-07 Thread Laxman Dewangan
Hi Lee, Thanks for review. I will send another patch with incorporating your comments. On Thursday 07 April 2016 04:14 PM, Lee Jones wrote: On Tue, 05 Apr 2016, Laxman Dewangan wrote: + if (!ret) { + *ptr = dev; + devres_add(dev, ptr); + } else

Re: [PATCH 01/20] mfd: Add devm_ apis for mfd_add_devices and mfd_release_devices

2016-04-07 Thread Laxman Dewangan
Hi Lee, Thanks for review. I will send another patch with incorporating your comments. On Thursday 07 April 2016 04:14 PM, Lee Jones wrote: On Tue, 05 Apr 2016, Laxman Dewangan wrote: + if (!ret) { + *ptr = dev; + devres_add(dev, ptr); + } else

Re: [PATCH 1/2] thermal: generic-adc: Add DT binding for ADC based thermal sensor driver

2016-04-06 Thread Laxman Dewangan
Hi Eduardo, Thanks for review. On Wednesday 06 April 2016 09:31 PM, Eduardo Valentin wrote: On Wed, Apr 06, 2016 at 03:33:05PM +0530, Laxman Dewangan wrote: +- step-temperature: The temperature steps for the reading ADC +value in millicelsius. How about

Re: [PATCH 1/2] thermal: generic-adc: Add DT binding for ADC based thermal sensor driver

2016-04-06 Thread Laxman Dewangan
Hi Eduardo, Thanks for review. On Wednesday 06 April 2016 09:31 PM, Eduardo Valentin wrote: On Wed, Apr 06, 2016 at 03:33:05PM +0530, Laxman Dewangan wrote: +- step-temperature: The temperature steps for the reading ADC +value in millicelsius. How about

Re: [PATCH 1/3] iio: core: Add devm_ APIs for iio_channel_{get,release}

2016-04-06 Thread Laxman Dewangan
Hi Daniel, On Wednesday 06 April 2016 07:19 PM, Daniel Baluta wrote: On Wed, Apr 6, 2016 at 1:31 PM, Laxman Dewangan <ldewan...@nvidia.com> wrote: Some of kernel driver uses the IIO framework to get the sensor value via ADC or IIO HW driver. The client driver get iio c

Re: [PATCH 1/3] iio: core: Add devm_ APIs for iio_channel_{get,release}

2016-04-06 Thread Laxman Dewangan
Hi Daniel, On Wednesday 06 April 2016 07:19 PM, Daniel Baluta wrote: On Wed, Apr 6, 2016 at 1:31 PM, Laxman Dewangan wrote: Some of kernel driver uses the IIO framework to get the sensor value via ADC or IIO HW driver. The client driver get iio channel by iio_channel_get() and release

[PATCH 3/3] iio: Add resource managed APIs devm_iio_channel_{get,release) in devres

2016-04-06 Thread Laxman Dewangan
Add following APIs in the list of managed resources of IIO: devm_iio_channel_get() devm_iio_channel_get_all() devm_iio_channel_release() devm_iio_channel_release_all() Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> --- Documentation/driver-model/devr

[PATCH 2/3] iio: core: Add devm_ APIs for iio_channel_{get,release}_all

2016-04-06 Thread Laxman Dewangan
the devm_iio_channel_get_all() then it need not to release it explicitly, it can be done by managed device framework when driver get un-binded. This reduces the code in error path and also need of .remove callback in some cases. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> --- drivers/iio/in

[PATCH 3/3] iio: Add resource managed APIs devm_iio_channel_{get,release) in devres

2016-04-06 Thread Laxman Dewangan
Add following APIs in the list of managed resources of IIO: devm_iio_channel_get() devm_iio_channel_get_all() devm_iio_channel_release() devm_iio_channel_release_all() Signed-off-by: Laxman Dewangan --- Documentation/driver-model/devres.txt | 4 1 file

[PATCH 2/3] iio: core: Add devm_ APIs for iio_channel_{get,release}_all

2016-04-06 Thread Laxman Dewangan
the devm_iio_channel_get_all() then it need not to release it explicitly, it can be done by managed device framework when driver get un-binded. This reduces the code in error path and also need of .remove callback in some cases. Signed-off-by: Laxman Dewangan --- drivers/iio/inkern.c | 36

[PATCH 1/3] iio: core: Add devm_ APIs for iio_channel_{get,release}

2016-04-06 Thread Laxman Dewangan
the devm_iio_channel_get() then it need not to release it explicitly, it can be done by managed device framework when driver get un-binded. This reduces the code in error path and also need of .remove callback in some cases. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> --- drivers/iio/inkern.c

[PATCH 1/3] iio: core: Add devm_ APIs for iio_channel_{get,release}

2016-04-06 Thread Laxman Dewangan
the devm_iio_channel_get() then it need not to release it explicitly, it can be done by managed device framework when driver get un-binded. This reduces the code in error path and also need of .remove callback in some cases. Signed-off-by: Laxman Dewangan --- drivers/iio/inkern.c | 48

[PATCH 2/2] thermal: generic-adc: Add ADC based thermal sensor driver

2016-04-06 Thread Laxman Dewangan
for thermal sensor driver which read the sensor data through IIO framework which has ADC driver as HW driver. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> --- drivers/thermal/Kconfig | 10 ++ drivers/thermal/Makefile | 1 + drivers/thermal/thermal-g

[PATCH 1/2] thermal: generic-adc: Add DT binding for ADC based thermal sensor driver

2016-04-06 Thread Laxman Dewangan
binding doc for the adc based thermal sensor driver to detail the DT property and provide the example for how to use it. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> --- .../bindings/thermal/thermal-generic-adc.txt | 86 ++ 1 file changed, 86 insertions(+) creat

[PATCH 2/2] thermal: generic-adc: Add ADC based thermal sensor driver

2016-04-06 Thread Laxman Dewangan
for thermal sensor driver which read the sensor data through IIO framework which has ADC driver as HW driver. Signed-off-by: Laxman Dewangan --- drivers/thermal/Kconfig | 10 ++ drivers/thermal/Makefile | 1 + drivers/thermal/thermal-generic-adc.c | 208

[PATCH 1/2] thermal: generic-adc: Add DT binding for ADC based thermal sensor driver

2016-04-06 Thread Laxman Dewangan
binding doc for the adc based thermal sensor driver to detail the DT property and provide the example for how to use it. Signed-off-by: Laxman Dewangan --- .../bindings/thermal/thermal-generic-adc.txt | 86 ++ 1 file changed, 86 insertions(+) create mode 100644 Documentation

[PATCH 02/20] mfd: Add resource management devm_mfd_{add,remove}_devices

2016-04-05 Thread Laxman Dewangan
Add devm wrappers for the mfd_add_devices() and mfd_remove_devices() in the list of managed interfaces. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> --- Documentation/driver-model/devres.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/driver-model/devres.

[PATCH 03/20] mfd: act8945a: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Wenyou Yang <wenyou.y...@atmel.com> CC: Krzysztof Kozlowski <k.kozlow

[PATCH 02/20] mfd: Add resource management devm_mfd_{add,remove}_devices

2016-04-05 Thread Laxman Dewangan
Add devm wrappers for the mfd_add_devices() and mfd_remove_devices() in the list of managed interfaces. Signed-off-by: Laxman Dewangan --- Documentation/driver-model/devres.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver

[PATCH 03/20] mfd: act8945a: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Wenyou Yang CC: Krzysztof Kozlowski --- drivers/mfd/act8945a.c | 13 +++-- 1 file changed, 3

[PATCH 06/20] mfd: bcm590xx: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Matt Porter <mpor...@linaro.org> --- drivers/mfd/bcm590xx.c | 9 +

[PATCH 00/20] mfd: Add devm_ apis for mfd_add_devices and mfd_release_devices

2016-04-05 Thread Laxman Dewangan
This series add devm_ version of the APIs mfd_add_devices() and mfd_release_devices() and get rid of call for mfd_release_devices() some places and also remove the need of .remove callbacks as this is not needed. Laxman Dewangan (20): mfd: Add devm_ apis for mfd_add_devices

[PATCH 06/20] mfd: bcm590xx: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Matt Porter --- drivers/mfd/bcm590xx.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff

[PATCH 00/20] mfd: Add devm_ apis for mfd_add_devices and mfd_release_devices

2016-04-05 Thread Laxman Dewangan
This series add devm_ version of the APIs mfd_add_devices() and mfd_release_devices() and get rid of call for mfd_release_devices() some places and also remove the need of .remove callbacks as this is not needed. Laxman Dewangan (20): mfd: Add devm_ apis for mfd_add_devices

[PATCH 05/20] mfd: atmel-hlcdc: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Boris Brezillon <boris.brezil...@free-electrons.com> --- drivers/mfd/a

[PATCH 05/20] mfd: atmel-hlcdc: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Boris Brezillon --- drivers/mfd/atmel-hlcdc.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions

[PATCH 04/20] mfd: as3711: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Guennadi Liakhovetski <g.liakhovet...@gmx.de> --- drivers/mfd/a

[PATCH 12/20] mfd: rk808: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and remove the call of mfd_remove_devices() from .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Chris Zhong <z...@rock-chips.com> ---

[PATCH 13/20] mfd: rn5t618: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and remove the call of mfd_remove_devices() from .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Beniamino Galvani <b.galv...@gmail.com>

[PATCH 09/20] mfd: menf21bmc: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Andreas Werner <andreas.wer...@men.de> --- drivers/mfd/menf21bmc.c | 9

[PATCH 04/20] mfd: as3711: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Guennadi Liakhovetski --- drivers/mfd/as3711.c | 11 +-- 1 file changed, 1 insertion(+), 10

[PATCH 12/20] mfd: rk808: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and remove the call of mfd_remove_devices() from .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Chris Zhong --- drivers/mfd/rk808.c | 3 +-- 1 file changed, 1 insertion

[PATCH 13/20] mfd: rn5t618: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and remove the call of mfd_remove_devices() from .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Beniamino Galvani --- drivers/mfd/rn5t618.c | 3 +-- 1 file changed, 1

[PATCH 09/20] mfd: menf21bmc: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Andreas Werner --- drivers/mfd/menf21bmc.c | 9 + 1 file changed, 1 insertion(+), 8 deletions

[PATCH 08/20] mfd: lp3943: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Milo Kim <milo@ti.com> --- drivers/mfd/lp3943.c | 14 +++---

[PATCH 08/20] mfd: lp3943: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Milo Kim --- drivers/mfd/lp3943.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions

[PATCH 11/20] mfd: rdc321x: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Florian Fainelli <flor...@openwrt.org> --- drivers/mfd/rdc321x-south

[PATCH 07/20] mfd: hi6421-pmic: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Guodong Xu <guodong...@linaro.org> --- drivers/mfd/hi6421-pmic

[PATCH 11/20] mfd: rdc321x: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Florian Fainelli --- drivers/mfd/rdc321x-southbridge.c | 8 +--- 1 file changed, 1 insertion(+), 7

[PATCH 07/20] mfd: hi6421-pmic: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Guodong Xu --- drivers/mfd/hi6421-pmic-core.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions

[PATCH 15/20] mfd: sky81452: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Gyungoh Yoo <jack@skyworksinc.com> --- drivers/mfd/sky81452.c | 10 +

[PATCH 18/20] mfd: tps65217: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Tony Lindgren <t...@atomide.com> --- drivers/mfd/tps65217.c | 12 +---

[PATCH 15/20] mfd: sky81452: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Gyungoh Yoo --- drivers/mfd/sky81452.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions

[PATCH 18/20] mfd: tps65217: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Tony Lindgren --- drivers/mfd/tps65217.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions

[PATCH 17/20] mfd: tps6507x: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Todd Fischer <todd.fisc...@ridgerun.com> --- drivers/mfd/tps

[PATCH 19/20] mfd: tps65910: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and remove the call of mfd_remove_devices() from .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Tony Lindgren <t...@atomide.com> ---

[PATCH 17/20] mfd: tps6507x: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Todd Fischer --- drivers/mfd/tps6507x.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions

[PATCH 19/20] mfd: tps65910: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and remove the call of mfd_remove_devices() from .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Tony Lindgren --- drivers/mfd/tps65910.c | 3 +-- 1 file changed, 1

[PATCH 16/20] mfd: stw481x: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Linus Walleij <linus.wall...@linaro.org> --- drivers/mfd/stw481x.c | 9

[PATCH 14/20] mfd: rt5033: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Ingi Kim <ingi2@samsung.com> CC: Javier Martinez Canillas <jav...@

[PATCH 01/20] mfd: Add devm_ apis for mfd_add_devices and mfd_release_devices

2016-04-05 Thread Laxman Dewangan
Add device managed APIs devm_mfd_add_devices() and devm_mfd_remove_devices() for the APIs mfd_add_devices() and mfd_remove_devices(). This helps in reducing code in error path and sometimes removal of .remove callback for driver unbind. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.

[PATCH 20/20] mfd: wm8400: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: Mark Brown <broo...@kernel.org> CC: patc...@opensource.wolfsonmicro.com

[PATCH 16/20] mfd: stw481x: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Linus Walleij --- drivers/mfd/stw481x.c | 9 + 1 file changed, 1 insertion(+), 8 deletions

[PATCH 14/20] mfd: rt5033: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Ingi Kim CC: Javier Martinez Canillas --- drivers/mfd/rt5033.c | 10 +- 1 file changed, 1

[PATCH 01/20] mfd: Add devm_ apis for mfd_add_devices and mfd_release_devices

2016-04-05 Thread Laxman Dewangan
Add device managed APIs devm_mfd_add_devices() and devm_mfd_remove_devices() for the APIs mfd_add_devices() and mfd_remove_devices(). This helps in reducing code in error path and sometimes removal of .remove callback for driver unbind. Signed-off-by: Laxman Dewangan --- drivers/mfd/mfd-core.c

[PATCH 20/20] mfd: wm8400: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: Mark Brown CC: patc...@opensource.wolfsonmicro.com --- drivers/mfd/wm8400-core.c | 25

[PATCH 10/20] mfd: mt6397: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> CC: John Crispin <blo...@openwrt.org> CC: Javier Martinez Canillas <jav...@

[PATCH 10/20] mfd: mt6397: Use devm_mfd_add_devices() for mfd_device registration

2016-04-05 Thread Laxman Dewangan
Use devm_mfd_add_devices() for mfd devices registration and get rid of .remove callback to remove mfd devices. This is done by managed device framework. Signed-off-by: Laxman Dewangan CC: John Crispin CC: Javier Martinez Canillas --- drivers/mfd/mt6397-core.c | 12 ++-- 1 file changed

[PATCH V2] regulator: pwm: Try to avoid voltage error in duty cycle calculation

2016-04-05 Thread Laxman Dewangan
) * 1550)/155) = 100 and this is equivalent to 100mV and so final voltage is (80 + 10) = 90uV which is same as requested, Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com> Cc: Lee Jones <lee.jo...@linaro.org> --- For V1: This is the rework on

[PATCH V2] regulator: pwm: Try to avoid voltage error in duty cycle calculation

2016-04-05 Thread Laxman Dewangan
) * 1550)/155) = 100 and this is equivalent to 100mV and so final voltage is (80 + 10) = 90uV which is same as requested, Signed-off-by: Laxman Dewangan Cc: Lee Jones --- For V1: This is the rework on patch based on discussion in patch Re: [PATCH 4/5] regulator: pwm

Re: [PATCH 1/2] regulator: DT: Add support to scale ramp delay based on platform behavior

2016-04-05 Thread Laxman Dewangan
On Friday 01 April 2016 09:41 PM, Mark Brown wrote: * PGP Signed by an unknown key On Fri, Apr 01, 2016 at 12:45:21PM +0530, Laxman Dewangan wrote: On Friday 01 April 2016 02:09 AM, Mark Brown wrote: Is the error in the observed values a function of the capacitance that we can calcuate here

Re: [PATCH 1/2] regulator: DT: Add support to scale ramp delay based on platform behavior

2016-04-05 Thread Laxman Dewangan
On Friday 01 April 2016 09:41 PM, Mark Brown wrote: * PGP Signed by an unknown key On Fri, Apr 01, 2016 at 12:45:21PM +0530, Laxman Dewangan wrote: On Friday 01 April 2016 02:09 AM, Mark Brown wrote: Is the error in the observed values a function of the capacitance that we can calcuate here

Re: [PATCH] regulator: pwm: Try to avoid voltage error in duty cycle calculation

2016-04-03 Thread Laxman Dewangan
On Saturday 02 April 2016 10:23 PM, Mark Brown wrote: * PGP Signed by an unknown key On Fri, Apr 01, 2016 at 12:02:19PM +0530, Laxman Dewangan wrote: On Friday 01 April 2016 11:55 AM, kbuild test robot wrote: pwm-regulator.c:(.text+0x1728d4): undefined reference to `__umoddi3' pwm

Re: [PATCH] regulator: pwm: Try to avoid voltage error in duty cycle calculation

2016-04-03 Thread Laxman Dewangan
On Saturday 02 April 2016 10:23 PM, Mark Brown wrote: * PGP Signed by an unknown key On Fri, Apr 01, 2016 at 12:02:19PM +0530, Laxman Dewangan wrote: On Friday 01 April 2016 11:55 AM, kbuild test robot wrote: pwm-regulator.c:(.text+0x1728d4): undefined reference to `__umoddi3' pwm

Re: [PATCH 1/2] regulator: DT: Add support to scale ramp delay based on platform behavior

2016-04-01 Thread Laxman Dewangan
On Friday 01 April 2016 02:09 AM, Mark Brown wrote: * PGP Signed by an unknown key On Fri, Apr 01, 2016 at 01:18:23AM +0530, Laxman Dewangan wrote: On Friday 01 April 2016 12:52 AM, Mark Brown wrote: So as per above, it will be adjusted to 13.75mV/us (nearest higher side) for device

<    4   5   6   7   8   9   10   11   12   13   >