commit | 5ddc6d4e30f4e8701af661601ca07abdfc237996 | [log] [tgz] |
---|---|---|
author | Viresh Kumar <viresh.kumar@linaro.org> | Thu Jun 20 08:35:48 2019 +0530 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Wed Jun 26 11:41:04 2019 +0200 |
tree | 01e9bb5ab0c4177477d0cd3af4c77c9d8f03af61 | |
parent | 407d0fff22667598fe3602965f0e0bf78dabdca5 [diff] |
cpufreq: Use has_target() instead of !setpolicy For code consistency, use has_target() instead of !setpolicy everywhere, as it is already done at several places. Maybe we should also use "!has_target()" instead of "cpufreq_driver->setpolicy" where we need to check if the driver supports setpolicy, so to use only one expression for this kind of differentiation. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>