]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - include/linux/framer/framer-provider.h
net: wan: framer: constify of_phandle_args in xlate
[thirdparty/kernel/stable.git] / include / linux / framer / framer-provider.h
index 782cd5fc83d54210c1b1ebd3c7b3c3e93cac256b..f6fd2dd9259122d0d397151c5dd9617301700b69 100644 (file)
@@ -93,7 +93,7 @@ struct framer_provider {
        struct module           *owner;
        struct list_head        list;
        struct framer * (*of_xlate)(struct device *dev,
-                                   struct of_phandle_args *args);
+                                   const struct of_phandle_args *args);
 };
 
 static inline void framer_set_drvdata(struct framer *framer, void *data)
@@ -118,19 +118,19 @@ struct framer *devm_framer_create(struct device *dev, struct device_node *node,
                                  const struct framer_ops *ops);
 
 struct framer *framer_provider_simple_of_xlate(struct device *dev,
-                                              struct of_phandle_args *args);
+                                              const struct of_phandle_args *args);
 
 struct framer_provider *
 __framer_provider_of_register(struct device *dev, struct module *owner,
                              struct framer *(*of_xlate)(struct device *dev,
-                                                        struct of_phandle_args *args));
+                                                        const struct of_phandle_args *args));
 
 void framer_provider_of_unregister(struct framer_provider *framer_provider);
 
 struct framer_provider *
 __devm_framer_provider_of_register(struct device *dev, struct module *owner,
                                   struct framer *(*of_xlate)(struct device *dev,
-                                                             struct of_phandle_args *args));
+                                                             const struct of_phandle_args *args));
 
 void framer_notify_status_change(struct framer *framer);
 
@@ -154,7 +154,7 @@ static inline struct framer *devm_framer_create(struct device *dev, struct devic
 }
 
 static inline struct framer *framer_provider_simple_of_xlate(struct device *dev,
-                                                            struct of_phandle_args *args)
+                                                            const struct of_phandle_args *args)
 {
        return ERR_PTR(-ENOSYS);
 }
@@ -162,7 +162,7 @@ static inline struct framer *framer_provider_simple_of_xlate(struct device *dev,
 static inline struct framer_provider *
 __framer_provider_of_register(struct device *dev, struct module *owner,
                              struct framer *(*of_xlate)(struct device *dev,
-                                                        struct of_phandle_args *args))
+                                                        const struct of_phandle_args *args))
 {
        return ERR_PTR(-ENOSYS);
 }
@@ -174,7 +174,7 @@ void framer_provider_of_unregister(struct framer_provider *framer_provider)
 static inline struct framer_provider *
 __devm_framer_provider_of_register(struct device *dev, struct module *owner,
                                   struct framer *(*of_xlate)(struct device *dev,
-                                                             struct of_phandle_args *args))
+                                                             const struct of_phandle_args *args))
 {
        return ERR_PTR(-ENOSYS);
 }