diff options
| author | Julia Lawall <julia.lawall@lip6.fr> | 2015-11-13 06:46:00 -0500 |
|---|---|---|
| committer | Vinod Koul <vinod.koul@intel.com> | 2015-11-15 22:57:32 -0500 |
| commit | 2bb129ebb23d2dfec3cd9c22dc7defd681cfcd58 (patch) | |
| tree | f664dcc6cf2a09864a6ff40aedbbe1c0c9a97d71 /drivers/dca | |
| parent | d3cd63f91b84c60e0b30ee8a45b8f291dac7bbff (diff) | |
dmaengine: ioatdma: constify dca_ops structures
The dca_ops structure is never modified, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dca')
| -rw-r--r-- | drivers/dca/dca-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dca/dca-core.c b/drivers/dca/dca-core.c index 819dfda88236..7afbb28d6a0f 100644 --- a/drivers/dca/dca-core.c +++ b/drivers/dca/dca-core.c | |||
| @@ -321,7 +321,8 @@ EXPORT_SYMBOL_GPL(dca_get_tag); | |||
| 321 | * @ops - pointer to struct of dca operation function pointers | 321 | * @ops - pointer to struct of dca operation function pointers |
| 322 | * @priv_size - size of extra mem to be added for provider's needs | 322 | * @priv_size - size of extra mem to be added for provider's needs |
| 323 | */ | 323 | */ |
| 324 | struct dca_provider *alloc_dca_provider(struct dca_ops *ops, int priv_size) | 324 | struct dca_provider *alloc_dca_provider(const struct dca_ops *ops, |
| 325 | int priv_size) | ||
| 325 | { | 326 | { |
| 326 | struct dca_provider *dca; | 327 | struct dca_provider *dca; |
| 327 | int alloc_size; | 328 | int alloc_size; |
