diff options
author | Florian Fainelli <florian@openwrt.org> | 2011-06-12 19:17:57 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2011-06-12 19:17:57 +0000 |
commit | 3d41f1652c8ab4b0bdd59efea57747b75130e8d3 (patch) | |
tree | 7dcda6dd00b39a1cf0a038df25cca76a1b213a09 /target/linux/adm5120/files/drivers/mtd | |
parent | 24e4b5bc83d830fd5299ccc9265f56d2ae12c4c8 (diff) | |
download | upstream-3d41f1652c8ab4b0bdd59efea57747b75130e8d3.tar.gz upstream-3d41f1652c8ab4b0bdd59efea57747b75130e8d3.tar.bz2 upstream-3d41f1652c8ab4b0bdd59efea57747b75130e8d3.zip |
[adm5120] cleanup files using checkpatch.pl
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27162 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/files/drivers/mtd')
-rw-r--r-- | target/linux/adm5120/files/drivers/mtd/maps/adm5120-flash.c | 6 | ||||
-rw-r--r-- | target/linux/adm5120/files/drivers/mtd/trxsplit.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/adm5120/files/drivers/mtd/maps/adm5120-flash.c b/target/linux/adm5120/files/drivers/mtd/maps/adm5120-flash.c index ed407ebdec..af292a06cc 100644 --- a/target/linux/adm5120/files/drivers/mtd/maps/adm5120-flash.c +++ b/target/linux/adm5120/files/drivers/mtd/maps/adm5120-flash.c @@ -45,7 +45,7 @@ struct adm5120_map_info { struct map_info map; - void (*switch_bank)(unsigned); + void (*switch_bank)(unsigned); unsigned long window_size; }; @@ -89,7 +89,7 @@ static struct flash_desc flash_descs[2] = { } }; -static const char *probe_types[] = { +static const char const *probe_types[] = { "cfi_probe", "jedec_probe", "map_rom", @@ -97,7 +97,7 @@ static const char *probe_types[] = { }; #ifdef CONFIG_MTD_PARTITIONS -static const char *parse_types[] = { +static const char const *parse_types[] = { "cmdlinepart", #ifdef CONFIG_MTD_REDBOOT_PARTS "RedBoot", diff --git a/target/linux/adm5120/files/drivers/mtd/trxsplit.c b/target/linux/adm5120/files/drivers/mtd/trxsplit.c index 7e4a63b74b..7ae0a457ad 100644 --- a/target/linux/adm5120/files/drivers/mtd/trxsplit.c +++ b/target/linux/adm5120/files/drivers/mtd/trxsplit.c @@ -28,7 +28,7 @@ #define TRX_NO_HEADER 0x1 /* do not write TRX header */ #define TRX_GZ_FILES 0x2 /* contains individual gzip files */ #define TRX_MAX_OFFSET 3 -#define TRX_MIN_KERNEL_SIZE 256*1024 +#define TRX_MIN_KERNEL_SIZE (256 * 1024) struct trx_header { u32 magic; /* "HDR0" */ |