summaryrefslogtreecommitdiff
path: root/hwmon.h
diff options
context:
space:
mode:
Diffstat (limited to 'hwmon.h')
-rw-r--r--hwmon.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/hwmon.h b/hwmon.h
new file mode 100644
index 0000000..73bc5a1
--- /dev/null
+++ b/hwmon.h
@@ -0,0 +1,20 @@
+/*
+ * Copyright (C) 2016 Bjørn Mork <bjorn@mork.no>
+ *
+ * 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.
+ */
+
+#ifndef _MWL_HWMON_H_
+#define _MWL_HWMON_H_
+
+#if IS_ENABLED(CONFIG_HWMON)
+int mwl_hwmon_register(struct ieee80211_hw *hw);
+void mwl_hwmon_unregister(struct ieee80211_hw *hw);
+#else
+static inline int mwl_hwmon_register(struct ieee80211_hw *hw) { return 0; }
+static inline void mwl_hwmon_unregister(struct ieee80211_hw *hw) {}
+#endif
+
+#endif /* _MWL_HWMON_H_ */