]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: davinci: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
authorMinghao Chi <chi.minghao@zte.com.cn>
Thu, 14 Apr 2022 09:07:27 +0000 (09:07 +0000)
committerWolfram Sang <wsa@kernel.org>
Wed, 4 May 2022 20:40:35 +0000 (22:40 +0200)
commit8986da380d2b2d694fe3c10d4274899c81da5186
tree447ad1ec29fb37dab0b204318f4593767a662adc
parent38c353f9316e676054c15cd09c083fc98c6d438a
i2c: davinci: using pm_runtime_resume_and_get instead of pm_runtime_get_sync

Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Reviewed-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-davinci.c