OSDN Git Service

PM: runtime: Replace pm_runtime_callbacks_present()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 28 May 2020 14:45:14 +0000 (16:45 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 29 May 2020 16:03:12 +0000 (18:03 +0200)
commit9a7875461fd0427dc86e3a87e93bd5723679b8b1
treee818c1c943d1e438d18630b46dd5241af3efcd76
parent64c7d7ea22d86cacb65d0c097cc447bc0e6d8abd
PM: runtime: Replace pm_runtime_callbacks_present()

The name of pm_runtime_callbacks_present() is confusing, because
it suggests that the device has PM-runtime callbacks if 'true' is
returned by that function, but in fact that may not be the case,
so replace it with pm_runtime_has_no_callbacks() which is not
ambiguous.

No functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/base/power/sysfs.c
include/linux/pm_runtime.h