]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cpufreq: scpi: use new scpi_ops functions to remove duplicate code
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 27 Apr 2017 14:20:37 +0000 (15:20 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 5 Jun 2017 10:14:35 +0000 (11:14 +0100)
commitc0f2e21953324def9e2f8394406b557d7cb5af64
tree2412ddb8b0b7ed4999fd488c88930a027bddbfbc
parent45ca7df7c345465dbd2426a33012c9c33d27de62
cpufreq: scpi: use new scpi_ops functions to remove duplicate code

scpi_ops now provide APIs to get the transition_latency and to add
OPPs to the devices making those logic redundant here.

This patch makes use of those APIs and removes the redundant code in
this driver.

Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/cpufreq/scpi-cpufreq.c