From patchwork Wed Oct 10 22:21:31 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 12160 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 CD98C23EFB for ; Wed, 10 Oct 2012 22:21:45 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 65B2AA1859A for ; Wed, 10 Oct 2012 22:21:45 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so1864232iej.11 for ; Wed, 10 Oct 2012 15:21:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=kB5Djm/GKfrs5U0mmgfPKk43z/uk0aDlfbPV/QiaTEA=; b=iGYP8zgX8puvYmQ0qORhBe9Tw6n4i3tJE82cxgElieD2pDrfPqlF53pY0EznIQuz2A 4o+cumA/iui3kNOVtINiYrk6kZTqljHq5zSwj7oMVoqGO1Fqsw9CEGqZRHQdRS/Q3QCh /v+1Z6/3J4enwDjftzOGkJY9lUsVX5kT804kXmfK6pYyNJ78EwCuqBSTpF5tnhPeBbA3 eUi1HwAI/AJaw3fwjpnSyoQDM/kKwkWpm3j23XNNKJfdjHFsUvsqmxfpzOl3GtftZ8hP 6kbmB+3iw048NjoRWQ2diORwWm6E8X4pGXqXQOEs1nh1jv/QRCilccA1osPFTxm89Ck7 c/Hg== Received: by 10.50.157.201 with SMTP id wo9mr6786354igb.57.1349907705122; Wed, 10 Oct 2012 15:21: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.50.67.148 with SMTP id n20csp302332igt; Wed, 10 Oct 2012 15:21:44 -0700 (PDT) Received: by 10.180.87.132 with SMTP id ay4mr16041557wib.5.1349907703990; Wed, 10 Oct 2012 15:21:43 -0700 (PDT) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx.google.com with ESMTPS id cl2si5821069wib.32.2012.10.10.15.21.43 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Oct 2012 15:21:43 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.172 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=209.85.212.172; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.172 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: by mail-wi0-f172.google.com with SMTP id hq12so6272867wib.13 for ; Wed, 10 Oct 2012 15:21:43 -0700 (PDT) Received: by 10.216.72.5 with SMTP id s5mr15120015wed.154.1349907703539; Wed, 10 Oct 2012 15:21:43 -0700 (PDT) Received: from localhost.localdomain (AToulouse-651-1-105-241.w109-222.abo.wanadoo.fr. [109.222.192.241]) by mx.google.com with ESMTPS id cu1sm32250748wib.6.2012.10.10.15.21.41 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Oct 2012 15:21:42 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl Cc: linux-pm@vger.kernel.org, linaro-dev@lists.linaro.org, patches@linaro.org Subject: [PATCH 4/4] cpuidle - sysfs : move declaration in the sysfs file Date: Thu, 11 Oct 2012 00:21:31 +0200 Message-Id: <1349907691-6002-5-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1349907691-6002-1-git-send-email-daniel.lezcano@linaro.org> References: <1349907691-6002-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQmmf1rv71zTGodC7b/w5cQNGo3bXf1CXCrHczYpuA1r3b7kpYqPAVp4Z/3sQ3SKk+HqoDuK The structure cpuidle_state_kobj is not used anywhere except in the sysfs.c file. The definition of this function is not needed in the cpuidle header file. Signed-off-by: Daniel Lezcano --- drivers/cpuidle/sysfs.c | 7 +++++++ include/linux/cpuidle.h | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/cpuidle/sysfs.c b/drivers/cpuidle/sysfs.c index c25e26e..c756ba4 100644 --- a/drivers/cpuidle/sysfs.c +++ b/drivers/cpuidle/sysfs.c @@ -297,6 +297,13 @@ static struct attribute *cpuidle_state_default_attrs[] = { NULL }; +struct cpuidle_state_kobj { + struct cpuidle_state *state; + struct cpuidle_state_usage *state_usage; + struct completion kobj_unregister; + struct kobject kobj; +}; + #define kobj_to_state_obj(k) container_of(k, struct cpuidle_state_kobj, kobj) #define kobj_to_state(k) (kobj_to_state_obj(k)->state) #define kobj_to_state_usage(k) (kobj_to_state_obj(k)->state_usage) diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index 279b1ea..7daf0e3 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h @@ -82,13 +82,6 @@ cpuidle_set_statedata(struct cpuidle_state_usage *st_usage, void *data) st_usage->driver_data = data; } -struct cpuidle_state_kobj { - struct cpuidle_state *state; - struct cpuidle_state_usage *state_usage; - struct completion kobj_unregister; - struct kobject kobj; -}; - struct cpuidle_device { unsigned int registered:1; unsigned int enabled:1;