diff options
author | Milton Miller <miltonm@bga.com> | 2011-06-24 05:05:25 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-09-19 19:19:37 -0400 |
commit | 2eccacd0974dca73e2151d3fd4c2dacf1a5c7cc2 (patch) | |
tree | c40edd404cb93997219a5d4c901d3512a04b23cf /arch/powerpc/kernel | |
parent | d24f9c6999eacd3a7bc2b289e49fcb2bf2fafef2 (diff) |
powerpc: Tidy up dma_map_ops after adding new hook
The new get_required_mask hook name is longer than many of but not all
of the prior ops. Tidy the struct initializers to align the equal signs
using the local whitespace.
Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-kernel@vger.kernel.org
Cc: benh@kernel.crashing.org
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/dma-iommu.c | 14 | ||||
-rw-r--r-- | arch/powerpc/kernel/dma.c | 16 | ||||
-rw-r--r-- | arch/powerpc/kernel/ibmebus.c | 14 | ||||
-rw-r--r-- | arch/powerpc/kernel/vio.c | 14 |
4 files changed, 29 insertions, 29 deletions
diff --git a/arch/powerpc/kernel/dma-iommu.c b/arch/powerpc/kernel/dma-iommu.c index c1ad9db934f6..6f04b9c383a7 100644 --- a/arch/powerpc/kernel/dma-iommu.c +++ b/arch/powerpc/kernel/dma-iommu.c | |||
@@ -104,13 +104,13 @@ static u64 dma_iommu_get_required_mask(struct device *dev) | |||
104 | } | 104 | } |
105 | 105 | ||
106 | struct dma_map_ops dma_iommu_ops = { | 106 | struct dma_map_ops dma_iommu_ops = { |
107 | .alloc_coherent = dma_iommu_alloc_coherent, | 107 | .alloc_coherent = dma_iommu_alloc_coherent, |
108 | .free_coherent = dma_iommu_free_coherent, | 108 | .free_coherent = dma_iommu_free_coherent, |
109 | .map_sg = dma_iommu_map_sg, | 109 | .map_sg = dma_iommu_map_sg, |
110 | .unmap_sg = dma_iommu_unmap_sg, | 110 | .unmap_sg = dma_iommu_unmap_sg, |
111 | .dma_supported = dma_iommu_dma_supported, | 111 | .dma_supported = dma_iommu_dma_supported, |
112 | .map_page = dma_iommu_map_page, | 112 | .map_page = dma_iommu_map_page, |
113 | .unmap_page = dma_iommu_unmap_page, | 113 | .unmap_page = dma_iommu_unmap_page, |
114 | .get_required_mask = dma_iommu_get_required_mask, | 114 | .get_required_mask = dma_iommu_get_required_mask, |
115 | }; | 115 | }; |
116 | EXPORT_SYMBOL(dma_iommu_ops); | 116 | EXPORT_SYMBOL(dma_iommu_ops); |
diff --git a/arch/powerpc/kernel/dma.c b/arch/powerpc/kernel/dma.c index 10b136afbf50..8593f53c4f6c 100644 --- a/arch/powerpc/kernel/dma.c +++ b/arch/powerpc/kernel/dma.c | |||
@@ -149,14 +149,14 @@ static inline void dma_direct_sync_single(struct device *dev, | |||
149 | #endif | 149 | #endif |
150 | 150 | ||
151 | struct dma_map_ops dma_direct_ops = { | 151 | struct dma_map_ops dma_direct_ops = { |
152 | .alloc_coherent = dma_direct_alloc_coherent, | 152 | .alloc_coherent = dma_direct_alloc_coherent, |
153 | .free_coherent = dma_direct_free_coherent, | 153 | .free_coherent = dma_direct_free_coherent, |
154 | .map_sg = dma_direct_map_sg, | 154 | .map_sg = dma_direct_map_sg, |
155 | .unmap_sg = dma_direct_unmap_sg, | 155 | .unmap_sg = dma_direct_unmap_sg, |
156 | .dma_supported = dma_direct_dma_supported, | 156 | .dma_supported = dma_direct_dma_supported, |
157 | .map_page = dma_direct_map_page, | 157 | .map_page = dma_direct_map_page, |
158 | .unmap_page = dma_direct_unmap_page, | 158 | .unmap_page = dma_direct_unmap_page, |
159 | .get_required_mask = dma_direct_get_required_mask, | 159 | .get_required_mask = dma_direct_get_required_mask, |
160 | #ifdef CONFIG_NOT_COHERENT_CACHE | 160 | #ifdef CONFIG_NOT_COHERENT_CACHE |
161 | .sync_single_for_cpu = dma_direct_sync_single, | 161 | .sync_single_for_cpu = dma_direct_sync_single, |
162 | .sync_single_for_device = dma_direct_sync_single, | 162 | .sync_single_for_device = dma_direct_sync_single, |
diff --git a/arch/powerpc/kernel/ibmebus.c b/arch/powerpc/kernel/ibmebus.c index 90ef2a44613b..73110fb6bb6c 100644 --- a/arch/powerpc/kernel/ibmebus.c +++ b/arch/powerpc/kernel/ibmebus.c | |||
@@ -134,14 +134,14 @@ static u64 ibmebus_dma_get_required_mask(struct device *dev) | |||
134 | } | 134 | } |
135 | 135 | ||
136 | static struct dma_map_ops ibmebus_dma_ops = { | 136 | static struct dma_map_ops ibmebus_dma_ops = { |
137 | .alloc_coherent = ibmebus_alloc_coherent, | 137 | .alloc_coherent = ibmebus_alloc_coherent, |
138 | .free_coherent = ibmebus_free_coherent, | 138 | .free_coherent = ibmebus_free_coherent, |
139 | .map_sg = ibmebus_map_sg, | 139 | .map_sg = ibmebus_map_sg, |
140 | .unmap_sg = ibmebus_unmap_sg, | 140 | .unmap_sg = ibmebus_unmap_sg, |
141 | .dma_supported = ibmebus_dma_supported, | 141 | .dma_supported = ibmebus_dma_supported, |
142 | .get_required_mask = ibmebus_dma_get_required_mask, | 142 | .get_required_mask = ibmebus_dma_get_required_mask, |
143 | .map_page = ibmebus_map_page, | 143 | .map_page = ibmebus_map_page, |
144 | .unmap_page = ibmebus_unmap_page, | 144 | .unmap_page = ibmebus_unmap_page, |
145 | }; | 145 | }; |
146 | 146 | ||
147 | static int ibmebus_match_path(struct device *dev, void *data) | 147 | static int ibmebus_match_path(struct device *dev, void *data) |
diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c index c0493259d133..34d291d83ec8 100644 --- a/arch/powerpc/kernel/vio.c +++ b/arch/powerpc/kernel/vio.c | |||
@@ -611,13 +611,13 @@ static u64 vio_dma_get_required_mask(struct device *dev) | |||
611 | } | 611 | } |
612 | 612 | ||
613 | struct dma_map_ops vio_dma_mapping_ops = { | 613 | struct dma_map_ops vio_dma_mapping_ops = { |
614 | .alloc_coherent = vio_dma_iommu_alloc_coherent, | 614 | .alloc_coherent = vio_dma_iommu_alloc_coherent, |
615 | .free_coherent = vio_dma_iommu_free_coherent, | 615 | .free_coherent = vio_dma_iommu_free_coherent, |
616 | .map_sg = vio_dma_iommu_map_sg, | 616 | .map_sg = vio_dma_iommu_map_sg, |
617 | .unmap_sg = vio_dma_iommu_unmap_sg, | 617 | .unmap_sg = vio_dma_iommu_unmap_sg, |
618 | .map_page = vio_dma_iommu_map_page, | 618 | .map_page = vio_dma_iommu_map_page, |
619 | .unmap_page = vio_dma_iommu_unmap_page, | 619 | .unmap_page = vio_dma_iommu_unmap_page, |
620 | .dma_supported = vio_dma_iommu_dma_supported, | 620 | .dma_supported = vio_dma_iommu_dma_supported, |
621 | .get_required_mask = vio_dma_get_required_mask, | 621 | .get_required_mask = vio_dma_get_required_mask, |
622 | }; | 622 | }; |
623 | 623 | ||