This commit is contained in:
Werner Sembach 2022-08-31 18:58:44 +02:00
parent fd9fc52510
commit 0cfe09ac06
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@
#define CLEVO_CMD_SET_KB_LEDS_SUB_RGB_BRIGHTNESS 0xF4000000
#define CLEVO_CMD_OPT 0x79
#define CLEVO_OPT_SUBCMD_SET_PERF_PROF 0x19
#define CLEVO_CMD_OPT_SUB_SET_PERF_PROF 0x19
struct clevo_interface_t {
char *string_id;

View file

@ -148,7 +148,7 @@ static long clevo_ioctl_interface(struct file *file, unsigned int cmd, unsigned
break;
case W_CL_PERF_PROFILE:
copy_result = copy_from_user(&argument, (int32_t *) arg, sizeof(argument));
clevo_arg = (CLEVO_OPT_SUBCMD_SET_PERF_PROF << 0x18) | (argument & 0xff);
clevo_arg = (CLEVO_CMD_OPT_SUB_SET_PERF_PROF << 0x18) | (argument & 0xff);
clevo_evaluate_method(CLEVO_CMD_OPT, clevo_arg, &result);
break;
}