On Mon, Feb 15, 2016 at 2:17 PM, Laxman Dewangan <ldewangan@xxxxxxxxxx> wrote:
Add device managed APIs devm_gpiochip_add_data() andI like the looks of this.
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@xxxxxxxxxx>
One comment: you must also patch
Documentation/driver-model/devres.txt
Yes, I have planned for this to use this new API. This is just for getting review whether fine or not to have devm_* APIs so that I can make changes on rest of driver to use this new APIs.
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.