From: Mark Brown Date: Fri, 14 Jan 2011 21:03:49 +0000 (+0100) Subject: i2c: Factor out runtime suspend checks from PM operations X-Git-Tag: v2.6.38-rc1~45^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d529de2994880d345d7588f92d5a426f63089ba3;p=pandora-kernel.git 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 Signed-off-by: Jean Delvare --- Reading git-diff-tree failed