diff options
author | Jean Pihet <j-pihet@ti.com> | 2012-04-24 14:11:54 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2012-05-31 19:03:44 -0400 |
commit | 308d1bd0a7e6fedafacc389b134ef54458e39f4d (patch) | |
tree | e7ff8b5b7119b1b6fb4967cd5c821bf688530cf7 /arch | |
parent | 5e7f2e12e4ea14a34fb9b5941d60a4464fc8d40a (diff) |
ARM: OMAP2+: SmartReflex: Create per-opp debugfs node for errminlimit
Remove the global errminlimit debugfs entry and create per-voltage
entries from the data tables.
Signed-off-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: J Keerthy <j-keerthy@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch')
-rw-r--r-- | 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 20075de13868..515041ccccb8 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) | |||
979 | &sr_info->err_weight); | 979 | &sr_info->err_weight); |
980 | (void) debugfs_create_x32("errmaxlimit", S_IRUGO, sr_info->dbg_dir, | 980 | (void) debugfs_create_x32("errmaxlimit", S_IRUGO, sr_info->dbg_dir, |
981 | &sr_info->err_maxlimit); | 981 | &sr_info->err_maxlimit); |
982 | (void) debugfs_create_x32("errminlimit", S_IRUGO, sr_info->dbg_dir, | ||
983 | &sr_info->err_minlimit); | ||
984 | 982 | ||
985 | nvalue_dir = debugfs_create_dir("nvalue", sr_info->dbg_dir); | 983 | nvalue_dir = debugfs_create_dir("nvalue", sr_info->dbg_dir); |
986 | if (IS_ERR_OR_NULL(nvalue_dir)) { | 984 | if (IS_ERR_OR_NULL(nvalue_dir)) { |
@@ -1005,6 +1003,11 @@ static int __init omap_sr_probe(struct platform_device *pdev) | |||
1005 | sr_info->nvalue_table[i].volt_nominal); | 1003 | sr_info->nvalue_table[i].volt_nominal); |
1006 | (void) debugfs_create_x32(name, S_IRUGO | S_IWUSR, nvalue_dir, | 1004 | (void) debugfs_create_x32(name, S_IRUGO | S_IWUSR, nvalue_dir, |
1007 | &(sr_info->nvalue_table[i].nvalue)); | 1005 | &(sr_info->nvalue_table[i].nvalue)); |
1006 | snprintf(name, sizeof(name), "errminlimit_%lu", | ||
1007 | sr_info->nvalue_table[i].volt_nominal); | ||
1008 | (void) debugfs_create_x32(name, S_IRUGO | S_IWUSR, nvalue_dir, | ||
1009 | &(sr_info->nvalue_table[i].errminlimit)); | ||
1010 | |||
1008 | } | 1011 | } |
1009 | 1012 | ||
1010 | return ret; | 1013 | return ret; |