spi: omap2-mcspi: Add calls for pinctrl state select
authorPascal Huerst <pascal.huerst@gmail.com>
Thu, 19 Nov 2015 15:18:28 +0000 (16:18 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 19 Nov 2015 17:48:52 +0000 (17:48 +0000)
commitbeca365565d8f8912dce67567f54ad4c71734843
tree35c602172af9af5ae80cbef37d6e6f9a347b7efb
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
spi: omap2-mcspi: 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 DT, these calls turn
to NOPs.

Signed-off-by: Pascal Huerst <pascal.huerst@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-omap2-mcspi.c