diff --git a/src/tuxedo_io/tuxedo_io.c b/src/tuxedo_io/tuxedo_io.c index c8f087c..71edfcf 100644 --- a/src/tuxedo_io/tuxedo_io.c +++ b/src/tuxedo_io/tuxedo_io.c @@ -358,7 +358,7 @@ static long uniwill_ioctl_interface(struct file *file, unsigned int cmd, unsigne result = byte_data; copy_result = copy_to_user((void *) arg, &result, sizeof(result)); break; - case R_UW_FANS_OFF_POSSIBLE: + case R_UW_FANS_OFF_AVAILABLE: result = has_universal_ec_fan_control(); if (result == 1) { result = 0; @@ -368,7 +368,7 @@ static long uniwill_ioctl_interface(struct file *file, unsigned int cmd, unsigne } copy_result = copy_to_user((void *) arg, &result, sizeof(result)); break; - case R_UW_FANSPEED_MIN: + case R_UW_FANS_MIN_SPEED: result = has_universal_ec_fan_control(); if (result == 1) { result = 20; diff --git a/src/tuxedo_io/tuxedo_io_ioctl.h b/src/tuxedo_io/tuxedo_io_ioctl.h index a829753..d506232 100644 --- a/src/tuxedo_io/tuxedo_io_ioctl.h +++ b/src/tuxedo_io/tuxedo_io_ioctl.h @@ -79,8 +79,8 @@ #define R_UW_MODE _IOR(MAGIC_READ_UW, 0x14, int32_t*) #define R_UW_MODE_ENABLE _IOR(MAGIC_READ_UW, 0x15, int32_t*) -#define R_UW_FANS_OFF_POSSIBLE _IOR(MAGIC_READ_UW, 0x16, int32_t*) -#define R_UW_FANSPEED_MIN _IOR(MAGIC_READ_UW, 0x17, int32_t*) +#define R_UW_FANS_OFF_AVAILABLE _IOR(MAGIC_READ_UW, 0x16, int32_t*) +#define R_UW_FANS_MIN_SPEED _IOR(MAGIC_READ_UW, 0x17, int32_t*) // Write #define W_UW_FANSPEED _IOW(MAGIC_WRITE_UW, 0x10, int32_t*)