From 12d798a29a9a376ef495f527b1785317e3ae3d37 Mon Sep 17 00:00:00 2001 From: Josh Boyer Date: Thu, 15 Mar 2007 08:05:07 -0500 Subject: Update header file to latest MTD ABI and fix mtd_debug to work properly Signed-off-by: Josh Boyer --- mtd_debug.c | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) (limited to 'mtd_debug.c') diff --git a/mtd_debug.c b/mtd_debug.c index e0cc7d7..b44e952 100644 --- a/mtd_debug.c +++ b/mtd_debug.c @@ -3,8 +3,6 @@ * Written by Abraham vd Merwe * All rights reserved. * - * $Id: mtd_debug.c,v 1.5 2004/05/05 11:57:55 dwmw2 Exp $ - * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -259,14 +257,20 @@ int showinfo (int fd) case MTD_ABSENT: printf ("MTD_ABSENT"); break; + case MTD_RAM: + printf ("MTD_RAM"); + break; + case MTD_ROM: + printf ("MTD_ROM"); + break; case MTD_NORFLASH: printf ("MTD_NORFLASH"); break; case MTD_NANDFLASH: printf ("MTD_NANDFLASH"); break; - case MTD_GENERIC_TYPE: - printf ("MTD_GENERIC_TYPE"); + case MTD_DATAFLASH: + printf ("MTD_DATAFLASH"); break; default: printf ("(unknown type - new MTD API maybe?)"); @@ -320,22 +324,6 @@ int showinfo (int fd) printf ("\nmtd.oobsize = "); printsize (mtd.oobsize); - printf ("\nmtd.ecctype = "); - switch (mtd.ecctype) - { - case MTD_ECC_NONE: - printf ("MTD_ECC_NONE"); - break; - case MTD_ECC_RS_DiskOnChip: - printf ("MTD_ECC_RS_DiskOnChip"); - break; - case MTD_ECC_SW: - printf ("MTD_ECC_SW"); - break; - default: - printf ("(unknown ECC type - new MTD API maybe?)"); - } - printf ("\n" "regions = %d\n" "\n", -- cgit v1.2.3