diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2018-06-06 11:39:55 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-06-07 13:11:42 -0700 |
commit | e04ee44c13f36523df3706fa36eafb4ad1563ff6 (patch) | |
tree | cf87c47e86bf8c5b98b6daf804d739a97275984c /include/charge_manager.h | |
parent | 24bae1b3c85945aa594fcb39c466673d8c969cef (diff) | |
download | chrome-ec-e04ee44c13f36523df3706fa36eafb4ad1563ff6.tar.gz |
charge_manager: Pass struct charge_port_info as const
This patch changes the prototype of charge_manager_update_charge
to mark 'struct charge_port_info *' as const.
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
BUG=none
BRANCH=none
TEST=buildall
Change-Id: I36211e75a51009d7f507897be85745f4ffbe797e
Reviewed-on: https://chromium-review.googlesource.com/1089570
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/charge_manager.h')
-rw-r--r-- | include/charge_manager.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/charge_manager.h b/include/charge_manager.h index e314b4cd3d..e3e42b5f22 100644 --- a/include/charge_manager.h +++ b/include/charge_manager.h @@ -63,7 +63,7 @@ struct charge_port_info { */ void charge_manager_update_charge(int supplier, int port, - struct charge_port_info *charge); + const struct charge_port_info *charge); /* Partner port dualrole capabilities */ enum dualrole_capabilities { |