From 0cfe09ac06e079c14bf61435c7b8ceac4177c855 Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Wed, 31 Aug 2022 18:58:44 +0200 Subject: [PATCH] Cleanup --- src/clevo_interfaces.h | 2 +- src/tuxedo_io/tuxedo_io.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clevo_interfaces.h b/src/clevo_interfaces.h index 0a32c72..50d327b 100644 --- a/src/clevo_interfaces.h +++ b/src/clevo_interfaces.h @@ -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; diff --git a/src/tuxedo_io/tuxedo_io.c b/src/tuxedo_io/tuxedo_io.c index 22f51e4..e7ec2ac 100644 --- a/src/tuxedo_io/tuxedo_io.c +++ b/src/tuxedo_io/tuxedo_io.c @@ -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; }