aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/cros_ec.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/mfd/cros_ec.h b/include/linux/mfd/cros_ec.h
index 60c088055f3a..1f79f162abe4 100644
--- a/include/linux/mfd/cros_ec.h
+++ b/include/linux/mfd/cros_ec.h
@@ -143,6 +143,18 @@ int cros_ec_prepare_tx(struct cros_ec_device *ec_dev,
143 struct cros_ec_command *msg); 143 struct cros_ec_command *msg);
144 144
145/** 145/**
146 * cros_ec_check_result - Check ec_msg->result
147 *
148 * This is used by ChromeOS EC drivers to check the ec_msg->result for
149 * errors and to warn about them.
150 *
151 * @ec_dev: EC device
152 * @msg: Message to check
153 */
154int cros_ec_check_result(struct cros_ec_device *ec_dev,
155 struct cros_ec_command *msg);
156
157/**
146 * cros_ec_remove - Remove a ChromeOS EC 158 * cros_ec_remove - Remove a ChromeOS EC
147 * 159 *
148 * Call this to deregister a ChromeOS EC, then clean up any private data. 160 * Call this to deregister a ChromeOS EC, then clean up any private data.