summaryrefslogtreecommitdiff
path: root/mtd.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2014-02-05 02:20:51 +0000
committerDmitry V. Levin <ldv@altlinux.org>2014-02-05 02:28:18 +0000
commit594527353359d9a6aad516992e09c393e11f3bd2 (patch)
treeccef62341623db916eade55a47c9b00f4ce45b7f /mtd.c
parent82b1ea7c3fc854d5ea805f490d351d443701d60b (diff)
downloadstrace-594527353359d9a6aad516992e09c393e11f3bd2.tar.gz
strace-594527353359d9a6aad516992e09c393e11f3bd2.tar.bz2
strace-594527353359d9a6aad516992e09c393e11f3bd2.tar.xz
Use XLAT_END macro
Automatically update all xlat structures using the following sed regexp: s/^[[:space:]]*{[[:space:]]*0[[:space:]]*,[[:space:]]*NULL[[:space:]]*,\?[[:space:]]*}[[:space:]]*,\?[[:space:]]*/\tXLAT_END/
Diffstat (limited to 'mtd.c')
-rw-r--r--mtd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mtd.c b/mtd.c
index 219f676..9f8cae1 100644
--- a/mtd.c
+++ b/mtd.c
@@ -45,7 +45,7 @@ static const struct xlat mtd_mode_options[] = {
XLAT(MTD_OPS_PLACE_OOB),
XLAT(MTD_OPS_AUTO_OOB),
XLAT(MTD_OPS_RAW),
- { 0, NULL },
+ XLAT_END
};
static const struct xlat mtd_type_options[] = {
@@ -57,7 +57,7 @@ static const struct xlat mtd_type_options[] = {
XLAT(MTD_DATAFLASH),
XLAT(MTD_UBIVOLUME),
XLAT(MTD_MLCNANDFLASH),
- { 0, NULL },
+ XLAT_END
};
static const struct xlat mtd_flags_options[] = {
@@ -65,14 +65,14 @@ static const struct xlat mtd_flags_options[] = {
XLAT(MTD_BIT_WRITEABLE),
XLAT(MTD_NO_ERASE),
XLAT(MTD_POWERUP_LOCK),
- { 0, NULL },
+ XLAT_END
};
static const struct xlat mtd_otp_options[] = {
XLAT(MTD_OTP_OFF),
XLAT(MTD_OTP_FACTORY),
XLAT(MTD_OTP_USER),
- { 0, NULL },
+ XLAT_END
};
static const struct xlat mtd_nandecc_options[] = {
@@ -81,7 +81,7 @@ static const struct xlat mtd_nandecc_options[] = {
XLAT(MTD_NANDECC_AUTOPLACE),
XLAT(MTD_NANDECC_PLACEONLY),
XLAT(MTD_NANDECC_AUTOPL_USR),
- { 0, NULL },
+ XLAT_END
};
int mtd_ioctl(struct tcb *tcp, long code, long arg)
@@ -289,12 +289,12 @@ int mtd_ioctl(struct tcb *tcp, long code, long arg)
static const struct xlat ubi_volume_types[] = {
XLAT(UBI_DYNAMIC_VOLUME),
XLAT(UBI_STATIC_VOLUME),
- { 0, NULL },
+ XLAT_END
};
static const struct xlat ubi_volume_props[] = {
XLAT(UBI_VOL_PROP_DIRECT_WRITE),
- { 0, NULL },
+ XLAT_END
};
int ubi_ioctl(struct tcb *tcp, long code, long arg)