From b8cb3ed34b4398c70c822c1124b06d8ac2dfe1ae Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Wed, 24 Feb 2021 20:35:02 +0100 Subject: [PATCH] Bump version and add defines to check for minimum version with new ioctl --- src/tuxedo_io/tuxedo_io.c | 2 +- src/tuxedo_io/tuxedo_io_ioctl.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tuxedo_io/tuxedo_io.c b/src/tuxedo_io/tuxedo_io.c index 268410d..4fbd794 100644 --- a/src/tuxedo_io/tuxedo_io.c +++ b/src/tuxedo_io/tuxedo_io.c @@ -32,7 +32,7 @@ MODULE_DESCRIPTION("Hardware interface for TUXEDO laptops"); MODULE_AUTHOR("TUXEDO Computers GmbH "); -MODULE_VERSION("0.2.1"); +MODULE_VERSION("0.2.2"); MODULE_LICENSE("GPL"); MODULE_ALIAS_CLEVO_INTERFACES(); diff --git a/src/tuxedo_io/tuxedo_io_ioctl.h b/src/tuxedo_io/tuxedo_io_ioctl.h index c86edc3..6a8e61c 100644 --- a/src/tuxedo_io/tuxedo_io_ioctl.h +++ b/src/tuxedo_io/tuxedo_io_ioctl.h @@ -83,6 +83,10 @@ #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 MIN_MAJOR_W_UW_FANAUTO 0 +#define MIN_MINOR_W_UW_FANAUTO 2 +#define MIN_PATCH_W_UW_FANAUTO 2 #define W_UW_FANAUTO _IO(MAGIC_WRITE_UW, 0x14) // undo all previous calls of W_UW_FANSPEED and W_UW_FANSPEED2 #endif