return pi->num_domains;
 }
 
-static char *scmi_power_name_get(const struct scmi_protocol_handle *ph,
-                                u32 domain)
+static const char *
+scmi_power_name_get(const struct scmi_protocol_handle *ph,
+                   u32 domain)
 {
        struct scmi_power_info *pi = ph->get_priv(ph);
        struct power_dom_info *dom = pi->dom_info + domain;
 
        return pi->num_domains;
 }
 
-static char *scmi_reset_name_get(const struct scmi_protocol_handle *ph,
-                                u32 domain)
+static const char *
+scmi_reset_name_get(const struct scmi_protocol_handle *ph, u32 domain)
 {
        struct scmi_reset_info *pi = ph->get_priv(ph);
 
 
  */
 struct scmi_power_proto_ops {
        int (*num_domains_get)(const struct scmi_protocol_handle *ph);
-       char *(*name_get)(const struct scmi_protocol_handle *ph, u32 domain);
+       const char *(*name_get)(const struct scmi_protocol_handle *ph,
+                               u32 domain);
 #define SCMI_POWER_STATE_TYPE_SHIFT    30
 #define SCMI_POWER_STATE_ID_MASK       (BIT(28) - 1)
 #define SCMI_POWER_STATE_PARAM(type, id) \
  */
 struct scmi_reset_proto_ops {
        int (*num_domains_get)(const struct scmi_protocol_handle *ph);
-       char *(*name_get)(const struct scmi_protocol_handle *ph, u32 domain);
+       const char *(*name_get)(const struct scmi_protocol_handle *ph,
+                               u32 domain);
        int (*latency_get)(const struct scmi_protocol_handle *ph, u32 domain);
        int (*reset)(const struct scmi_protocol_handle *ph, u32 domain);
        int (*assert)(const struct scmi_protocol_handle *ph, u32 domain);