From patchwork Thu Jun 16 20:29:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 1991 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 54A0323E54 for ; Thu, 16 Jun 2011 20:31:46 +0000 (UTC) Received: from mail-vx0-f180.google.com (mail-vx0-f180.google.com [209.85.220.180]) by fiordland.canonical.com (Postfix) with ESMTP id 24CBFA18585 for ; Thu, 16 Jun 2011 20:31:46 +0000 (UTC) Received: by mail-vx0-f180.google.com with SMTP id 12so2092646vxk.11 for ; Thu, 16 Jun 2011 13:31:46 -0700 (PDT) Received: by 10.52.75.4 with SMTP id y4mr1869677vdv.167.1308256305758; Thu, 16 Jun 2011 13:31:45 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.52.183.130 with SMTP id em2cs211204vdc; Thu, 16 Jun 2011 13:31:45 -0700 (PDT) Received: by 10.216.234.209 with SMTP id s59mr1441008weq.18.1308256302596; Thu, 16 Jun 2011 13:31:42 -0700 (PDT) Received: from smtp.smtpout.orange.fr (smtp08.smtpout.orange.fr [80.12.242.130]) by mx.google.com with ESMTP id d43si5058987wek.124.2011.06.16.13.31.42; Thu, 16 Jun 2011 13:31:42 -0700 (PDT) Received-SPF: neutral (google.com: 80.12.242.130 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=80.12.242.130; Authentication-Results: mx.google.com; spf=neutral (google.com: 80.12.242.130 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: from monster.dhcp.lxc ([92.134.76.78]) by mwinf5d16 with ME id wkXf1g0031hMfSL03kXhJS; Thu, 16 Jun 2011 22:31:41 +0200 From: Daniel Lezcano To: patches@linaro.org Subject: [PATCH 06/28] move clock_info structure definition Date: Thu, 16 Jun 2011 22:29:35 +0200 Message-Id: <1308256197-29155-6-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1308256197-29155-1-git-send-email-daniel.lezcano@linaro.org> References: <1308256197-29155-1-git-send-email-daniel.lezcano@linaro.org> Let's make this structure private Signed-off-by: Daniel Lezcano --- clocks.c | 13 +++++++++++++ clocks.h | 13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/clocks.c b/clocks.c index 3a93421..4d8a2be 100644 --- a/clocks.c +++ b/clocks.c @@ -28,6 +28,19 @@ static char clock_lines[MAX_LINES][128]; static int clock_line_no; static int old_clock_line_no; +struct clock_info { + char name[NAME_MAX]; + int flags; + int rate; + int usecount; + int num_children; + int last_child; + int expanded; + int level; + struct clock_info *parent; + struct clock_info **children; +} *clocks_info; + static int locate_debugfs(char *clk_path) { const char *mtab = "/proc/mounts"; diff --git a/clocks.h b/clocks.h index 9ad9804..d66c061 100644 --- a/clocks.h +++ b/clocks.h @@ -15,17 +15,4 @@ extern int maxy; -struct clock_info { - char name[NAME_MAX]; - int flags; - int rate; - int usecount; - int num_children; - int last_child; - int expanded; - int level; - struct clock_info *parent; - struct clock_info **children; -} *clocks_info; - extern int clock_init(void);