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

Commit 38a628d4 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

PM /devfreq: Fix function prototype



Replace #ifdef with IS_ENABLED to make sure that the memlat prototypes
are available for a module build.

Fixes: a4e0d26f ("PM / devfreq: Introduce a memory-latency governor")
Change-Id: Ic0dedbade40e23bb148bbb9117c4a9b63e419111
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 655e48c3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2015-2017, 2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2017, 2019-2020, The Linux Foundation. All rights reserved.
 */

#ifndef _GOVERNOR_MEMLAT_H
@@ -68,7 +68,7 @@ struct memlat_hwmon {
	bool			should_ignore_df_monitor;
};

#ifdef CONFIG_DEVFREQ_GOV_MEMLAT
#if IS_ENABLED(CONFIG_DEVFREQ_GOV_MEMLAT)
int register_memlat(struct device *dev, struct memlat_hwmon *hw);
int register_compute(struct device *dev, struct memlat_hwmon *hw);
int update_memlat(struct memlat_hwmon *hw);