mfd: dm355evm_msp: Switch to gpiochip_add_data()
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 30 Mar 2016 08:48:02 +0000 (10:48 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 19 Apr 2016 06:58:16 +0000 (07:58 +0100)
We're planning to remove the gpiochip_add() function to swith
to gpiochip_add_data() with NULL for data argument.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/dm355evm_msp.c

index ec4438ed2fafd73415b3efb40b131e587ddbf45a..d7d59f8d9d06ea4f499b0953bd496658fbc0d18b 100644 (file)
@@ -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;