]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/of_device.h
of: Add function for generating a DT modalias with a newline
[karo-tx-linux.git] / include / linux / of_device.h
index c12dace043f3c840a8bb4d4540e06f897eeca8cb..169ea0bd8eb4e72549331f4a181dec50ae3c1946 100644 (file)
@@ -34,8 +34,7 @@ extern void of_device_unregister(struct platform_device *ofdev);
 
 extern const void *of_device_get_match_data(const struct device *dev);
 
-extern ssize_t of_device_get_modalias(struct device *dev,
-                                       char *str, ssize_t len);
+extern ssize_t of_device_modalias(struct device *dev, char *str, ssize_t len);
 extern int of_device_request_module(struct device *dev);
 
 extern void of_device_uevent(struct device *dev, struct kobj_uevent_env *env);
@@ -72,8 +71,8 @@ static inline const void *of_device_get_match_data(const struct device *dev)
        return NULL;
 }
 
-static inline int of_device_get_modalias(struct device *dev,
-                                  char *str, ssize_t len)
+static inline int of_device_modalias(struct device *dev,
+                                    char *str, ssize_t len)
 {
        return -ENODEV;
 }