i2c: i801: Don't restore config registers on runtime PM
authorJean Delvare <jdelvare@suse.de>
Wed, 25 Apr 2018 09:53:40 +0000 (11:53 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 30 Apr 2018 08:39:28 +0000 (10:39 +0200)
commita9c8088c7988e3a8a364cac9c26eba9ee2ea6153
treeb33489a25d437d1d4a196ebc5222e4088e98dc31
parente8f39e9fc0e0b7bce24922da925af820bacb8ef8
i2c: i801: Don't restore config registers on runtime PM

Restoring configuration registers is only needed when we hand control
to the firmware. This is never the case with runtime power
management. The device will autosuspend whenever not used, so avoid
useless register writes by defining suspend/resume only, and not
runtime_suspend/runtime_resume.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-i801.c