]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd5b028a30a5389a824b6885b499d4a7126ca2f44
tree038d6dc09e2e767280c2a061e2ff997bba43742d
parent9db9a689cfc39155c48b1f9243e16c56bf6bd728
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