]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
Revert "drivers: misc: nct: add userspace event"
authorSai Gurrappadi <sgurrappadi@nvidia.com>
Mon, 28 Oct 2013 18:23:17 +0000 (11:23 -0700)
committerDiwakar Tundlam <dtundlam@nvidia.com>
Sat, 16 Nov 2013 00:37:33 +0000 (16:37 -0800)
This reverts commit c4832e46ca26091b0f0a64f7babdd71e75816f38.

The purpose of this commit has been deprecated therefore removing
the spurious event.

Bug 1349095

Change-Id: I56f4eccc8be839e690db108bcb456a39fd110705
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/332009
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
drivers/misc/nct1008.c

index e2a802632e518a0f2439f0523e9576201d04976c..32a62f474343fa6b480cc22d5ea8aea4280339cf 100644 (file)
@@ -655,7 +655,6 @@ static void nct1008_update(struct nct1008_data *data)
        struct thermal_trip_info *trip_state;
        long temp, trip_temp, hysteresis_temp;
        int count;
-       enum events type = 0;
 
        if (!thz)
                return;
@@ -672,18 +671,13 @@ static void nct1008_update(struct nct1008_data *data)
                    !trip_state->tripped)
                        hysteresis_temp = trip_temp;
 
-               if ((trip_temp >= temp) && (trip_temp < high_temp)) {
+               if ((trip_temp >= temp) && (trip_temp < high_temp))
                        high_temp = trip_temp;
-                       type = THERMAL_AUX1;
-               }
 
-               if ((hysteresis_temp < temp) && (hysteresis_temp > low_temp)) {
+               if ((hysteresis_temp < temp) && (hysteresis_temp > low_temp))
                        low_temp = hysteresis_temp;
-                       type = THERMAL_AUX0;
-               }
        }
 
-       thermal_generate_netlink_event(thz, type);
        nct1008_thermal_set_limits(data, low_temp, high_temp);
 }