OSDN Git Service

i2c: img-scb: Add runtime PM
authorEd Blake <ed.blake@sondrel.com>
Sat, 28 Oct 2017 11:44:34 +0000 (12:44 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 28 Oct 2017 12:03:45 +0000 (14:03 +0200)
commit93222bd9b966105f43418fd336654ad10045783a
tree600a399d2268f6bca3baefa0ad157645b6f73577
parent750bd8b990856ec89a3af5836c7915ea6e2dd712
i2c: img-scb: Add runtime PM

The i2c-img-scb driver already dynamically enables / disables clocks to
save power, but doesn't use the runtime PM framework. Convert the
driver to use runtime PM, so that dynamic clock management will be
disabled when runtime PM is disabled, and so that autosuspend can be
used to avoid unnecessarily disabling and re-enabling clocks repeatedly
during a sequence of transactions.

Signed-off-by: Ed Blake <ed.blake@sondrel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-img-scb.c