From 73c0b88ca702b02d29d1836c79b51868c5025c75 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 29 Aug 2012 08:16:09 +0300 Subject: video: tegra: host: Use unsigned integer in sysfs Sync point values are unsigned, but sysfs creates the text representation as signed. Correct to use unsigned representation. Bug 1039058 Change-Id: I96de13952eeeba9510bae179a036459ddee18dcd Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/128075 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Juha Tukkinen Reviewed-by: Michal Pecio --- drivers/video/tegra/host/nvhost_syncpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/video/tegra') diff --git a/drivers/video/tegra/host/nvhost_syncpt.c b/drivers/video/tegra/host/nvhost_syncpt.c index d30028b0c7a4..38c28ca116e7 100644 --- a/drivers/video/tegra/host/nvhost_syncpt.c +++ b/drivers/video/tegra/host/nvhost_syncpt.c @@ -344,7 +344,7 @@ static ssize_t syncpt_min_show(struct kobject *kobj, struct nvhost_syncpt_attr *syncpt_attr = container_of(attr, struct nvhost_syncpt_attr, attr); - return snprintf(buf, PAGE_SIZE, "%d", + return snprintf(buf, PAGE_SIZE, "%u", nvhost_syncpt_read(&syncpt_attr->host->syncpt, syncpt_attr->id)); } @@ -355,7 +355,7 @@ static ssize_t syncpt_max_show(struct kobject *kobj, struct nvhost_syncpt_attr *syncpt_attr = container_of(attr, struct nvhost_syncpt_attr, attr); - return snprintf(buf, PAGE_SIZE, "%d", + return snprintf(buf, PAGE_SIZE, "%u", nvhost_syncpt_read_max(&syncpt_attr->host->syncpt, syncpt_attr->id)); } -- cgit v1.2.3