]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/iommu.h
iommu: Constify struct iommu_ops
[karo-tx-linux.git] / include / linux / iommu.h
index 7fd16e3d1f25ca1661f20bbe42baed4a99863cf5..c7097d7f024c3b3094ddb932186838eabc7ab814 100644 (file)
@@ -50,7 +50,7 @@ struct iommu_domain_geometry {
 };
 
 struct iommu_domain {
-       struct iommu_ops *ops;
+       const struct iommu_ops *ops;
        void *priv;
        iommu_fault_handler_t handler;
        void *handler_token;
@@ -140,7 +140,7 @@ struct iommu_ops {
 #define IOMMU_GROUP_NOTIFY_UNBIND_DRIVER       5 /* Pre Driver unbind */
 #define IOMMU_GROUP_NOTIFY_UNBOUND_DRIVER      6 /* Post Driver unbind */
 
-extern int bus_set_iommu(struct bus_type *bus, struct iommu_ops *ops);
+extern int bus_set_iommu(struct bus_type *bus, const struct iommu_ops *ops);
 extern bool iommu_present(struct bus_type *bus);
 extern struct iommu_domain *iommu_domain_alloc(struct bus_type *bus);
 extern struct iommu_group *iommu_group_get_by_id(int id);