diff options
Diffstat (limited to 'hwmon.h')
-rw-r--r-- | hwmon.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +/* + * Copyright (C) 2016 Bjørn Mork <bjorn@mork.no> + */ + +#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_ */ |