Skip to content

Commit 4e23612

Browse files
ffainelliRussell King
authored andcommitted
ARM: 8638/1: mtd: lart: Rename partition defines to be prefixed with PART_
In preparation for defining KERNEL_START on ARM, rename KERNEL_START to PART_KERNEL_START, and to be consistent, do this for all partition-related constants. Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 9856265 commit 4e23612

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎drivers/mtd/devices/lart.c‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,18 @@ static char module_name[] = "lart";
7575

7676
/* blob */
7777
#define NUM_BLOB_BLOCKS FLASH_NUMBLOCKS_16m_PARAM
78-
#define BLOB_START 0x00000000
79-
#define BLOB_LEN (NUM_BLOB_BLOCKS * FLASH_BLOCKSIZE_PARAM)
78+
#define PART_BLOB_START 0x00000000
79+
#define PART_BLOB_LEN (NUM_BLOB_BLOCKS * FLASH_BLOCKSIZE_PARAM)
8080

8181
/* kernel */
8282
#define NUM_KERNEL_BLOCKS 7
83-
#define KERNEL_START (BLOB_START + BLOB_LEN)
84-
#define KERNEL_LEN (NUM_KERNEL_BLOCKS * FLASH_BLOCKSIZE_MAIN)
83+
#define PART_KERNEL_START (PART_BLOB_START + PART_BLOB_LEN)
84+
#define PART_KERNEL_LEN (NUM_KERNEL_BLOCKS * FLASH_BLOCKSIZE_MAIN)
8585

8686
/* initial ramdisk */
8787
#define NUM_INITRD_BLOCKS 24
88-
#define INITRD_START (KERNEL_START + KERNEL_LEN)
89-
#define INITRD_LEN (NUM_INITRD_BLOCKS * FLASH_BLOCKSIZE_MAIN)
88+
#define PART_INITRD_START (PART_KERNEL_START + PART_KERNEL_LEN)
89+
#define PART_INITRD_LEN (NUM_INITRD_BLOCKS * FLASH_BLOCKSIZE_MAIN)
9090

9191
/*
9292
* See section 4.0 in "3 Volt Fast Boot Block Flash Memory" Intel Datasheet
@@ -587,20 +587,20 @@ static struct mtd_partition lart_partitions[] = {
587587
/* blob */
588588
{
589589
.name = "blob",
590-
.offset = BLOB_START,
591-
.size = BLOB_LEN,
590+
.offset = PART_BLOB_START,
591+
.size = PART_BLOB_LEN,
592592
},
593593
/* kernel */
594594
{
595595
.name = "kernel",
596-
.offset = KERNEL_START, /* MTDPART_OFS_APPEND */
597-
.size = KERNEL_LEN,
596+
.offset = PART_KERNEL_START, /* MTDPART_OFS_APPEND */
597+
.size = PART_KERNEL_LEN,
598598
},
599599
/* initial ramdisk / file system */
600600
{
601601
.name = "file system",
602-
.offset = INITRD_START, /* MTDPART_OFS_APPEND */
603-
.size = INITRD_LEN, /* MTDPART_SIZ_FULL */
602+
.offset = PART_INITRD_START, /* MTDPART_OFS_APPEND */
603+
.size = PART_INITRD_LEN, /* MTDPART_SIZ_FULL */
604604
}
605605
};
606606
#define NUM_PARTITIONS ARRAY_SIZE(lart_partitions)

0 commit comments

Comments
 (0)