More specific name for sub command

This commit is contained in:
Werner Sembach 2022-08-31 11:04:51 +02:00
parent 6d1f210db4
commit fd9fc52510
2 changed files with 6 additions and 6 deletions

View file

@ -58,7 +58,7 @@
#define CLEVO_CMD_SET_KB_LEDS_SUB_RGB_ZONE_1 0xF1000000 // 3-zone RGB center #define CLEVO_CMD_SET_KB_LEDS_SUB_RGB_ZONE_1 0xF1000000 // 3-zone RGB center
#define CLEVO_CMD_SET_KB_LEDS_SUB_RGB_ZONE_2 0xF2000000 // 3-Zone RGB right #define CLEVO_CMD_SET_KB_LEDS_SUB_RGB_ZONE_2 0xF2000000 // 3-Zone RGB right
#define CLEVO_CMD_SET_KB_LEDS_SUB_RGB_ZONE_3 0xF3000000 // Unused on all known Clevo devices #define CLEVO_CMD_SET_KB_LEDS_SUB_RGB_ZONE_3 0xF3000000 // Unused on all known Clevo devices
#define CLEVO_CMD_SET_KB_LEDS_SUB_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_OPT_SUBCMD_SET_PERF_PROF 0x19

View file

@ -65,7 +65,7 @@ static int clevo_evaluate_set_brightness(u8 brightness)
{ {
pr_debug("Set brightness on %d\n", brightness); pr_debug("Set brightness on %d\n", brightness);
return clevo_evaluate_method (CLEVO_CMD_SET_KB_LEDS, 0xF4000000 | brightness, NULL); return clevo_evaluate_method (CLEVO_CMD_SET_KB_LEDS, CLEVO_CMD_SET_KB_LEDS_SUB_RGB_BRIGHTNESS | brightness, NULL);
} }
static int clevo_evaluate_set_color(u32 zone, u32 color) static int clevo_evaluate_set_color(u32 zone, u32 color)