struct brcmstb_thermal_params {
        unsigned int offset;
        unsigned int mult;
+       const struct thermal_zone_of_device_ops *of_ops;
 };
 
 struct brcmstb_thermal_priv {
        return 0;
 }
 
-static const struct thermal_zone_of_device_ops of_ops = {
+static const struct thermal_zone_of_device_ops brcmstb_16nm_of_ops = {
        .get_temp       = brcmstb_get_temp,
-       .set_trips      = brcmstb_set_trips,
 };
 
 static const struct brcmstb_thermal_params brcmstb_16nm_params = {
        .offset = 457829,
        .mult   = 557,
+       .of_ops = &brcmstb_16nm_of_ops,
+};
+
+static const struct thermal_zone_of_device_ops brcmstb_28nm_of_ops = {
+       .get_temp       = brcmstb_get_temp,
+       .set_trips      = brcmstb_set_trips,
 };
 
 static const struct brcmstb_thermal_params brcmstb_28nm_params = {
        .offset = 410040,
        .mult   = 487,
+       .of_ops = &brcmstb_28nm_of_ops,
 };
 
 static const struct of_device_id brcmstb_thermal_id_table[] = {
 
 static int brcmstb_thermal_probe(struct platform_device *pdev)
 {
+       const struct thermal_zone_of_device_ops *of_ops;
        struct thermal_zone_device *thermal;
        struct brcmstb_thermal_priv *priv;
        struct resource *res;
 
        priv->dev = &pdev->dev;
        platform_set_drvdata(pdev, priv);
+       of_ops = priv->temp_params->of_ops;
 
        thermal = devm_thermal_zone_of_sensor_register(&pdev->dev, 0, priv,
-                                                      &of_ops);
+                                                      of_ops);
        if (IS_ERR(thermal)) {
                ret = PTR_ERR(thermal);
                dev_err(&pdev->dev, "could not register sensor: %d\n", ret);