mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Fix define names
This commit is contained in:
parent
44f7fd0151
commit
a8b3cb6dc3
|
@ -358,7 +358,7 @@ static long uniwill_ioctl_interface(struct file *file, unsigned int cmd, unsigne
|
||||||
result = byte_data;
|
result = byte_data;
|
||||||
copy_result = copy_to_user((void *) arg, &result, sizeof(result));
|
copy_result = copy_to_user((void *) arg, &result, sizeof(result));
|
||||||
break;
|
break;
|
||||||
case R_UW_FANS_OFF_POSSIBLE:
|
case R_UW_FANS_OFF_AVAILABLE:
|
||||||
result = has_universal_ec_fan_control();
|
result = has_universal_ec_fan_control();
|
||||||
if (result == 1) {
|
if (result == 1) {
|
||||||
result = 0;
|
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));
|
copy_result = copy_to_user((void *) arg, &result, sizeof(result));
|
||||||
break;
|
break;
|
||||||
case R_UW_FANSPEED_MIN:
|
case R_UW_FANS_MIN_SPEED:
|
||||||
result = has_universal_ec_fan_control();
|
result = has_universal_ec_fan_control();
|
||||||
if (result == 1) {
|
if (result == 1) {
|
||||||
result = 20;
|
result = 20;
|
||||||
|
|
|
@ -79,8 +79,8 @@
|
||||||
|
|
||||||
#define R_UW_MODE _IOR(MAGIC_READ_UW, 0x14, int32_t*)
|
#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_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_FANS_OFF_AVAILABLE _IOR(MAGIC_READ_UW, 0x16, int32_t*)
|
||||||
#define R_UW_FANSPEED_MIN _IOR(MAGIC_READ_UW, 0x17, int32_t*)
|
#define R_UW_FANS_MIN_SPEED _IOR(MAGIC_READ_UW, 0x17, int32_t*)
|
||||||
|
|
||||||
// Write
|
// Write
|
||||||
#define W_UW_FANSPEED _IOW(MAGIC_WRITE_UW, 0x10, int32_t*)
|
#define W_UW_FANSPEED _IOW(MAGIC_WRITE_UW, 0x10, int32_t*)
|
||||||
|
|
Loading…
Reference in a new issue