From patchwork Thu Aug 25 13:47:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 3673 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 3D02723F22 for ; Thu, 25 Aug 2011 13:47:07 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id 06F6AA188C7 for ; Thu, 25 Aug 2011 13:47:06 +0000 (UTC) Received: by yxi11 with SMTP id 11so2482455yxi.11 for ; Thu, 25 Aug 2011 06:47:06 -0700 (PDT) Received: by 10.150.210.19 with SMTP id i19mr1002917ybg.440.1314280026476; Thu, 25 Aug 2011 06:47:06 -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.151.27.20 with SMTP id e20cs238185ybj; Thu, 25 Aug 2011 06:47:06 -0700 (PDT) Received: by 10.216.137.147 with SMTP id y19mr1798608wei.112.1314280025301; Thu, 25 Aug 2011 06:47:05 -0700 (PDT) Received: from mtagate2.uk.ibm.com (mtagate2.uk.ibm.com [194.196.100.162]) by mx.google.com with ESMTPS id j13si1577463wed.109.2011.08.25.06.47.03 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Aug 2011 06:47:05 -0700 (PDT) Received-SPF: neutral (google.com: 194.196.100.162 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=194.196.100.162; Authentication-Results: mx.google.com; spf=neutral (google.com: 194.196.100.162 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: from d06nrmr1507.portsmouth.uk.ibm.com (d06nrmr1507.portsmouth.uk.ibm.com [9.149.38.233]) by mtagate2.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p7PDl36J020711 for ; Thu, 25 Aug 2011 13:47:03 GMT Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [9.149.37.248]) by d06nrmr1507.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p7PDl2fC2428968 for ; Thu, 25 Aug 2011 14:47:02 +0100 Received: from d06av07.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p7PDl2Y1025189 for ; Thu, 25 Aug 2011 07:47:02 -0600 Received: from smtp.lab.toulouse-stg.fr.ibm.com (srv01.lab.toulouse-stg.fr.ibm.com [9.101.4.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p7PDl2s5025176; Thu, 25 Aug 2011 07:47:02 -0600 Received: from localhost.localdomain (sig-9-145-110-19.uk.ibm.com [9.145.110.19]) by smtp.lab.toulouse-stg.fr.ibm.com (Postfix) with ESMTP id CAEE021101F; Thu, 25 Aug 2011 15:47:01 +0200 (CEST) From: Daniel Lezcano To: linaro-dev@lists.linaro.org Subject: [powerdebug 2/7] add GPIO definition Date: Thu, 25 Aug 2011 15:47:02 +0200 Message-Id: <1314280027-7547-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1314280027-7547-1-git-send-email-daniel.lezcano@linaro.org> References: <1314280027-7547-1-git-send-email-daniel.lezcano@linaro.org> Add the enum definition we can rely on for the next patches. Signed-off-by: Daniel Lezcano --- display.c | 1 + display.h | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/display.c b/display.c index ebc4de6..f06387c 100644 --- a/display.c +++ b/display.c @@ -63,6 +63,7 @@ struct windata windata[] = { [CLOCK] = { .name = "Clocks" }, [REGULATOR] = { .name = "Regulators" }, [SENSOR] = { .name = "Sensors" }, + [GPIO] = { .name = "Gpio" }, }; static void display_fini(void) diff --git a/display.h b/display.h index 9e4e21a..035b2e9 100644 --- a/display.h +++ b/display.h @@ -13,7 +13,7 @@ * - initial API and implementation *******************************************************************************/ -enum { CLOCK, REGULATOR, SENSOR }; +enum { CLOCK, REGULATOR, SENSOR, GPIO }; struct display_ops { int (*display)(bool refresh);