summaryrefslogtreecommitdiff
path: root/.checkpatch.conf
diff options
context:
space:
mode:
authorAbel Briggs <abelbriggs1@hotmail.com>2022-04-14 22:08:41 -0500
committerPaul Fagerburg <pfagerburg@chromium.org>2022-06-03 15:28:00 +0000
commitc3bfbafda5c3241ff74ec1de3fbdc469af0e4ce0 (patch)
tree9699e3a19c106170050cab626c798b5d2ec7c43b /.checkpatch.conf
parent1f52edb093aef9b70ce10172bc8c759cdaa1c2ba (diff)
ec/acpi: Rework to reduce code duplication
- Move EC send/receive polling code to their own functions - Add named constants for poll timeouts and delay interval - Use human-readable timeout values - Add `send`/`recv` functions which support custom timeouts - Remove extra 10us delays between polling and performing a given transaction - Use constants from `ec.h` for standard EC command opcodes Tested on a Lenovo Edge E530, which takes similar code paths to the Lenovo Twist S230u. Change-Id: Ifda5c030ff81f1046be58aa1fcafdcf71a27cd41 Signed-off-by: Abel Briggs <abelbriggs1@hotmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/64012 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Diffstat (limited to '.checkpatch.conf')
0 files changed, 0 insertions, 0 deletions