devfreq: bwmon: Export symbols

Export symbols to fix the following modpost errors:

  ERROR: "bw_hwmon_sample_end" [drivers/devfreq/bimc-bwmon.ko] undefined!
  ERROR: "register_bw_hwmon" [drivers/devfreq/bimc-bwmon.ko] undefined!
  ERROR: "update_bw_hwmon" [drivers/devfreq/bimc-bwmon.ko] undefined!

Change-Id: Ic0dedbad2f49e98b415a2ded471b2c35b97157a8
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
This commit is contained in:
Jordan Crouse 2019-12-11 16:53:53 -07:00
commit 33ed58ae3c

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2013-2018, 2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2020, The Linux Foundation. All rights reserved.
*/
#define pr_fmt(fmt) "bw-hwmon: " fmt
@ -275,6 +275,7 @@ int bw_hwmon_sample_end(struct bw_hwmon *hwmon)
return wake;
}
EXPORT_SYMBOL(bw_hwmon_sample_end);
static unsigned long to_mbps_zone(struct hwmon_node *node, unsigned long mbps)
{
@ -514,6 +515,7 @@ int update_bw_hwmon(struct bw_hwmon *hwmon)
return 0;
}
EXPORT_SYMBOL(update_bw_hwmon);
static int start_monitor(struct devfreq *df, bool init)
{
@ -966,6 +968,7 @@ int register_bw_hwmon(struct device *dev, struct bw_hwmon *hwmon)
return ret;
}
EXPORT_SYMBOL(register_bw_hwmon);
MODULE_DESCRIPTION("HW monitor based dev DDR bandwidth voting driver");
MODULE_LICENSE("GPL v2");