Signed-off-by: Luc Verhaegen <[email protected]>
---
meminfo.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/meminfo.c b/meminfo.c
index f268e66..c845227 100644
--- a/meminfo.c
+++ b/meminfo.c
@@ -152,7 +152,7 @@ soc_version_check(void)
#define SUNXI_IO_CCM_PLL5_CFG 0x20
static int
-dram_clock_read(struct dram_para *dram_para)
+sunxi_dram_clock_read(unsigned int *clock)
{
void *base;
unsigned int tmp;
@@ -174,7 +174,7 @@ dram_clock_read(struct dram_para *dram_para)
k = ((tmp >> 4) & 0x03) + 1;
m = (tmp & 0x03) + 1;
- dram_para->clock = (24 * n * k) / m;
+ *clock = (24 * n * k) / m;
return 0;
}
@@ -407,7 +407,7 @@ main(int argc, char *argv[])
if (ret)
return ret;
- ret = dram_clock_read(&dram_para);
+ ret = sunxi_dram_clock_read(&dram_para.clock);
if (ret)
return ret;
--
1.7.7
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.