misc: nct1008: change names of zone devices
Hyungwoo Yang [Mon, 13 May 2013 21:22:21 +0000 (14:22 -0700)]
Changed names of zone devices this driver creates.
New names are based on where the device probe.

nct_ext -> Tdiode
nct_int -> Tboard

Bug 1261182

Change-Id: I92101299b1998925f00e8ce379bbd0aea1c3764b
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/228129
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Edward Riegelsberger <eriegels@nvidia.com>
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

drivers/misc/nct1008.c

index 9bc60c8..31b1d19 100644 (file)
@@ -1141,15 +1141,15 @@ static int __devinit nct1008_probe(struct i2c_client *client,
                mask |= (1 << i);
 
        if (data->plat_data.loc_name) {
-               strcpy(nct_int_name, "nct_int_");
-               strcpy(nct_ext_name, "nct_ext_");
+               strcpy(nct_int_name, "Tdiode_");
+               strcpy(nct_ext_name, "Tboard_");
                strncat(nct_int_name, data->plat_data.loc_name,
-                       (THERMAL_NAME_LENGTH - strlen("nct_int_")) - 1);
+                       (THERMAL_NAME_LENGTH - strlen("Tdiode_")) - 1);
                strncat(nct_ext_name, data->plat_data.loc_name,
-                       (THERMAL_NAME_LENGTH - strlen("nct_ext_")) - 1);
+                       (THERMAL_NAME_LENGTH - strlen("Tboard_")) - 1);
        } else {
-               strcpy(nct_int_name, "nct_int");
-               strcpy(nct_ext_name, "nct_ext");
+               strcpy(nct_int_name, "Tdiode");
+               strcpy(nct_ext_name, "Tboard");
        }
 
        data->nct_int = thermal_zone_device_register(nct_int_name,