misc: nct1008: Add thermal_zone_params in struct nct1008_platform_data
Jinyoung Park [Thu, 31 Jan 2013 13:15:44 +0000 (22:15 +0900)]
Added thermal_zone_params in struct nct1008_platform_data in order to
pass governor and binding params to nct1008 thermal zone device.

Bug 1200111

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/196028
(cherry picked from commit 7de865bccc8da80cf950346edab75a3e7221a45e)

Change-Id: I825d7380f6f29a1dd8d4a9333ed873255b2deb67
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/198873
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

drivers/misc/nct1008.c
include/linux/nct1008.h

index eab896a..78738fb 100644 (file)
@@ -1154,7 +1154,7 @@ static int nct1008_probe(struct i2c_client *client,
                                        mask,
                                        data,
                                        &nct_ext_ops,
-                                       NULL,
+                                       data->plat_data.tzp,
                                        data->plat_data.passive_delay,
                                        0);
        if (IS_ERR_OR_NULL(data->nct_ext)) {
index e1f893a..06704fb 100644 (file)
@@ -42,6 +42,7 @@ struct nct1008_platform_data {
        int passive_delay;
        int num_trips;
        struct thermal_trip_info trips[THERMAL_MAX_TRIPS];
+       struct thermal_zone_params *tzp;
        const char *loc_name;
 };
 #endif /* _LINUX_NCT1008_H */