mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
d3cd63f91b
commit
2bb129ebb2
3 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue