i2c: omap: Add calls for pinctrl state select
authorPascal Huerst <pascal.huerst@gmail.com>
Wed, 6 May 2015 13:07:04 +0000 (15:07 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 12 May 2015 15:46:26 +0000 (17:46 +0200)
commit096ea30c91b521c77964ee8c214f7ce3b9d08e7b
treeb11971048af504cfbdb22accc9f87a559dfcbd5f
parent7e5cd69a9152c70985ebf820e357da59dfa8f152
i2c: omap: Add calls for pinctrl state select

This adds calls to pinctrl subsystem in order to switch pin states
on suspend/resume if you provide a "sleep" state in DT.

If no "sleep" state is provided in the DT, these calls turn
to NOPs, so we don't need error checking here.

Signed-off-by: Pascal Huerst <pascal.huerst@gmail.com>
Reviewed-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-omap.c