From 5a127c8433297e359fc4fded01172625f43b6d00 Mon Sep 17 00:00:00 2001 From: Afzal Mohammed Date: Wed, 18 Sep 2013 01:14:50 +0530 Subject: dfu: unify mmc/nand read/write ops enum MMC and NAND independently defines same enumerators for read/write. Unify them by defining enum in dfu header. RAM support that is being added newly also can make use of it. Signed-off-by: Afzal Mohammed Cc: Heiko Schocher Cc: Marek Vasut Cc: Lukasz Majewski Cc: Pantelis Antoniou Acked-by: Lukasz Majewski Acked-by: Marek Vasut Acked-by: Heiko Schocher --- include/dfu.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/dfu.h') diff --git a/include/dfu.h b/include/dfu.h index 392cef126e..6a3e253b1d 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -29,6 +29,11 @@ enum dfu_layout { DFU_FS_EXT4, }; +enum dfu_op { + DFU_OP_READ = 1, + DFU_OP_WRITE, +}; + struct mmc_internal_data { /* RAW programming */ unsigned int lba_start; -- cgit v1.2.1