i2c: Factor out runtime suspend checks from PM operations
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 14 Jan 2011 21:03:49 +0000 (22:03 +0100)
committerJean Delvare <khali@endymion.delvare>
Fri, 14 Jan 2011 21:03:49 +0000 (22:03 +0100)
commitd529de2994880d345d7588f92d5a426f63089ba3
tree038d6dc09e2e767280c2a061e2ff997bba43742d
parent5219bf884b6e2b54e734ca1799b6f0014bb2b4b7
i2c: Factor out runtime suspend checks from PM operations

When devices use dev_pm_ops the I2C API is implementing standard functionality
for integration with runtime PM and for checking for the presence of a per
device op. The PM core provides pm_generic_ functions implementing this
behaviour - use them to reduce coupling with future PM updates.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-core.c