diff mbox

[2/9] mfd: dm355evm_msp: Switch to gpiochip_add_data()

Message ID 1459327689-12786-3-git-send-email-linus.walleij@linaro.org
State New
Headers show

Commit Message

Linus Walleij March 30, 2016, 8:48 a.m. UTC
We're planning to remove the gpiochip_add() function to swith
to gpiochip_add_data() with NULL for data argument.

Acked-by: Lee Jones <lee.jones@linaro.org>

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

---
 drivers/mfd/dm355evm_msp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.4.3

Comments

Lee Jones April 11, 2016, 11:48 a.m. UTC | #1
On Wed, 30 Mar 2016, Linus Walleij wrote:

> We're planning to remove the gpiochip_add() function to swith

> to gpiochip_add_data() with NULL for data argument.

> 

> Acked-by: Lee Jones <lee.jones@linaro.org>

> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

> ---

>  drivers/mfd/dm355evm_msp.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)


Applied, thanks.

> diff --git a/drivers/mfd/dm355evm_msp.c b/drivers/mfd/dm355evm_msp.c

> index ec4438ed2faf..d7d59f8d9d06 100644

> --- a/drivers/mfd/dm355evm_msp.c

> +++ b/drivers/mfd/dm355evm_msp.c

> @@ -260,7 +260,7 @@ static int add_children(struct i2c_client *client)

>  

>  	/* GPIO-ish stuff */

>  	dm355evm_msp_gpio.parent = &client->dev;

> -	status = gpiochip_add(&dm355evm_msp_gpio);

> +	status = gpiochip_add_data(&dm355evm_msp_gpio, NULL);

>  	if (status < 0)

>  		return status;

>  


-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
diff mbox

Patch

diff --git a/drivers/mfd/dm355evm_msp.c b/drivers/mfd/dm355evm_msp.c
index ec4438ed2faf..d7d59f8d9d06 100644
--- a/drivers/mfd/dm355evm_msp.c
+++ b/drivers/mfd/dm355evm_msp.c
@@ -260,7 +260,7 @@  static int add_children(struct i2c_client *client)
 
 	/* GPIO-ish stuff */
 	dm355evm_msp_gpio.parent = &client->dev;
-	status = gpiochip_add(&dm355evm_msp_gpio);
+	status = gpiochip_add_data(&dm355evm_msp_gpio, NULL);
 	if (status < 0)
 		return status;