summaryrefslogtreecommitdiff
path: root/include/linux/dca.h
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2015-11-13 12:46:00 +0100
committerVinod Koul <vinod.koul@intel.com>2015-11-16 09:27:32 +0530
commit2bb129ebb23d2dfec3cd9c22dc7defd681cfcd58 (patch)
treef664dcc6cf2a09864a6ff40aedbbe1c0c9a97d71 /include/linux/dca.h
parentd3cd63f91b84c60e0b30ee8a45b8f291dac7bbff (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 'include/linux/dca.h')
-rw-r--r--include/linux/dca.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/dca.h b/include/linux/dca.h
index d27a7a05718d..ad956c2e07a8 100644
--- a/include/linux/dca.h
+++ b/include/linux/dca.h
@@ -34,7 +34,7 @@ void dca_unregister_notify(struct notifier_block *nb);
struct dca_provider {
struct list_head node;
- struct dca_ops *ops;
+ const struct dca_ops *ops;
struct device *cd;
int id;
};
@@ -53,7 +53,8 @@ struct dca_ops {
int (*dev_managed) (struct dca_provider *, struct device *);
};
-struct dca_provider *alloc_dca_provider(struct dca_ops *ops, int priv_size);
+struct dca_provider *alloc_dca_provider(const struct dca_ops *ops,
+ int priv_size);
void free_dca_provider(struct dca_provider *dca);
int register_dca_provider(struct dca_provider *dca, struct device *dev);
void unregister_dca_provider(struct dca_provider *dca, struct device *dev);