Add resource managed version of i2c_new_dummy() andCan you please review?
i2c_unregister_device().
This helps in reducing the code size in error path and device
remove callbacks and making proper sequence for deallocations.
Signed-off-by: Laxman Dewangan <ldewangan@xxxxxxxxxx>
---
Changes from V1:
- Got review comment on similar change for pinctrl and taken care of
the same on this patch as V1 has similar issue.
- Add the new devm_ APIs in the Documentation/driver-model/devres.txt
- Will push the change for using this new APIs later once this is
applied as most of consumer for these APIs are in other subsystem like
MFD/RTC.