if (!test_bit(*bit, handler->choices))
                return -EOPNOTSUPP;
 
-       return handler->profile_set(dev, *bit);
+       return handler->ops->profile_set(dev, *bit);
 }
 
 /**
 
        lockdep_assert_held(&profile_lock);
        handler = to_pprof_handler(dev);
-       err = handler->profile_get(dev, &val);
+       err = handler->ops->profile_get(dev, &val);
        if (err) {
                pr_err("Failed to get profile for handler %s\n", handler->name);
                return err;
 
        /* Sanity check the profile handler */
        if (!pprof || bitmap_empty(pprof->choices, PLATFORM_PROFILE_LAST) ||
-           !pprof->profile_set || !pprof->profile_get) {
+           !pprof->ops->profile_set || !pprof->ops->profile_get) {
                pr_err("platform_profile: handler is invalid\n");
                return -EINVAL;
        }
 
        return tp;
 }
 
+static const struct platform_profile_ops ssam_platform_profile_ops = {
+       .profile_get = ssam_platform_profile_get,
+       .profile_set = ssam_platform_profile_set,
+};
+
 static int surface_platform_profile_probe(struct ssam_device *sdev)
 {
        struct ssam_platform_profile_device *tpd;
 
        tpd->handler.name = "Surface Platform Profile";
        tpd->handler.dev = &sdev->dev;
-       tpd->handler.profile_get = ssam_platform_profile_get;
-       tpd->handler.profile_set = ssam_platform_profile_set;
+       tpd->handler.ops = &ssam_platform_profile_ops;
 
        tpd->has_fan = device_property_read_bool(&sdev->dev, "has_fan");
 
 
        return 0;
 }
 
+static const struct platform_profile_ops acer_predator_v4_platform_profile_ops = {
+       .profile_get = acer_predator_v4_platform_profile_get,
+       .profile_set = acer_predator_v4_platform_profile_set,
+};
+
 static int acer_platform_profile_setup(struct platform_device *device)
 {
        if (quirks->predator_v4) {
 
                platform_profile_handler.name = "acer-wmi";
                platform_profile_handler.dev = &device->dev;
-               platform_profile_handler.profile_get =
-                       acer_predator_v4_platform_profile_get;
-               platform_profile_handler.profile_set =
-                       acer_predator_v4_platform_profile_set;
+               platform_profile_handler.ops =
+                       &acer_predator_v4_platform_profile_ops;
 
                err = WMID_gaming_get_misc_setting(ACER_WMID_MISC_SETTING_SUPPORTED_PROFILES,
                                                   (u8 *)&supported_profiles);
 
        return 0;
 }
 
+static const struct platform_profile_ops amd_pmf_profile_ops = {
+       .profile_get = amd_pmf_profile_get,
+       .profile_set = amd_pmf_profile_set,
+};
+
 int amd_pmf_init_sps(struct amd_pmf_dev *dev)
 {
        int err;
 
        dev->pprof.name = "amd-pmf";
        dev->pprof.dev = dev->dev;
-       dev->pprof.profile_get = amd_pmf_profile_get;
-       dev->pprof.profile_set = amd_pmf_profile_set;
+       dev->pprof.ops = &amd_pmf_profile_ops;
 
        /* Setup supported modes */
        set_bit(PLATFORM_PROFILE_LOW_POWER, dev->pprof.choices);
 
        return throttle_thermal_policy_write(asus);
 }
 
+static const struct platform_profile_ops asus_wmi_platform_profile_ops = {
+       .profile_get = asus_wmi_platform_profile_get,
+       .profile_set = asus_wmi_platform_profile_set,
+};
+
 static int platform_profile_setup(struct asus_wmi *asus)
 {
        struct device *dev = &asus->platform_device->dev;
 
        asus->platform_profile_handler.name = "asus-wmi";
        asus->platform_profile_handler.dev = dev;
-       asus->platform_profile_handler.profile_get = asus_wmi_platform_profile_get;
-       asus->platform_profile_handler.profile_set = asus_wmi_platform_profile_set;
+       asus->platform_profile_handler.ops = &asus_wmi_platform_profile_ops;
 
        set_bit(PLATFORM_PROFILE_QUIET, asus->platform_profile_handler.choices);
        set_bit(PLATFORM_PROFILE_BALANCED,
 
        return wmax_thermal_control(supported_thermal_profiles[profile]);
 }
 
+static const struct platform_profile_ops awcc_platform_profile_ops = {
+       .profile_get = thermal_profile_get,
+       .profile_set = thermal_profile_set,
+};
+
 static int create_thermal_profile(struct platform_device *platform_device)
 {
        enum platform_profile_option profile;
                set_bit(PLATFORM_PROFILE_PERFORMANCE, pp_handler.choices);
        }
 
-       pp_handler.profile_get = thermal_profile_get;
-       pp_handler.profile_set = thermal_profile_set;
        pp_handler.name = "alienware-wmi";
        pp_handler.dev = &platform_device->dev;
+       pp_handler.ops = &awcc_platform_profile_ops;
 
        return devm_platform_profile_register(&pp_handler, NULL);
 }
 
        return 0;
 }
 
+static const struct platform_profile_ops dell_pc_platform_profile_ops = {
+       .profile_get = thermal_platform_profile_get,
+       .profile_set = thermal_platform_profile_set,
+};
+
 static int thermal_init(void)
 {
        int ret;
        }
        thermal_handler->name = "dell-pc";
        thermal_handler->dev = &platform_device->dev;
