mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Cleanup
This commit is contained in:
parent
fd9fc52510
commit
0cfe09ac06
|
@ -61,7 +61,7 @@
|
||||||
#define CLEVO_CMD_SET_KB_LEDS_SUB_RGB_BRIGHTNESS 0xF4000000
|
#define CLEVO_CMD_SET_KB_LEDS_SUB_RGB_BRIGHTNESS 0xF4000000
|
||||||
|
|
||||||
#define CLEVO_CMD_OPT 0x79
|
#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 {
|
struct clevo_interface_t {
|
||||||
char *string_id;
|
char *string_id;
|
||||||
|
|
|
@ -148,7 +148,7 @@ static long clevo_ioctl_interface(struct file *file, unsigned int cmd, unsigned
|
||||||
break;
|
break;
|
||||||
case W_CL_PERF_PROFILE:
|
case W_CL_PERF_PROFILE:
|
||||||
copy_result = copy_from_user(&argument, (int32_t *) arg, sizeof(argument));
|
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);
|
clevo_evaluate_method(CLEVO_CMD_OPT, clevo_arg, &result);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue