Commit 256ab950 authored by Stephen Barber's avatar Stephen Barber Committed by Lee Jones

mfd: cros_ec: rev cros_ec_commands.h

Update cros_ec_commands.h to the latest version in the EC
firmware sources and add power domain and passthru commands.

Also, update lightbar to use new command names.
Signed-off-by: default avatarStephen Barber <smbarber@chromium.org>
Reviewed-by: default avatarRandall Spangler <rspangler@chromium.org>
Signed-off-by: default avatarJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Tested-by: default avatarHeiko Stuebner <heiko@sntech.de>
Reviewed-by: default avatarGwendal Grignou <gwendal@chromium.org>
Tested-by: default avatarGwendal Grignou <gwendal@chromium.org>
Acked-by: default avatarLee Jones <lee.jones@linaro.org>
Acked-by: default avatarOlof Johansson <olof@lixom.net>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent a8411784
...@@ -197,8 +197,8 @@ static ssize_t brightness_store(struct device *dev, ...@@ -197,8 +197,8 @@ static ssize_t brightness_store(struct device *dev,
return -ENOMEM; return -ENOMEM;
param = (struct ec_params_lightbar *)msg->data; param = (struct ec_params_lightbar *)msg->data;
param->cmd = LIGHTBAR_CMD_BRIGHTNESS; param->cmd = LIGHTBAR_CMD_SET_BRIGHTNESS;
param->brightness.num = val; param->set_brightness.num = val;
ret = lb_throttle(); ret = lb_throttle();
if (ret) if (ret)
goto exit; goto exit;
...@@ -253,11 +253,11 @@ static ssize_t led_rgb_store(struct device *dev, struct device_attribute *attr, ...@@ -253,11 +253,11 @@ static ssize_t led_rgb_store(struct device *dev, struct device_attribute *attr,
if (i == 4) { if (i == 4) {
param = (struct ec_params_lightbar *)msg->data; param = (struct ec_params_lightbar *)msg->data;
param->cmd = LIGHTBAR_CMD_RGB; param->cmd = LIGHTBAR_CMD_SET_RGB;
param->rgb.led = val[0]; param->set_rgb.led = val[0];
param->rgb.red = val[1]; param->set_rgb.red = val[1];
param->rgb.green = val[2]; param->set_rgb.green = val[2];
param->rgb.blue = val[3]; param->set_rgb.blue = val[3];
/* /*
* Throttle only the first of every four transactions, * Throttle only the first of every four transactions,
* so that the user can update all four LEDs at once. * so that the user can update all four LEDs at once.
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment