summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2022-11-02 03:29:32 -0700
committerMartin L Roth <gaumless@gmail.com>2022-11-10 15:08:05 +0000
commitb456a96361fd8f170b2c6ff17a8ce23c787e0d7c (patch)
tree0e38a36f565d21ac2dc5349288f199eddeb20060 /src/ec
parenta3148ca504b8a780cb46c42b2e9f539d3233f555 (diff)
ec/google/chromeec: Fix keyboard_backlight call
The EC_CMD_PWM_SET_KEYBOARD_BACKLIGHT command does not return data, so don't specify a result buffer. BUG=b:258126464 BRANCH=none TEST=none Change-Id: I5b9a0d228e187a9337498246a3b9ed8db07b95c7 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69368 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/google/chromeec/ec.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ec/google/chromeec/ec.c b/src/ec/google/chromeec/ec.c
index 1fa5906995..b609559f7a 100644
--- a/src/ec/google/chromeec/ec.c
+++ b/src/ec/google/chromeec/ec.c
@@ -77,20 +77,19 @@ int google_chromeec_kbbacklight(int percent)
struct ec_params_pwm_set_keyboard_backlight params = {
.percent = percent % 101,
};
- struct ec_response_pwm_get_keyboard_backlight resp = {};
struct chromeec_command cmd = {
.cmd_code = EC_CMD_PWM_SET_KEYBOARD_BACKLIGHT,
.cmd_version = 0,
.cmd_data_in = &params,
- .cmd_data_out = &resp,
+ .cmd_data_out = NULL,
.cmd_size_in = sizeof(params),
- .cmd_size_out = sizeof(resp),
+ .cmd_size_out = 0,
.cmd_dev_index = 0,
};
google_chromeec_command(&cmd);
- printk(BIOS_DEBUG, "Google Chrome set keyboard backlight: %x status (%x)\n",
- resp.percent, cmd.cmd_code);
+ printk(BIOS_DEBUG, "Google Chrome set keyboard backlight: status (%x)\n",
+ cmd.cmd_code);
return cmd.cmd_code;
}