aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120/files/drivers/mtd
diff options
context:
space:
mode:
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 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" */