mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
Clean up exported Mtd* functions
A lot of functions were added some time ago, nominally to support keeping the firmware in an MTD device that wasn't formatted with the GPT headers. That work was never completed, so these functions aren't used anywhere. We may want to resurrect this work at some future point. Until then, this CL just moves some of the functions into an "unused" file. BUG=chromium:231567 BRANCH=ToT TEST=manual All tests pass, all firmware and external repos build. Change-Id: I420dd52d1cea0418cedf2f8e834c61145915f20c Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/207037 Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
782990277a
commit
18e03706df
@@ -9,7 +9,7 @@
|
||||
#include "cgptlib_internal.h"
|
||||
#include "vboot_host.h"
|
||||
|
||||
int GptCreate(struct drive *drive, CgptCreateParams *params) {
|
||||
static int GptCreate(struct drive *drive, CgptCreateParams *params) {
|
||||
// Erase the data
|
||||
memset(drive->gpt.primary_header, 0,
|
||||
drive->gpt.sector_bytes * GPT_HEADER_SECTOR);
|
||||
@@ -50,7 +50,7 @@ int GptCreate(struct drive *drive, CgptCreateParams *params) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int MtdCreate(struct drive *drive, CgptCreateParams *params) {
|
||||
static int MtdCreate(struct drive *drive, CgptCreateParams *params) {
|
||||
MtdDiskLayout *h = &drive->mtd.primary;
|
||||
memset(h, 0, sizeof(*h));
|
||||
drive->mtd.modified = 1;
|
||||
|
||||
Reference in New Issue
Block a user