aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-10-30 06:56:26 -0400
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-11-20 09:58:57 -0500
commite39f6ec1f9c1d6a7011adf6d95d8d80bad0586b1 (patch)
tree77aeb721c8fe3c252d9d9adfaadcaae8511394b0
parent2ccc469cfecee291707dd50e5842cbf206bc17d7 (diff)
dma: mv_xor: rename mv_xor_platform_data to mv_xor_channel_data
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>
-rw-r--r--arch/arm/plat-orion/common.c28
-rw-r--r--drivers/dma/mv_xor.c2
-rw-r--r--include/linux/platform_data/dma-mv_xor.h4
3 files changed, 17 insertions, 17 deletions
diff --git a/arch/arm/plat-orion/common.c b/arch/arm/plat-orion/common.c
index 5a66211d523c..7ffbe77c52cb 100644
--- a/arch/arm/plat-orion/common.c
+++ b/arch/arm/plat-orion/common.c
@@ -625,7 +625,7 @@ static struct resource orion_xor0_shared_resources[] = {
625 }, 625 },
626}; 626};
627 627
628static struct mv_xor_platform_data orion_xor0_channels_pdata[2] = { 628static struct mv_xor_channel_data orion_xor0_channels_data[2] = {
629 { 629 {
630 .hw_id = 0, 630 .hw_id = 0,
631 .pool_size = PAGE_SIZE, 631 .pool_size = PAGE_SIZE,
@@ -637,7 +637,7 @@ static struct mv_xor_platform_data orion_xor0_channels_pdata[2] = {
637}; 637};
638 638
639static struct mv_xor_shared_platform_data orion_xor0_pdata = { 639static struct mv_xor_shared_platform_data orion_xor0_pdata = {
640 .channels = orion_xor0_channels_pdata, 640 .channels = orion_xor0_channels_data,
641}; 641};
642 642
643static struct platform_device orion_xor0_shared = { 643static struct platform_device orion_xor0_shared = {
@@ -671,12 +671,12 @@ void __init orion_xor0_init(unsigned long mapbase_low,
671 * two engines can't do memset simultaneously, this limitation 671 * two engines can't do memset simultaneously, this limitation
672 * satisfied by removing memset support from one of the engines. 672 * satisfied by removing memset support from one of the engines.
673 */ 673 */
674 dma_cap_set(DMA_MEMCPY, orion_xor0_channels_pdata[0].cap_mask); 674 dma_cap_set(DMA_MEMCPY, orion_xor0_channels_data[0].cap_mask);
675 dma_cap_set(DMA_XOR, orion_xor0_channels_pdata[0].cap_mask); 675 dma_cap_set(DMA_XOR, orion_xor0_channels_data[0].cap_mask);
676 676
677 dma_cap_set(DMA_MEMSET, orion_xor0_channels_pdata[1].cap_mask); 677 dma_cap_set(DMA_MEMSET, orion_xor0_channels_data[1].cap_mask);
678 dma_cap_set(DMA_MEMCPY, orion_xor0_channels_pdata[1].cap_mask); 678 dma_cap_set(DMA_MEMCPY, orion_xor0_channels_data[1].cap_mask);
679 dma_cap_set(DMA_XOR, orion_xor0_channels_pdata[1].cap_mask); 679 dma_cap_set(DMA_XOR, orion_xor0_channels_data[1].cap_mask);
680 680
681 platform_device_register(&orion_xor0_shared); 681 platform_device_register(&orion_xor0_shared);
682} 682}
@@ -700,7 +700,7 @@ static struct resource orion_xor1_shared_resources[] = {
700 }, 700 },
701}; 701};
702 702
703static struct mv_xor_platform_data orion_xor1_channels_pdata[2] = { 703static struct mv_xor_channel_data orion_xor1_channels_data[2] = {
704 { 704 {
705 .hw_id = 0, 705 .hw_id = 0,
706 .pool_size = PAGE_SIZE, 706 .pool_size = PAGE_SIZE,
@@ -712,7 +712,7 @@ static struct mv_xor_platform_data orion_xor1_channels_pdata[2] = {
712}; 712};
713 713
714static struct mv_xor_shared_platform_data orion_xor1_pdata = { 714static struct mv_xor_shared_platform_data orion_xor1_pdata = {
715 .channels = orion_xor1_channels_pdata, 715 .channels = orion_xor1_channels_data,
716}; 716};
717 717
718static struct platform_device orion_xor1_shared = { 718static struct platform_device orion_xor1_shared = {
@@ -746,12 +746,12 @@ void __init orion_xor1_init(unsigned long mapbase_low,
746 * two engines can't do memset simultaneously, this limitation 746 * two engines can't do memset simultaneously, this limitation
747 * satisfied by removing memset support from one of the engines. 747 * satisfied by removing memset support from one of the engines.
748 */ 748 */
749 dma_cap_set(DMA_MEMCPY, orion_xor1_channels_pdata[0].cap_mask); 749 dma_cap_set(DMA_MEMCPY, orion_xor1_channels_data[0].cap_mask);
750 dma_cap_set(DMA_XOR, orion_xor1_channels_pdata[0].cap_mask); 750 dma_cap_set(DMA_XOR, orion_xor1_channels_data[0].cap_mask);
751 751
752 dma_cap_set(DMA_MEMSET, orion_xor1_channels_pdata[1].cap_mask); 752 dma_cap_set(DMA_MEMSET, orion_xor1_channels_data[1].cap_mask);
753 dma_cap_set(DMA_MEMCPY, orion_xor1_channels_pdata[1].cap_mask); 753 dma_cap_set(DMA_MEMCPY, orion_xor1_channels_data[1].cap_mask);
754 dma_cap_set(DMA_XOR, orion_xor1_channels_pdata[1].cap_mask); 754 dma_cap_set(DMA_XOR, orion_xor1_channels_data[1].cap_mask);
755 755
756 platform_device_register(&orion_xor1_shared); 756 platform_device_register(&orion_xor1_shared);
757} 757}
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c
index be3907bdef14..c7926e417281 100644
--- a/drivers/dma/mv_xor.c
+++ b/drivers/dma/mv_xor.c
@@ -1300,7 +1300,7 @@ static int mv_xor_shared_probe(struct platform_device *pdev)
1300 1300
1301 if (pdata && pdata->channels) { 1301 if (pdata && pdata->channels) {
1302 for (i = 0; i < MV_XOR_MAX_CHANNELS; i++) { 1302 for (i = 0; i < MV_XOR_MAX_CHANNELS; i++) {
1303 struct mv_xor_platform_data *cd; 1303 struct mv_xor_channel_data *cd;
1304 int irq; 1304 int irq;
1305 1305
1306 cd = &pdata->channels[i]; 1306 cd = &pdata->channels[i];
diff --git a/include/linux/platform_data/dma-mv_xor.h b/include/linux/platform_data/dma-mv_xor.h
index 4a0980b14c9b..40ea3d5f5b9f 100644
--- a/include/linux/platform_data/dma-mv_xor.h
+++ b/include/linux/platform_data/dma-mv_xor.h
@@ -12,14 +12,14 @@
12 12
13#define MV_XOR_SHARED_NAME "mv_xor_shared" 13#define MV_XOR_SHARED_NAME "mv_xor_shared"
14 14
15struct mv_xor_platform_data { 15struct mv_xor_channel_data {
16 int hw_id; 16 int hw_id;
17 dma_cap_mask_t cap_mask; 17 dma_cap_mask_t cap_mask;
18 size_t pool_size; 18 size_t pool_size;
19}; 19};
20 20
21struct mv_xor_shared_platform_data { 21struct mv_xor_shared_platform_data {
22 struct mv_xor_platform_data *channels; 22 struct mv_xor_channel_data *channels;
23}; 23};
24 24
25#endif 25#endif