arm: tegra: kai: change thermal sensor to nct72
Chandler Zhang [Fri, 4 May 2012 03:35:44 +0000 (11:35 +0800)]
Kai board uses OnSemi NCT72 thermal sensor.
NCT72 is pin and register compatible to NCT1008.
Change the i2c device id from "nct1008" to "nct72" to avoid
confusion.

Bug 961970

Reviewed-on: http://git-master/r/100466
Signed-off-by: Chandler Zhang <chazhang@nvidia.com>
(cherry picked from commit 07ed4a320ff7e18e615270e0e15bd4212e6a7c9f)

Change-Id: I6ef858d27b1b1f35ddd071542bb22caed2e776ab
Reviewed-on: http://git-master/r/103582
Tested-by: Daniel Fu <danifu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

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

index a9b8f8d..9564aaf 100644 (file)
@@ -85,7 +85,7 @@ static void nct1008_probe_callback(struct nct1008_data *data)
                return;
        }
 
-       thermal_device->name = "nct1008";
+       thermal_device->name = "nct72";
        thermal_device->data = data;
        thermal_device->offset = TDIODE_OFFSET;
        thermal_device->get_temp = nct_get_temp;
@@ -110,7 +110,7 @@ static struct nct1008_platform_data kai_nct1008_pdata = {
 
 static struct i2c_board_info kai_i2c4_nct1008_board_info[] = {
        {
-               I2C_BOARD_INFO("nct1008", 0x4C),
+               I2C_BOARD_INFO("nct72", 0x4C),
                .platform_data = &kai_nct1008_pdata,
                .irq = -1,
        }