]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
arm: tegra: soctherm: fix pointer misuse in zoneid
authorDiwakar Tundlam <dtundlam@nvidia.com>
Mon, 24 Mar 2014 21:49:35 +0000 (14:49 -0700)
committerDiwakar Tundlam <dtundlam@nvidia.com>
Tue, 25 Mar 2014 00:20:32 +0000 (17:20 -0700)
commite014eff738f9598812e3105958bdc6e173db9285
treec9835a61b6fcccdf7cbaa6672281084b9c10278e
parentd9c42e5bc506d92c0417b61fb906289398afeda4
arm: tegra: soctherm: fix pointer misuse in zoneid

Storing the integer local thermal array index in tz->devdata pointer
is a misuse of pointers and gives rise to compilation warnings in
64bit builds.

Fix this by storing the pointer to the local therm structure and
retrieving it in the called routines. Since we can no longer have a
thermal zone for each tsensor, we don't support it anymore.

When handling soctherm HW interrupt, we know the exact trip_point
triggered. There's no need to update the entire zone. Hence we switch
to using the thermal_notify_framework API that takes the
specific trip_point.

Bug 1478989

Change-Id: I2211114602d54a4b0ca9d9780ce9a0b68e1ccecc
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/385817
arch/arm/mach-tegra/tegra11_soctherm.c
arch/arm/mach-tegra/tegra11_soctherm.h