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

Commit bb69facb authored by Lukasz Luba's avatar Lukasz Luba Committed by Sharat Masetty
Browse files

devfreq_cooling: make the structs devfreq_cooling_xxx visible for all



Currently the protection #ifdef CONFIG_DEVFREQ_THERMAL cuts the needed
structures devfreq_cooling_ops and devfreq_cooling_device.
The functions which are supposed to provide the empty implementation complain
about unknown structures.
Similar solution is present in include/linux/devfreq.h.

Change-Id: Iacf42ca76fe63ca8758ca62e4a93b974f2b15cd1
Reviewed-by: default avatarØrjan Eide <orjan.eide@arm.com>
Signed-off-by: default avatarLukasz Luba <lukasz.luba@arm.com>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
Git-commit: 1cea4e7776b7e9096b696eeb66364f51a8d321ec
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarFelix Xiong <xayang@codeaurora.org>
Signed-off-by: default avatarVenkateswara Rao Tadikonda <vtadik@codeaurora.org>
Signed-off-by: default avatarSharat Masetty <smasetty@codeaurora.org>
parent 9746de41
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -4,6 +4,8 @@
 *
 * Copyright (C) 2014-2015 ARM Limited
 *
 * Copyright (c) 2018 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
@@ -20,7 +22,6 @@
#include <linux/devfreq.h>
#include <linux/thermal.h>

#ifdef CONFIG_DEVFREQ_THERMAL

/**
 * struct devfreq_cooling_power - Devfreq cooling power ops
@@ -43,6 +44,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);