Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge series "regulator: mcp16502: make lpm pin optional" from Claudiu Beznea <claudiu.beznea@microchip.com>:

Hi,

This patch makes the LPM pin as optional as this may be controlled
in the last phase of suspend procedure to decrease the power consumption
while suspended. Along w/ this update the MAINTAINERS entry for this
driver.

Thank you,
Claudiu Beznea

Claudiu Beznea (3):
dt-bindings: regulator: mcp16502: document lpm as optional
regulator: mcp16502: lpm pin can be optional on some platforms
MAINTAINERS: add myself as maintainer for mcp16502

Documentation/devicetree/bindings/regulator/mcp16502-regulator.txt | 3 ++-
MAINTAINERS | 4 ++--
drivers/regulator/mcp16502.c | 2 +-
3 files changed, 5 insertions(+), 4 deletions(-)

--
2.7.4

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

+5 -4
+2 -1
Documentation/devicetree/bindings/regulator/mcp16502-regulator.txt
··· 4 4 - compatible: "microchip,mcp16502" 5 5 - reg: I2C slave address 6 6 - lpm-gpios: GPIO for LPM pin. Note that this GPIO *must* remain high during 7 - suspend-to-ram, keeping the PMIC into HIBERNATE mode. 7 + suspend-to-ram, keeping the PMIC into HIBERNATE mode; this 8 + property is optional; 8 9 - regulators: A node that houses a sub-node for each regulator within 9 10 the device. Each sub-node is identified using the node's 10 11 name. The content of each sub-node is defined by the
+2 -2
MAINTAINERS
··· 11690 11690 F: include/video/atmel_lcdc.h 11691 11691 11692 11692 MICROCHIP MCP16502 PMIC DRIVER 11693 - M: Andrei Stefanescu <andrei.stefanescu@microchip.com> 11693 + M: Claudiu Beznea <claudiu.beznea@microchip.com> 11694 11694 L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) 11695 - S: Maintained 11695 + S: Supported 11696 11696 F: Documentation/devicetree/bindings/regulator/mcp16502-regulator.txt 11697 11697 F: drivers/regulator/mcp16502.c 11698 11698
+1 -1
drivers/regulator/mcp16502.c
··· 550 550 config.regmap = rmap; 551 551 config.driver_data = mcp; 552 552 553 - mcp->lpm = devm_gpiod_get(dev, "lpm", GPIOD_OUT_LOW); 553 + mcp->lpm = devm_gpiod_get_optional(dev, "lpm", GPIOD_OUT_LOW); 554 554 if (IS_ERR(mcp->lpm)) { 555 555 dev_err(dev, "failed to get lpm pin: %ld\n", PTR_ERR(mcp->lpm)); 556 556 return PTR_ERR(mcp->lpm);