dma: mv_xor: rename mv_xor_platform_data to mv_xor_channel_data
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 30 Oct 2012 10:56:26 +0000 (11:56 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 20 Nov 2012 14:58:57 +0000 (15:58 +0100)
mv_xor_platform_data used to be the platform_data structure associated
to the 'mv_xor' driver. This driver no longer exists, and this data
structure really contains the properties of each XOR channel part of a
given XOR engine. Therefore 'struct mv_xor_channel_data' is a more
appropriate name.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
arch/arm/plat-orion/common.c
drivers/dma/mv_xor.c
include/linux/platform_data/dma-mv_xor.h

index 5a66211d523c2d773bf279ff6999a9d1f40367ba..7ffbe77c52cb98b01dee393ea3b2516082d91d80 100644 (file)
@@ -625,7 +625,7 @@ static struct resource orion_xor0_shared_resources[] = {
        },
 };
 
-static struct mv_xor_platform_data orion_xor0_channels_pdata[2] = {
+static struct mv_xor_channel_data orion_xor0_channels_data[2] = {
        {
                .hw_id          = 0,
                .pool_size      = PAGE_SIZE,
@@ -637,7 +637,7 @@ static struct mv_xor_platform_data orion_xor0_channels_pdata[2] = {
 };
 
 static struct mv_xor_shared_platform_data orion_xor0_pdata = {
-       .channels = orion_xor0_channels_pdata,
+       .channels = orion_xor0_channels_data,
 };
 
 static struct platform_device orion_xor0_shared = {
@@ -671,12 +671,12 @@ void __init orion_xor0_init(unsigned long mapbase_low,
         * two engines can't do memset simultaneously, this limitation
         * satisfied by removing memset support from one of the engines.
         */
-       dma_cap_set(DMA_MEMCPY, orion_xor0_channels_pdata[0].cap_mask);
-       dma_cap_set(DMA_XOR, orion_xor0_channels_pdata[0].cap_mask);
+       dma_cap_set(DMA_MEMCPY, orion_xor0_channels_data[0].cap_mask);
+       dma_cap_set(DMA_XOR, orion_xor0_channels_data[0].cap_mask);
 
-       dma_cap_set(DMA_MEMSET, orion_xor0_channels_pdata[1].cap_mask);
-       dma_cap_set(DMA_MEMCPY, orion_xor0_channels_pdata[1].cap_mask);
-       dma_cap_set(DMA_XOR, orion_xor0_channels_pdata[1].cap_mask);
+       dma_cap_set(DMA_MEMSET, orion_xor0_channels_data[1].cap_mask);
+       dma_cap_set(DMA_MEMCPY, orion_xor0_channels_data[1].cap_mask);
+       dma_cap_set(DMA_XOR, orion_xor0_channels_data[1].cap_mask);
 
        platform_device_register(&orion_xor0_shared);
 }
@@ -700,7 +700,7 @@ static struct resource orion_xor1_shared_resources[] = {
        },
 };
 
-static struct mv_xor_platform_data orion_xor1_channels_pdata[2] = {
+static struct mv_xor_channel_data orion_xor1_channels_data[2] = {
        {
                .hw_id          = 0,
                .pool_size      = PAGE_SIZE,
@@ -712,7 +712,7 @@ static struct mv_xor_platform_data orion_xor1_channels_pdata[2] = {
 };
 
 static struct mv_xor_shared_platform_data orion_xor1_pdata = {
-       .channels = orion_xor1_channels_pdata,
+       .channels = orion_xor1_channels_data,
 };
 
 static struct platform_device orion_xor1_shared = {
@@ -746,12 +746,12 @@ void __init orion_xor1_init(unsigned long mapbase_low,
         * two engines can't do memset simultaneously, this limitation
         * satisfied by removing memset support from one of the engines.
         */
-       dma_cap_set(DMA_MEMCPY, orion_xor1_channels_pdata[0].cap_mask);
-       dma_cap_set(DMA_XOR, orion_xor1_channels_pdata[0].cap_mask);
+       dma_cap_set(DMA_MEMCPY, orion_xor1_channels_data[0].cap_mask);
+       dma_cap_set(DMA_XOR, orion_xor1_channels_data[0].cap_mask);
 
-       dma_cap_set(DMA_MEMSET, orion_xor1_channels_pdata[1].cap_mask);
-       dma_cap_set(DMA_MEMCPY, orion_xor1_channels_pdata[1].cap_mask);
-       dma_cap_set(DMA_XOR, orion_xor1_channels_pdata[1].cap_mask);
+       dma_cap_set(DMA_MEMSET, orion_xor1_channels_data[1].cap_mask);
+       dma_cap_set(DMA_MEMCPY, orion_xor1_channels_data[1].cap_mask);
+       dma_cap_set(DMA_XOR, orion_xor1_channels_data[1].cap_mask);
 
        platform_device_register(&orion_xor1_shared);
 }
index be3907bdef14d2971f30bb7455420158e69c846e..c7926e4172813ce810e59cd1446276971bd791e1 100644 (file)
@@ -1300,7 +1300,7 @@ static int mv_xor_shared_probe(struct platform_device *pdev)
 
        if (pdata && pdata->channels) {
                for (i = 0; i < MV_XOR_MAX_CHANNELS; i++) {
-                       struct mv_xor_platform_data *cd;
+                       struct mv_xor_channel_data *cd;
                        int irq;
 
                        cd = &pdata->channels[i];
index 4a0980b14c9b1afcd399305ed35904307919f12c..40ea3d5f5b9f193bbed7b74a8fc14c0b267b5377 100644 (file)
 
 #define MV_XOR_SHARED_NAME     "mv_xor_shared"
 
-struct mv_xor_platform_data {
+struct mv_xor_channel_data {
        int                             hw_id;
        dma_cap_mask_t                  cap_mask;
        size_t                          pool_size;
 };
 
 struct mv_xor_shared_platform_data {
-       struct mv_xor_platform_data    *channels;
+       struct mv_xor_channel_data    *channels;
 };
 
 #endif