summaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120/files/drivers/mtd
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-06-12 19:17:57 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-06-12 19:17:57 +0000
commit27e94101def26f60ce5f65835c082f791f6ed641 (patch)
tree7dcda6dd00b39a1cf0a038df25cca76a1b213a09 /target/linux/adm5120/files/drivers/mtd
parent9f0d58cb15d8f345bfacb0b2e6f7aa86e62e1e31 (diff)
[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.c6
-rw-r--r--target/linux/adm5120/files/drivers/mtd/trxsplit.c2
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 ed407ebde..af292a06c 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 7e4a63b74..7ae0a457a 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" */