diff options
author | Jes B. Klinke <jbk@chromium.org> | 2023-03-19 20:19:33 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-03-28 22:01:27 +0000 |
commit | 3d67ca20c4432a7258d4710c0be07d344998c992 (patch) | |
tree | 1d716eb70ba3e9a58e2944bc2170db5b53a59c2b /test/button.tasklist | |
parent | 625d268fbd803a8af8d65f38aa60ec5d910feb69 (diff) | |
download | chrome-ec-3d67ca20c4432a7258d4710c0be07d344998c992.tar.gz |
chip/stm32: Eliminate support for multiple USB->SPI instances
For some reason, all methods in usb_spi.c pass along pointers to config
and state, as if prepared to have multiple USB interfaces each
implementing their own instance of the SPI->USB bridge protocol. Doing
so would make little sense, as a single instance is already able to
manipulate multiple SPI busses.
This CL eliminates the pointer parameters, for a tiny performance
improvement, and code simplification.
BUG=b:273601311
TEST=none
Change-Id: Ifbfdb18b4a2ba656732e4eb143de9f678416067a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4352128
Reviewed-by: Brian Nemec <bnemec@google.com>
Tested-by: Jes Klinke <jbk@chromium.org>
Commit-Queue: Jes Klinke <jbk@chromium.org>
Diffstat (limited to 'test/button.tasklist')
0 files changed, 0 insertions, 0 deletions