Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1335495
| From | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/1] gpio: add devm_ apis for gpio_chip_add and remove |
| Date | 2016-02-16 16:10 +0100 |
| Message-ID | <r2Pqh-15t-3@gated-at.bofh.it> (permalink) |
| References | <r2rnX-1yI-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Feb 15, 2016 at 2:17 PM, Laxman Dewangan <ldewangan@nvidia.com> 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 unbind. > > Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> I like the looks of this. One comment: you must also patch Documentation/driver-model/devres.txt Will you also follow up with a massive patch set making use of this new API? I feel bad about merging an API if it's not used. Thanks for only supporting this for the new _data() function. Yours, Linus Walleij
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/1] gpio: add devm_ apis for gpio_chip_add and remove Laxman Dewangan <ldewangan@nvidia.com> - 2016-02-15 14:30 +0100
Re: [PATCH 1/1] gpio: add devm_ apis for gpio_chip_add and remove Linus Walleij <linus.walleij@linaro.org> - 2016-02-16 16:10 +0100
Re: [PATCH 1/1] gpio: add devm_ apis for gpio_chip_add and remove Laxman Dewangan <ldewangan@nvidia.com> - 2016-02-20 05:20 +0100
csiph-web