Re: [PATCH 1/1] gpio: add devm_ apis for gpio_chip_add and remove

2016-02-19 Thread Laxman Dewangan
On Tuesday 16 February 2016 08:33 PM, Linus Walleij wrote: On Mon, Feb 15, 2016 at 2:17 PM, Laxman Dewangan wrote: Add device managed APIs devm_gpiochip_add_data() and devm_gpiochip_remove() for the APIs gpiochip_add_data() and gpiochip_remove(). This helps in reducing

Re: [PATCH 1/1] gpio: add devm_ apis for gpio_chip_add and remove

2016-02-19 Thread Laxman Dewangan
On Tuesday 16 February 2016 08:33 PM, Linus Walleij wrote: On Mon, Feb 15, 2016 at 2:17 PM, Laxman Dewangan wrote: Add device managed APIs devm_gpiochip_add_data() and devm_gpiochip_remove() for the APIs gpiochip_add_data() and gpiochip_remove(). This helps in reducing code in error path

Re: [PATCH 1/1] gpio: add devm_ apis for gpio_chip_add and remove

2016-02-16 Thread Linus Walleij
On Mon, Feb 15, 2016 at 2:17 PM, Laxman Dewangan wrote: > Add device managed APIs devm_gpiochip_add_data() and > devm_gpiochip_remove() for the APIs gpiochip_add_data() > and gpiochip_remove(). > > This helps in reducing code in error path and sometimes > removal of .remove

Re: [PATCH 1/1] gpio: add devm_ apis for gpio_chip_add and remove

2016-02-16 Thread Linus Walleij
On Mon, Feb 15, 2016 at 2:17 PM, Laxman Dewangan wrote: > Add device managed APIs devm_gpiochip_add_data() and > devm_gpiochip_remove() for the APIs gpiochip_add_data() > and gpiochip_remove(). > > This helps in reducing code in error path and sometimes > removal of .remove callback for driver

[PATCH 1/1] gpio: add devm_ apis for gpio_chip_add and remove

2016-02-15 Thread Laxman Dewangan
Add device managed APIs devm_gpiochip_add_data() and devm_gpiochip_remove() for the APIs gpiochip_add_data() and gpiochip_remove(). This helps in reducing code in error path and sometimes removal of .remove callback for driver unbind. Signed-off-by: Laxman Dewangan ---

[PATCH 1/1] gpio: add devm_ apis for gpio_chip_add and remove

2016-02-15 Thread Laxman Dewangan
Add device managed APIs devm_gpiochip_add_data() and devm_gpiochip_remove() for the APIs gpiochip_add_data() and gpiochip_remove(). This helps in reducing code in error path and sometimes removal of .remove callback for driver unbind. Signed-off-by: Laxman Dewangan --- drivers/gpio/gpiolib.c