diff options
author | Hyungwoo Yang <hyungwooy@nvidia.com> | 2013-05-13 14:22:21 -0700 |
---|---|---|
committer | Mandar Padmawar <mpadmawar@nvidia.com> | 2013-05-23 00:48:23 -0700 |
commit | a9e91fdc60987d392a1aee915242791fa1fa4f8c (patch) | |
tree | 797ea03e4f4380ca5edca380116c1015acaad15b /drivers/misc/nct1008.c | |
parent | 25b599ff901749e3db79660362ea1c155705cd1a (diff) |
misc: nct1008: change names of zone devices
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>
Diffstat (limited to 'drivers/misc/nct1008.c')
-rw-r--r-- | drivers/misc/nct1008.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/misc/nct1008.c b/drivers/misc/nct1008.c index 9bc60c822b98..31b1d19320f8 100644 --- a/drivers/misc/nct1008.c +++ b/drivers/misc/nct1008.c @@ -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, |