From 7d07b3ae8ddad407913c5301877e694430a3263f Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 23 Nov 2023 08:24:31 +0000
Subject: [PATCH] add build kerneldeb
---
kernel/drivers/soc/rockchip/flash_vendor_storage.c | 25 ++-----------------------
1 files changed, 2 insertions(+), 23 deletions(-)
diff --git a/kernel/drivers/soc/rockchip/flash_vendor_storage.c b/kernel/drivers/soc/rockchip/flash_vendor_storage.c
index 831f7b0..51b83b8 100644
--- a/kernel/drivers/soc/rockchip/flash_vendor_storage.c
+++ b/kernel/drivers/soc/rockchip/flash_vendor_storage.c
@@ -23,34 +23,13 @@
#define DLOG(x...)
#endif
-struct vendor_item {
- u16 id;
- u16 offset;
- u16 size;
- u16 flag;
-};
-
#define FLASH_VENDOR_PART_START 8
-#define FLASH_VENDOR_PART_SIZE 8
#define FLASH_VENDOR_PART_NUM 4
-#define FLASH_VENDOR_TAG 0x524B5644
-
-struct tag_vendor_info {
- u32 tag;
- u32 version;
- u16 next_index;
- u16 item_num;
- u16 free_offset;
- u16 free_size;
- struct vendor_item item[62]; /* 62 * 8 */
- u8 data[FLASH_VENDOR_PART_SIZE * 512 - 512 - 8];
- u32 hash;
- u32 version2;
-};
+#define FLASH_VENDOR_TAG VENDOR_HEAD_TAG
static int (*_flash_read)(u32 sec, u32 n_sec, void *p_data);
static int (*_flash_write)(u32 sec, u32 n_sec, void *p_data);
-static struct tag_vendor_info *g_vendor;
+static struct flash_vendor_info *g_vendor;
int flash_vendor_dev_ops_register(int (*read)(u32 sec,
u32 n_sec,
--
Gitblit v1.6.2