From: Shreshtha SAHU Date: Mon, 22 Feb 2016 09:48:50 +0000 (+0530) Subject: tegra: soctherm: fix negative temp debugfs output X-Git-Tag: tegra-l4t-r24.1~91 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/sojka/nv-tegra/linux-3.10.git/commitdiff_plain/0722c04b580641432e9b6040e825769901ac250e tegra: soctherm: fix negative temp debugfs output 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 Reviewed-on: http://git-master/r/1014847 (cherry picked from commit 43519725b7a82482dd715ab92033ad746ae28b94) Reviewed-on: http://git-master/r/1020605 Reviewed-by: mobile promotions Tested-by: mobile promotions --- diff --git a/drivers/platform/tegra/tegra_soctherm.c b/drivers/platform/tegra/tegra_soctherm.c index 81e1b7e05b5..827082444db 100644 --- a/drivers/platform/tegra/tegra_soctherm.c +++ b/drivers/platform/tegra/tegra_soctherm.c @@ -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");