]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
tegra: soctherm: fix negative temp debugfs output
authorShreshtha SAHU <ssahu@nvidia.com>
Mon, 22 Feb 2016 09:48:50 +0000 (15:18 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Sun, 6 Mar 2016 15:53:35 +0000 (07:53 -0800)
soctherm debugfs temperature nodes were not printing negative temperatures.
Fixed attribute from %llu to %lld to print negative values, instead of in
two's complement.

Bug 200168448

Change-Id: I1c7220c41d51f1a350db32cbf6f722cf97cdc258
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/1014847
(cherry picked from commit 43519725b7a82482dd715ab92033ad746ae28b94)
Reviewed-on: http://git-master/r/1020605
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
drivers/platform/tegra/tegra_soctherm.c

index 81e1b7e05b51492cc5ef7517829af0c0b7853e57..827082444dbd39392cf75e3fb64c05bcea095de1 100644 (file)
@@ -4245,11 +4245,11 @@ static int tempoverride_set(void *data, u64 val)
        return 0;
 }
 
-DEFINE_SIMPLE_ATTRIBUTE(convert_fops, convert_get, convert_set, "%llu\n");
-DEFINE_SIMPLE_ATTRIBUTE(cputemp_fops, cputemp_get, cputemp_set, "%llu\n");
-DEFINE_SIMPLE_ATTRIBUTE(gputemp_fops, gputemp_get, gputemp_set, "%llu\n");
-DEFINE_SIMPLE_ATTRIBUTE(memtemp_fops, memtemp_get, memtemp_set, "%llu\n");
-DEFINE_SIMPLE_ATTRIBUTE(plltemp_fops, plltemp_get, plltemp_set, "%llu\n");
+DEFINE_SIMPLE_ATTRIBUTE(convert_fops, convert_get, convert_set, "%lld\n");
+DEFINE_SIMPLE_ATTRIBUTE(cputemp_fops, cputemp_get, cputemp_set, "%lld\n");
+DEFINE_SIMPLE_ATTRIBUTE(gputemp_fops, gputemp_get, gputemp_set, "%lld\n");
+DEFINE_SIMPLE_ATTRIBUTE(memtemp_fops, memtemp_get, memtemp_set, "%lld\n");
+DEFINE_SIMPLE_ATTRIBUTE(plltemp_fops, plltemp_get, plltemp_set, "%lld\n");
 DEFINE_SIMPLE_ATTRIBUTE(tempoverride_fops, tempoverride_get, tempoverride_set,
                        "%llu\n");