mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
More specific name for sub command
This commit is contained in:
parent
6d1f210db4
commit
fd9fc52510
|
@ -54,11 +54,11 @@
|
||||||
|
|
||||||
#define CLEVO_CMD_SET_EVENTS_ENABLED 0x46
|
#define CLEVO_CMD_SET_EVENTS_ENABLED 0x46
|
||||||
|
|
||||||
#define CLEVO_CMD_SET_KB_LEDS_SUB_RGB_ZONE_0 0xF0000000 // 1-zone RGB and 3-zone RGB left
|
#define CLEVO_CMD_SET_KB_LEDS_SUB_RGB_ZONE_0 0xF0000000 // 1-zone RGB and 3-zone RGB left
|
||||||
#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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue