diff options
author | Edward O'Callaghan <quasisec@google.com> | 2022-08-12 21:27:41 +1000 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-10-10 04:20:13 +0000 |
commit | 053d319141db5954ab1ad34cb9db61983d238134 (patch) | |
tree | 65c59e38cf8d39bb4c914a3dca96f76bd7536e2f /udelay.c | |
parent | 5779452fccae5554f5b3637ed47717ae7874fe3f (diff) | |
download | flashrom-053d319141db5954ab1ad34cb9db61983d238134.tar.gz flashrom-053d319141db5954ab1ad34cb9db61983d238134.tar.bz2 flashrom-053d319141db5954ab1ad34cb9db61983d238134.zip |
flashrom.c: create is_internal_programmer() helper
As suggested by Angel Pons, add the function `is_internal_programmer`
to cut down on some pre-processor usage by moving it into the new
function.
The function then checks if the internal programmer is the
selected one. If the internal programmer is not built in, then it
just returns false.
Change-Id: I43243b990192077583a9a3a95d35844923d9c158
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/66684
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'udelay.c')
0 files changed, 0 insertions, 0 deletions