diff options
| author | Sean Anderson <[email protected]> | 2021-02-05 09:38:56 -0500 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2021-02-26 15:30:55 +0100 |
| commit | 9f7bb2825b81680c0bc3cb4b0376e6a230501242 (patch) | |
| tree | d6ebad803137613c37508f340a22059a0bb9e366 /cmd | |
| parent | 59715754e1d1d9279f38d70df1c3c2949a5e5203 (diff) | |
part: Support getting whole disk from part_get_info_by_dev_and_name_or_num
This adds an option to part_get_info_by_dev_and_name_or_num to allow
callers to specify whether whole-disk partitions are fine.
Signed-off-by: Sean Anderson <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/ab_select.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/ab_select.c b/cmd/ab_select.c index 6298fcfb604..3e46663d6ea 100644 --- a/cmd/ab_select.c +++ b/cmd/ab_select.c @@ -22,7 +22,8 @@ static int do_ab_select(struct cmd_tbl *cmdtp, int flag, int argc, /* Lookup the "misc" partition from argv[2] and argv[3] */ if (part_get_info_by_dev_and_name_or_num(argv[2], argv[3], - &dev_desc, &part_info) < 0) { + &dev_desc, &part_info, + false) < 0) { return CMD_RET_FAILURE; } |
