arm: tegra: thermal: Added name per therm device
Joshua Primero [Fri, 16 Dec 2011 19:09:50 +0000 (11:09 -0800)]
Added name paramater per therm device so that is
easy to tell which therm device is being used
from sysfs

Change-Id: I58488b4c50ac6dc58dc00e270b613458f61a9fd6
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/70929
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: R5a00a0081d39c6a2ecde70f148ed93eac2539e4a

arch/arm/mach-tegra/board-cardhu-sensors.c

index 126d0ea..54b9cdd 100644 (file)
@@ -572,6 +572,7 @@ static void nct1008_probe_callback(struct nct1008_data *data)
                return;
        }
 
+       thermal_device->name = "nct1008";
        thermal_device->data = data;
        thermal_device->offset = TDIODE_OFFSET;
        thermal_device->get_temp = nct_get_temp;