mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +02:00
flashrom.c: Make {read,write}_buf_from_include_args() public
This allows for moving all the do_*() helper functions use for the cli from flashrom.c within static local functions in cli_classic.c BUG=b:208132085 TEST=`make` Change-Id: Ia0abec655a682ca449d0e8ba620886a2d616b86d Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/60069 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
This commit is contained in:

committed by
Edward O'Callaghan

parent
9413faa7cc
commit
103b139cf7
@ -931,7 +931,7 @@ out:
|
||||
* @param buf Chip-sized buffer to write data to
|
||||
* @return 0 on success
|
||||
*/
|
||||
static int read_buf_from_include_args(const struct flashctx *const flash,
|
||||
int read_buf_from_include_args(const struct flashctx *const flash,
|
||||
unsigned char *buf)
|
||||
{
|
||||
const struct flashrom_layout *const layout = get_layout(flash);
|
||||
@ -1028,7 +1028,7 @@ out:
|
||||
* @param buf Chip-sized buffer to read data from
|
||||
* @return 0 on success
|
||||
*/
|
||||
static int write_buf_to_include_args(const struct flashctx *const flash,
|
||||
int write_buf_to_include_args(const struct flashctx *const flash,
|
||||
unsigned char *buf)
|
||||
{
|
||||
const struct flashrom_layout *const layout = get_layout(flash);
|
||||
|
Reference in New Issue
Block a user