thermal: exynos: Modify private_data to appropriate name driver_data
authorAmit Daniel Kachhap <amit.daniel@samsung.com>
Mon, 24 Jun 2013 10:50:35 +0000 (16:20 +0530)
committerEduardo Valentin <eduardo.valentin@ti.com>
Tue, 13 Aug 2013 13:52:01 +0000 (09:52 -0400)
This patch renames member private_data to driver_data of the thermal
zone registration structure as this item stores the driver related
data and uses it to call the driver related callbacks.

Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Acked-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Acked-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
drivers/thermal/samsung/exynos_thermal_common.c
drivers/thermal/samsung/exynos_thermal_common.h
drivers/thermal/samsung/exynos_tmu.c

index 0b014e8bccf04f2f4eb1bf764de525bf38d0985f..c6eab8c5316f82b268570d9bc5e9cce7ca4e0992 100644 (file)
@@ -222,7 +222,7 @@ static int exynos_get_temp(struct thermal_zone_device *thermal,
                pr_info("Temperature sensor not initialised\n");
                return -EINVAL;
        }
-       data = th_zone->sensor_conf->private_data;
+       data = th_zone->sensor_conf->driver_data;
        *temp = th_zone->sensor_conf->read_temperature(data);
        /* convert the temperature into millicelsius */
        *temp = *temp * MCELSIUS;
@@ -241,7 +241,7 @@ static int exynos_set_emul_temp(struct thermal_zone_device *thermal,
                pr_info("Temperature sensor not initialised\n");
                return -EINVAL;
        }
-       data = th_zone->sensor_conf->private_data;
+       data = th_zone->sensor_conf->driver_data;
        if (th_zone->sensor_conf->write_emul_temp)
                ret = th_zone->sensor_conf->write_emul_temp(data, temp);
        return ret;
index 86c1f848c85004619516462bee0c6620d1088009..6ca3096568e498c7bc5240a1486a53f6ea5f4f72 100644 (file)
@@ -84,7 +84,7 @@ struct thermal_sensor_conf {
        int (*write_emul_temp)(void *drv_data, unsigned long temp);
        struct thermal_trip_point_conf trip_data;
        struct thermal_cooling_conf cooling_data;
-       void *private_data;
+       void *driver_data;
        void *pzone_data;
 };
 
index a7bba693be4f0b7543473535e7407caef446b4ef..40e0cfd3e84f6cf134416e8f28aa98bdc57c69ab 100644 (file)
@@ -504,7 +504,7 @@ static int exynos_tmu_probe(struct platform_device *pdev)
        exynos_tmu_control(pdev, true);
 
        /* Register the sensor with thermal management interface */
-       (&exynos_sensor_conf)->private_data = data;
+       (&exynos_sensor_conf)->driver_data = data;
        exynos_sensor_conf.trip_data.trip_count = pdata->trigger_enable[0] +
                        pdata->trigger_enable[1] + pdata->trigger_enable[2]+
                        pdata->trigger_enable[3];