Commit 4acab508 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rafael J. Wysocki

thermal: core: constify 'type' in devm_thermal_of_cooling_device_register()

The 'type' string passed to thermal_of_cooling_device_register() is a
'const char *', so do the same in the devm interface.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20240703083141.96013-1-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 6fb75c96
...@@ -1129,7 +1129,7 @@ static void thermal_cooling_device_release(struct device *dev, void *res) ...@@ -1129,7 +1129,7 @@ static void thermal_cooling_device_release(struct device *dev, void *res)
struct thermal_cooling_device * struct thermal_cooling_device *
devm_thermal_of_cooling_device_register(struct device *dev, devm_thermal_of_cooling_device_register(struct device *dev,
struct device_node *np, struct device_node *np,
char *type, void *devdata, const char *type, void *devdata,
const struct thermal_cooling_device_ops *ops) const struct thermal_cooling_device_ops *ops)
{ {
struct thermal_cooling_device **ptr, *tcd; struct thermal_cooling_device **ptr, *tcd;
......
...@@ -261,7 +261,7 @@ thermal_of_cooling_device_register(struct device_node *np, const char *, void *, ...@@ -261,7 +261,7 @@ thermal_of_cooling_device_register(struct device_node *np, const char *, void *,
struct thermal_cooling_device * struct thermal_cooling_device *
devm_thermal_of_cooling_device_register(struct device *dev, devm_thermal_of_cooling_device_register(struct device *dev,
struct device_node *np, struct device_node *np,
char *type, void *devdata, const char *type, void *devdata,
const struct thermal_cooling_device_ops *ops); const struct thermal_cooling_device_ops *ops);
void thermal_cooling_device_update(struct thermal_cooling_device *); void thermal_cooling_device_update(struct thermal_cooling_device *);
void thermal_cooling_device_unregister(struct thermal_cooling_device *); void thermal_cooling_device_unregister(struct thermal_cooling_device *);
...@@ -305,7 +305,7 @@ thermal_of_cooling_device_register(struct device_node *np, ...@@ -305,7 +305,7 @@ thermal_of_cooling_device_register(struct device_node *np,
static inline struct thermal_cooling_device * static inline struct thermal_cooling_device *
devm_thermal_of_cooling_device_register(struct device *dev, devm_thermal_of_cooling_device_register(struct device *dev,
struct device_node *np, struct device_node *np,
char *type, void *devdata, const char *type, void *devdata,
const struct thermal_cooling_device_ops *ops) const struct thermal_cooling_device_ops *ops)
{ {
return ERR_PTR(-ENODEV); return ERR_PTR(-ENODEV);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment