lkml.org 
[lkml]   [2012]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH V1 2/2] mfd: rc5t583: Initialize gpio during initialization.
Date
Initializing gpios of the device RICOH's PMIC RC5T583
during device initialization. This device support 8 gpios
which can be access through gpio library.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
---
drivers/mfd/Kconfig | 1 +
drivers/mfd/rc5t583.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index 29f463c..7155d5f 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -864,6 +864,7 @@ config MFD_RC5T583
depends on I2C=y && GENERIC_HARDIRQS
select MFD_CORE
select REGMAP_I2C
+ select GPIO_RC5T583
help
Select this option to get support for the RICOH583 Power
Management system device.
diff --git a/drivers/mfd/rc5t583.c b/drivers/mfd/rc5t583.c
index 99ef944..a0c9e61 100644
--- a/drivers/mfd/rc5t583.c
+++ b/drivers/mfd/rc5t583.c
@@ -331,6 +331,7 @@ static int __devinit rc5t583_i2c_probe(struct i2c_client *i2c,
goto err_add_devs;
}

+ rc5t583_gpio_init(rc5t583, pdata);
return 0;

err_add_devs:
--
1.7.1.1


\
 
 \ /
  Last update: 2012-04-04 15:17    [W:0.058 / U:0.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site