Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f7c0080 authored by Ram Chandrasekar's avatar Ram Chandrasekar
Browse files

drivers: devfreq: Define devfreq_cooling_power outside of defconfig



The struct devfreq_cooling_power is defined only if the devfreq
driver's kernel config flag is defined. Drivers using the devfreq
cooling device APIs without having the devfreq kconfig flag enabled will
have compilation errors because the struct devfreq_cooling_power will
not be defined.

To avoid this, define the struct devfreq_cooling_power and make it
available even when devfreq kernel config flag is not enabled.

Change-Id: I39973c0bbd3f760dc9ce557e8f7308df7b564fad
Signed-off-by: default avatarRam Chandrasekar <rkumbako@codeaurora.org>
parent 9bf792d3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -20,8 +20,6 @@
#include <linux/devfreq.h>
#include <linux/thermal.h>

#ifdef CONFIG_DEVFREQ_THERMAL

/**
 * struct devfreq_cooling_power - Devfreq cooling power ops
 * @get_static_power:	Take voltage, in mV, and return the static power
@@ -43,6 +41,8 @@ struct devfreq_cooling_power {
	unsigned long dyn_power_coeff;
};

#ifdef CONFIG_DEVFREQ_THERMAL

struct thermal_cooling_device *
of_devfreq_cooling_register_power(struct device_node *np, struct devfreq *df,
				  struct devfreq_cooling_power *dfc_power);