diff options
author | Edward O'Callaghan <quasisec@google.com> | 2022-09-07 22:21:39 +1000 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2022-10-08 18:36:21 +0000 |
commit | 67d50156170b17e5bca460ab6e5648e2b11f061c (patch) | |
tree | f46620ea3f354e0ea623c2bcbb7d48fc05e78713 /linux_spi.c | |
parent | 7e8d17a8bd6e8239375666920b1824c4d24d4a01 (diff) | |
download | flashrom-git-67d50156170b17e5bca460ab6e5648e2b11f061c.tar.gz |
drivers/: Make 'fallback_{un}map' the default unless defined
Drop the explicit need to specify the default 'fallback_{un}map'
callback function pointer from the 'programmer_entry' struct.
This is a reasonable default for every other driver in the tree
with only a select few exceptions [atavia, serprog, dummyflasher
and internal].
Thus this simplifies driver development and paves way
to remove the 'programmer' global handle.
Change-Id: I5ea7bd68f7ae2cd4af9902ef07255ab6ce0bfdb3
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/67404
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'linux_spi.c')
-rw-r--r-- | linux_spi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/linux_spi.c b/linux_spi.c index b51d9e98..ee023045 100644 --- a/linux_spi.c +++ b/linux_spi.c @@ -251,6 +251,4 @@ const struct programmer_entry programmer_linux_spi = { .type = OTHER, .devs.note = "Device files /dev/spidev*.*\n", .init = linux_spi_init, - .map_flash_region = fallback_map, - .unmap_flash_region = fallback_unmap, }; |