diff --git a/src/tuxedo_io/tongfang_wmi.h b/src/tuxedo_io/tongfang_wmi.h
index 1da271e..c19bc9c 100644
--- a/src/tuxedo_io/tongfang_wmi.h
+++ b/src/tuxedo_io/tongfang_wmi.h
@@ -16,6 +16,9 @@
* You should have received a copy of the GNU General Public License
* along with this software. If not, see .
*/
+#ifndef TONGFANG_WMI_H
+#define TONGFANG_WMI_H
+
#include
#include
#include
@@ -327,7 +330,7 @@ static u32 uw_set_fan(u32 fan_index, u8 fan_speed)
return 0;
}
-static u32 uw_set_fan_auto()
+static u32 uw_set_fan_auto(void)
{
u8 reg_high = 0x18;
u32 i;
@@ -351,3 +354,5 @@ static u32 uw_set_fan_auto()
return 0;
}
+
+#endif
diff --git a/src/tuxedo_io/tuxedo_io_ioctl.h b/src/tuxedo_io/tuxedo_io_ioctl.h
index 1af3ae4..c86edc3 100644
--- a/src/tuxedo_io/tuxedo_io_ioctl.h
+++ b/src/tuxedo_io/tuxedo_io_ioctl.h
@@ -83,6 +83,6 @@
#define W_UW_FANSPEED2 _IOW(MAGIC_WRITE_UW, 0x11, int32_t*)
#define W_UW_MODE _IOW(MAGIC_WRITE_UW, 0x12, int32_t*)
#define W_UW_MODE_ENABLE _IOW(MAGIC_WRITE_UW, 0x13, int32_t*)
-#define W_UW_FANAUTO _IOW(MAGIC_WRITE_UW, 0x14) // undo all previous calls of W_UW_FANSPEED and W_UW_FANSPEED2
+#define W_UW_FANAUTO _IO(MAGIC_WRITE_UW, 0x14) // undo all previous calls of W_UW_FANSPEED and W_UW_FANSPEED2
#endif