Signed-off-by: Hanna Hawa <hhhawa@xxxxxxxxxx>> The same comment about changelog. Place it in the correct position.
Change Log v2->v3:
- Add API to get the device pinctrl
- Make the i2c init recovery to get the device pins
Change Log v1->v2:
- set the rinfo->pinctrl to dev->pins->p instead calling
devm_pinctrl_get()
---
include/linux/pinctrl/devinfo.h | 11 +++++++++++
This should be a separate patch.
...
+static inline struct pinctrl *dev_pinctrl(struct device *dev)
+{
+ return dev->pins && dev->pins->p ? dev->pins->p : NULL;
GCC supports Elvis, you can use it to simplify the above.
+}
--
With Best Regards,
Andy Shevchenko