-       thermal_handler->profile_get = thermal_platform_profile_get;
-       thermal_handler->profile_set = thermal_platform_profile_set;
+       thermal_handler->ops = &dell_pc_platform_profile_ops;
 
        if (supported_modes & DELL_QUIET)
                set_bit(PLATFORM_PROFILE_QUIET, thermal_handler->choices);
 
        unregister_acpi_notifier(&platform_power_source_nb);
 }
 
+static const struct platform_profile_ops platform_profile_omen_ops = {
+       .profile_get = platform_profile_omen_get,
+       .profile_set = platform_profile_omen_set,
+};
+
+static const struct platform_profile_ops platform_profile_victus_ops = {
+       .profile_get = platform_profile_victus_get,
+       .profile_set = platform_profile_victus_set,
+};
+
+static const struct platform_profile_ops hp_wmi_platform_profile_ops = {
+       .profile_get = hp_wmi_platform_profile_get,
+       .profile_set = hp_wmi_platform_profile_set,
+};
+
 static int thermal_profile_setup(struct platform_device *device)
 {
        int err, tp;
                if (err < 0)
                        return err;
 
-               platform_profile_handler.profile_get = platform_profile_omen_get;
-               platform_profile_handler.profile_set = platform_profile_omen_set;
+               platform_profile_handler.ops = &platform_profile_omen_ops;
 
                set_bit(PLATFORM_PROFILE_COOL, platform_profile_handler.choices);
        } else if (is_victus_thermal_profile()) {
                if (err < 0)
                        return err;
 
-               platform_profile_handler.profile_get = platform_profile_victus_get;
-               platform_profile_handler.profile_set = platform_profile_victus_set;
+               platform_profile_handler.ops = &platform_profile_victus_ops;
 
                set_bit(PLATFORM_PROFILE_QUIET, platform_profile_handler.choices);
        } else {
                if (err)
                        return err;
 
-               platform_profile_handler.profile_get = hp_wmi_platform_profile_get;
-               platform_profile_handler.profile_set = hp_wmi_platform_profile_set;
+               platform_profile_handler.ops = &hp_wmi_platform_profile_ops;
 
                set_bit(PLATFORM_PROFILE_QUIET, platform_profile_handler.choices);
                set_bit(PLATFORM_PROFILE_COOL, platform_profile_handler.choices);
 
        {}
 };
 
+static const struct platform_profile_ops dytc_profile_ops = {
+       .profile_get = dytc_profile_get,
+       .profile_set = dytc_profile_set,
+};
+
 static int ideapad_dytc_profile_init(struct ideapad_private *priv)
 {
        int err, dytc_version;
        priv->dytc->pprof.name = "ideapad-laptop";
        priv->dytc->pprof.dev = &priv->platform_device->dev;
        priv->dytc->priv = priv;
-       priv->dytc->pprof.profile_get = dytc_profile_get;
-       priv->dytc->pprof.profile_set = dytc_profile_set;
+       priv->dytc->pprof.ops = &dytc_profile_ops;
 
        /* Setup supported modes */
        set_bit(PLATFORM_PROFILE_LOW_POWER, priv->dytc->pprof.choices);
 
        return 0;
 }
 
+static const struct platform_profile_ops inspur_platform_profile_ops = {
+       .profile_get = inspur_platform_profile_get,
+       .profile_set = inspur_platform_profile_set,
+};
+
 static int inspur_wmi_probe(struct wmi_device *wdev, const void *context)
 {
        struct inspur_wmi_priv *priv;
 
        priv->handler.name = "inspur-wmi";
        priv->handler.dev = &wdev->dev;
-       priv->handler.profile_get = inspur_platform_profile_get;
-       priv->handler.profile_set = inspur_platform_profile_set;
+       priv->handler.ops = &inspur_platform_profile_ops;
 
        set_bit(PLATFORM_PROFILE_LOW_POWER, priv->handler.choices);
        set_bit(PLATFORM_PROFILE_BALANCED, priv->handler.choices);
 
        return err;
 }
 
-static struct platform_profile_handler dytc_profile = {
-       .name = "thinkpad-acpi",
+static const struct platform_profile_ops dytc_profile_ops = {
        .profile_get = dytc_profile_get,
        .profile_set = dytc_profile_set,
 };
 
+static struct platform_profile_handler dytc_profile = {
+       .name = "thinkpad-acpi",
+       .ops = &dytc_profile_ops,
+};
+
 static void dytc_profile_refresh(void)
 {
        enum platform_profile_option profile;
 
        PLATFORM_PROFILE_LAST, /*must always be last */
 };
 
+struct platform_profile_handler;
+
+struct platform_profile_ops {
+       int (*profile_get)(struct device *dev, enum platform_profile_option *profile);
+       int (*profile_set)(struct device *dev, enum platform_profile_option profile);
+};
+
 struct platform_profile_handler {
        const char *name;
        struct device *dev;
        struct device class_dev;
        int minor;
        unsigned long choices[BITS_TO_LONGS(PLATFORM_PROFILE_LAST)];
-       int (*profile_get)(struct device *dev, enum platform_profile_option *profile);
-       int (*profile_set)(struct device *dev, enum platform_profile_option profile);
+       const struct platform_profile_ops *ops;
 };
 
 int platform_profile_register(struct platform_profile_handler *pprof, void *drvdata);