From: Patrice Chotard Date: Thu, 24 Jan 2013 08:47:22 +0000 (+0100) Subject: i2c: nomadik: adopt pinctrl support X-Git-Tag: v3.9-rc1~75^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24e9e157d5197e469a414d0f52ce04e8b539a715;p=pandora-kernel.git i2c: nomadik: adopt pinctrl support Amend the I2C nomadik pin controller to optionally take a pin control handle and set the state of the pins to: - "default" on boot, resume and before performing an i2c transfer - "idle" after initial default, after resume default, and after each i2c xfer - "sleep" on suspend() This should make it possible to optimize energy usage for the pins both for the suspend/resume cycle, and for runtime cases inbetween I2C transfers. Signed-off-by: Patrice Chotard Signed-off-by: Linus Walleij [wsa: fixed braces on one else-branch] Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed