Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion ARM: OMAP2+: SmartReflex: Create per-opp debugfs node for errminlimit

Received: by 10.68.236.170 with SMTP id uv10mr6600868pbc.4.1335462127362;
        Thu, 26 Apr 2012 10:42:07 -0700 (PDT)
Path: r9ni101388pbh.0!nntp.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!uio.no!nntp.uio.no!.POSTED!not-for-mail
From: Keerthy <j-keer...@ti.com>
Newsgroups: fa.linux.kernel
Subject: [PATCH V3 08/10] ARM: OMAP2+: SmartReflex: Create per-opp debugfs node for errminlimit
Date: Thu, 26 Apr 2012 17:42:06 UTC
Organization: Internet mailing list
Lines: 44
Sender: linux-kernel-ow...@vger.kernel.org
Message-ID: <fa.o5HP1plyL6NdiPiEFww1u+8k4es@ifi.uio.no>
References: <fa.p9k3qSVvWhQ+szHU2tM2an5dQbs@ifi.uio.no>
NNTP-Posting-Host: mail-jess.uio.no
Mime-Version: 1.0
X-Trace: readme.uio.no 1335462126 8510 129.240.7.9 (26 Apr 2012 17:42:06 GMT)
X-Complaints-To: abuse@uio.no
NNTP-Posting-Date: Thu, 26 Apr 2012 17:42:06 +0000 (UTC)
Cc: <j-pi...@ti.com>, <j-keer...@ti.com>
To: <linux-o...@vger.kernel.org>,
	<linux-arm-ker...@lists.infradead.org>, <khil...@ti.com>,
	<r...@sisk.pl>, <linux-ker...@vger.kernel.org>,
	<linux...@lists.linux-foundation.org>
X-Mailer: git-send-email 1.7.0.4
In-Reply-To: <1335462041-4949-1-git-send-email-j-keerthy@ti.com>
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org
Original-Date: Thu, 26 Apr 2012 23:10:39 +0530
Original-Message-Id: <1335462041-4949-9-git-send-email-j-keerthy@ti.com>
Original-References: <1335462041-4949-1-git-send-email-j-keer...@ti.com>
Content-Type: text/plain

From: Jean Pihet <j-pi...@ti.com>

Remove the global errminlimit debugfs entry and create per-voltage
entries from the data tables.

Signed-off-by: Jean Pihet <j-pi...@ti.com>
Signed-off-by: J Keerthy <j-keer...@ti.com>
---
 arch/arm/mach-omap2/smartreflex.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c
index 20075de..515041c 100644
--- a/arch/arm/mach-omap2/smartreflex.c
+++ b/arch/arm/mach-omap2/smartreflex.c
@@ -979,8 +979,6 @@ static int __init omap_sr_probe(struct platform_device *pdev)
 			&sr_info->err_weight);
 	(void) debugfs_create_x32("errmaxlimit", S_IRUGO, sr_info->dbg_dir,
 			&sr_info->err_maxlimit);
-	(void) debugfs_create_x32("errminlimit", S_IRUGO, sr_info->dbg_dir,
-			&sr_info->err_minlimit);
 
 	nvalue_dir = debugfs_create_dir("nvalue", sr_info->dbg_dir);
 	if (IS_ERR_OR_NULL(nvalue_dir)) {
@@ -1005,6 +1003,11 @@ static int __init omap_sr_probe(struct platform_device *pdev)
 				sr_info->nvalue_table[i].volt_nominal);
 		(void) debugfs_create_x32(name, S_IRUGO | S_IWUSR, nvalue_dir,
 				&(sr_info->nvalue_table[i].nvalue));
+		snprintf(name, sizeof(name), "errminlimit_%lu",
+			 sr_info->nvalue_table[i].volt_nominal);
+		(void) debugfs_create_x32(name, S_IRUGO | S_IWUSR, nvalue_dir,
+				&(sr_info->nvalue_table[i].errminlimit));
+
 	}
 
 	return ret;
-- 
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/