]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
i2c: Hook up runtime PM support
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 2 Mar 2010 11:23:46 +0000 (12:23 +0100)
committerJean Delvare <khali@linux-fr.org>
Tue, 2 Mar 2010 11:23:46 +0000 (12:23 +0100)
commit6de468ae2df0ee6fbee668d946811638b57361f6
treec0b43c2d3bb8c89c012cbfeb185ff03ad3d86326
parent927ab2f80745ec26f1e83e6ca15a5b29e134c8e5
i2c: Hook up runtime PM support

Allow I2C drivers to make use of the runtime PM framework by adding
bus implementations of the runtime PM operations. These simply
immediately suspend when the device is idle. The runtime PM framework
provides drivers with off the shelf refcounts for enables and sysfs
control for managing runtime suspend from userspace so is useful even
without meaningful input from the bus.

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