diff options
author | Martyn Welch <martyn.welch@gefanuc.com> | 2009-10-29 12:35:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-11 15:23:18 -0500 |
commit | 58e507987b285f3df99f839c79da3985555ac220 (patch) | |
tree | e781c96a3876e88fcd923622d1a03f25cf44e835 | |
parent | a4b02959d5bec1b3e3a3e266b196673a89e62c29 (diff) |
Staging: vme: Rename VME DMA functions
The DMA resource allocation function is called "vme_request_dma" while
master and slave window allocation functions are called
"vme_master_request" and "vme_slave_request" respectively. Rename
"vme_request_dma" to "vme_dma_request" to fit the pattern.
Signed-off-by: Martyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/vme/TODO | 2 | ||||
-rw-r--r-- | drivers/staging/vme/vme.c | 4 | ||||
-rw-r--r-- | drivers/staging/vme/vme.h | 2 | ||||
-rw-r--r-- | drivers/staging/vme/vme_api.txt | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/vme/TODO b/drivers/staging/vme/TODO index adc5fca42afd..2201ff6f74d1 100644 --- a/drivers/staging/vme/TODO +++ b/drivers/staging/vme/TODO | |||
@@ -11,7 +11,7 @@ The current DMA resource Allocation provides no means of selecting the | |||
11 | suitability of a DMA controller based on it's supported modes of operation, as | 11 | suitability of a DMA controller based on it's supported modes of operation, as |
12 | opposed to the resource allocation mechanisms for master and slave windows: | 12 | opposed to the resource allocation mechanisms for master and slave windows: |
13 | 13 | ||
14 | struct vme_resource *vme_request_dma(struct device *dev); | 14 | struct vme_resource *vme_dma_request(struct device *dev); |
15 | 15 | ||
16 | As opposed to: | 16 | As opposed to: |
17 | 17 | ||
diff --git a/drivers/staging/vme/vme.c b/drivers/staging/vme/vme.c index a6154f96b826..ca9e4de46149 100644 --- a/drivers/staging/vme/vme.c +++ b/drivers/staging/vme/vme.c | |||
@@ -643,7 +643,7 @@ EXPORT_SYMBOL(vme_master_free); | |||
643 | * Request a DMA controller with specific attributes, return some unique | 643 | * Request a DMA controller with specific attributes, return some unique |
644 | * identifier. | 644 | * identifier. |
645 | */ | 645 | */ |
646 | struct vme_resource *vme_request_dma(struct device *dev) | 646 | struct vme_resource *vme_dma_request(struct device *dev) |
647 | { | 647 | { |
648 | struct vme_bridge *bridge; | 648 | struct vme_bridge *bridge; |
649 | struct list_head *dma_pos = NULL; | 649 | struct list_head *dma_pos = NULL; |
@@ -704,7 +704,7 @@ err_ctrlr: | |||
704 | err_bus: | 704 | err_bus: |
705 | return NULL; | 705 | return NULL; |
706 | } | 706 | } |
707 | EXPORT_SYMBOL(vme_request_dma); | 707 | EXPORT_SYMBOL(vme_dma_request); |
708 | 708 | ||
709 | /* | 709 | /* |
710 | * Start new list | 710 | * Start new list |
diff --git a/drivers/staging/vme/vme.h b/drivers/staging/vme/vme.h index f999f6a83c72..97dc22e34caf 100644 --- a/drivers/staging/vme/vme.h +++ b/drivers/staging/vme/vme.h | |||
@@ -123,7 +123,7 @@ unsigned int vme_master_rmw (struct vme_resource *, unsigned int, unsigned int, | |||
123 | unsigned int, loff_t); | 123 | unsigned int, loff_t); |
124 | void vme_master_free(struct vme_resource *); | 124 | void vme_master_free(struct vme_resource *); |
125 | 125 | ||
126 | struct vme_resource *vme_request_dma(struct device *); | 126 | struct vme_resource *vme_dma_request(struct device *); |
127 | struct vme_dma_list *vme_new_dma_list(struct vme_resource *); | 127 | struct vme_dma_list *vme_new_dma_list(struct vme_resource *); |
128 | struct vme_dma_attr *vme_dma_pattern_attribute(u32, vme_pattern_t); | 128 | struct vme_dma_attr *vme_dma_pattern_attribute(u32, vme_pattern_t); |
129 | struct vme_dma_attr *vme_dma_pci_attribute(dma_addr_t); | 129 | struct vme_dma_attr *vme_dma_pci_attribute(dma_addr_t); |
diff --git a/drivers/staging/vme/vme_api.txt b/drivers/staging/vme/vme_api.txt index 36b7a3c8421f..a5c1b1cd5fcc 100644 --- a/drivers/staging/vme/vme_api.txt +++ b/drivers/staging/vme/vme_api.txt | |||
@@ -77,7 +77,7 @@ driver in question: | |||
77 | struct vme_resource * vme_slave_request(struct device *dev, | 77 | struct vme_resource * vme_slave_request(struct device *dev, |
78 | vme_address_t aspace, vme_cycle_t cycle); | 78 | vme_address_t aspace, vme_cycle_t cycle); |
79 | 79 | ||
80 | struct vme_resource *vme_request_dma(struct device *dev); | 80 | struct vme_resource *vme_dma_request(struct device *dev); |
81 | 81 | ||
82 | For slave windows these attributes are split into those of type 'vme_address_t' | 82 | For slave windows these attributes are split into those of type 'vme_address_t' |
83 | and 'vme_cycle_t'. Master windows add a further set of attributes 'vme_cycle_t'. | 83 | and 'vme_cycle_t'. Master windows add a further set of attributes 'vme_cycle_t'. |