From patchwork Fri Dec 18 17:46:01 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 68744 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBIHkIZ5031611 for ; Fri, 18 Dec 2009 17:46:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932343AbZLRRqR (ORCPT ); Fri, 18 Dec 2009 12:46:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932294AbZLRRqQ (ORCPT ); Fri, 18 Dec 2009 12:46:16 -0500 Received: from mail-gx0-f211.google.com ([209.85.217.211]:45214 "EHLO mail-gx0-f211.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932274AbZLRRqN (ORCPT ); Fri, 18 Dec 2009 12:46:13 -0500 Received: by gxk3 with SMTP id 3so2255938gxk.1 for ; Fri, 18 Dec 2009 09:46:11 -0800 (PST) Received: by 10.150.173.7 with SMTP id v7mr1679593ybe.9.1261158371582; Fri, 18 Dec 2009 09:46:11 -0800 (PST) Received: from localhost (deeprootsystems.com [216.254.16.51]) by mx.google.com with ESMTPS id 20sm2314775iwn.9.2009.12.18.09.46.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 18 Dec 2009 09:46:11 -0800 (PST) From: Kevin Hilman To: linux-omap@vger.kernel.org Cc: nm@ti.com Subject: [PATCH 4/4] OMAP OPP: hide struct omap_opp internals in OPP layer implementation Date: Fri, 18 Dec 2009 09:46:01 -0800 Message-Id: <1261158361-28974-5-git-send-email-khilman@deeprootsystems.com> X-Mailer: git-send-email 1.6.6.rc2.1.g42108 In-Reply-To: <1261158361-28974-4-git-send-email-khilman@deeprootsystems.com> References: <1261158361-28974-1-git-send-email-khilman@deeprootsystems.com> <1261158361-28974-2-git-send-email-khilman@deeprootsystems.com> <1261158361-28974-3-git-send-email-khilman@deeprootsystems.com> <1261158361-28974-4-git-send-email-khilman@deeprootsystems.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/plat-omap/include/plat/opp.h b/arch/arm/plat-omap/include/plat/opp.h index 038a5c0..f049033 100644 --- a/arch/arm/plat-omap/include/plat/opp.h +++ b/arch/arm/plat-omap/include/plat/opp.h @@ -17,24 +17,7 @@ extern struct omap_opp *mpu_opps; extern struct omap_opp *dsp_opps; extern struct omap_opp *l3_opps; -/** - * struct omap_opp - OMAP OPP description structure - * @enabled: true/false - marking this OPP as enabled/disabled - * @rate: Frequency in hertz - * @opp_id: (DEPRECATED) opp identifier - * @u_volt: minimum microvolts DC required for this OPP to function - * - * This structure stores the OPP information for a given domain. - * Due to legacy reasons, this structure is currently exposed and - * will soon be removed elsewhere and will only be used as a handle - * from the OPP internal referencing mechanism - */ -struct omap_opp { - bool enabled; - unsigned long rate; - unsigned long u_volt; - u8 __deprecated opp_id; -}; +struct omap_opp; /** * opp_get_voltage() - Gets the voltage corresponding to an opp diff --git a/arch/arm/plat-omap/opp.c b/arch/arm/plat-omap/opp.c index 71b021b..8e0df5d 100644 --- a/arch/arm/plat-omap/opp.c +++ b/arch/arm/plat-omap/opp.c @@ -19,6 +19,25 @@ #include #include +/** + * struct omap_opp - OMAP OPP description structure + * @enabled: true/false - marking this OPP as enabled/disabled + * @rate: Frequency in hertz + * @opp_id: (DEPRECATED) opp identifier + * @u_volt: minimum microvolts DC required for this OPP to function + * + * This structure stores the OPP information for a given domain. + * Due to legacy reasons, this structure is currently exposed and + * will soon be removed elsewhere and will only be used as a handle + * from the OPP internal referencing mechanism + */ +struct omap_opp { + bool enabled; + unsigned long rate; + unsigned long u_volt; + u8 opp_id; +}; + /* * DEPRECATED: Meant to detect end of opp array * This is meant to help co-exist with current SRF etc