2
0
forked from Ivasoft/openwrt

kernel: mtk_bmt: allow get_mapping_block to return an error

Used by the mapping implementation to indicate that no backing block is
available

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau
2022-03-09 15:54:52 +01:00
parent 601c7b4adb
commit b4c7f8c5f7
4 changed files with 25 additions and 8 deletions

View File

@@ -19,7 +19,7 @@ struct mtk_bmt_ops {
int (*init)(struct device_node *np);
bool (*remap_block)(u16 block, u16 mapped_block, int copy_len);
void (*unmap_block)(u16 block);
u16 (*get_mapping_block)(int block);
int (*get_mapping_block)(int block);
int (*debug)(void *data, u64 val);
};