diff options
author | Bill Richardson <wfrichar@chromium.org> | 2015-05-29 14:48:06 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-05-29 23:58:10 +0000 |
commit | 1ade8e02a7379732683e34b5cd71acfb2f1685ce (patch) | |
tree | 024ef38e75d3602c00c156828d7dc6fea0cffe4b /README | |
parent | 3c2be1a44089e4ecffd8a6462583fc276ad76790 (diff) | |
download | chrome-ec-1ade8e02a7379732683e34b5cd71acfb2f1685ce.tar.gz |
Cr50: Use USB structs instead of byte arrays for readability
The USB spec mandates that all structs are little-endian over the
wire. Since we're a little-endian architecture (and the code
we're changing is intentionally chip-specific), we can just cast
the hardware buffer into the correct struct. This makes the code
easier to read and understand.
BUG=none
BRANCH=none
TEST=make buildall
Change-Id: Ib2d3b04f4db1a531cb3f5ada1a2e6ee82e8a23aa
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/274130
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions