Message ID | d6239b171cf2073271fc7676668c892b892b7628.1409831636.git.viresh.kumar@linaro.org |
---|---|
State | Accepted |
Commit | 3c5f8853469d3e549799808b9bf639b5d32751f0 |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBY5JUGQAKGQEZPKGHZY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 68AE6202E4 for <linaro@patches.linaro.org>; Thu, 4 Sep 2014 12:02:48 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id eu11sf92747050pac.7 for <linaro@patches.linaro.org>; Thu, 04 Sep 2014 05:02:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references:mime-version:sender :precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=Zz0IklH4deOsZto7K1FP07w4Avqbtkm4ACiEPPjQ2hg=; b=IXRlFsKP75mys4AC7ktKCF5H/G6u8cNT+VW6BAWLaR2dx3592815O4FjFiDNxfk8r5 bmhz6gS0It12u6fJSMNf7oXycE3c2pj0ceeYbSEACvsNEPPtYvBhBNHEmtOxOVwsQaYX ulR++kQwHVbGfSCPqmwwVnn2j59NPuVqUN6at+R5WFdZeQaxVFVLpiJ2Qx18km3UuIsG L2U5aYyql5pweUjNkdI8qfj/HD0dBt9nI7SLc0P8jwfUczIgD52u2baIwVIrvhDyIfpV n6mMISjiEpaMMnBVUhe4jy0uKCVYI6mhrgbZTOGgolE3R/4Wro7Gb30nOKbmteNOvoLo bECQ== X-Gm-Message-State: ALoCoQmX9k17EOdxcTwfyCr/8AOcJ8f0x3PbztACDgBbXAJc9bDQkRDwy+6GvJsQ5RYR+7QTfSJ3 X-Received: by 10.66.163.41 with SMTP id yf9mr2136003pab.36.1409832163221; Thu, 04 Sep 2014 05:02:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.80.210 with SMTP id c76ls249393qgd.56.gmail; Thu, 04 Sep 2014 05:02:43 -0700 (PDT) X-Received: by 10.221.24.7 with SMTP id rc7mr464735vcb.54.1409832163091; Thu, 04 Sep 2014 05:02:43 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id s6si2704934vdx.72.2014.09.04.05.02.43 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Sep 2014 05:02:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id id10so10452147vcb.16 for <patchwork-forward@linaro.org>; Thu, 04 Sep 2014 05:02:43 -0700 (PDT) X-Received: by 10.52.129.200 with SMTP id ny8mr2576574vdb.27.1409832162958; Thu, 04 Sep 2014 05:02:42 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp824271vcb; Thu, 4 Sep 2014 05:02:42 -0700 (PDT) X-Received: by 10.70.93.8 with SMTP id cq8mr7986421pdb.160.1409832161926; Thu, 04 Sep 2014 05:02:41 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id lp3si3076549pab.230.2014.09.04.05.02.36 for <multiple recipients>; Thu, 04 Sep 2014 05:02:37 -0700 (PDT) Received-SPF: none (google.com: linux-pm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753890AbaIDMCW (ORCPT <rfc822;amit.pundir@linaro.org> + 15 others); Thu, 4 Sep 2014 08:02:22 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:62763 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753774AbaIDMCW (ORCPT <rfc822;linux-pm@vger.kernel.org>); Thu, 4 Sep 2014 08:02:22 -0400 Received: by mail-pd0-f180.google.com with SMTP id p10so13360568pdj.25 for <linux-pm@vger.kernel.org>; Thu, 04 Sep 2014 05:02:19 -0700 (PDT) X-Received: by 10.70.140.163 with SMTP id rh3mr7880487pdb.53.1409832139615; Thu, 04 Sep 2014 05:02:19 -0700 (PDT) Received: from localhost ([122.167.123.172]) by mx.google.com with ESMTPSA id g7sm1558837pdj.7.2014.09.04.05.02.18 for <multiple recipients> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 04 Sep 2014 05:02:19 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> To: sre@kernel.org, dbaryshkov@gmail.com, dwmw2@infradead.org, anton@enomsg.org Cc: linux-pm@vger.kernel.org, linaro-kernel@lists.linaro.org, Viresh Kumar <viresh.kumar@linaro.org> Subject: [PATCH 04/15] power-supply: Forward declare structs together Date: Thu, 4 Sep 2014 17:31:25 +0530 Message-Id: <d6239b171cf2073271fc7676668c892b892b7628.1409831636.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.0.3.693.g996b0fd In-Reply-To: <2eacd908a8094887cc1796f75ae0513be8a3e36d.1409831636.git.viresh.kumar@linaro.org> References: <2eacd908a8094887cc1796f75ae0513be8a3e36d.1409831636.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1409831636.git.viresh.kumar@linaro.org> References: <cover.1409831636.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit |
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index f3dea41..8c18412 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -18,8 +18,6 @@ #include <linux/spinlock.h> #include <linux/notifier.h> -struct device; - /* * All voltages, currents, charges, energies, time and temperatures in uV, * µA, µAh, µWh, seconds and tenths of degree Celsius unless otherwise @@ -172,6 +170,7 @@ union power_supply_propval { const char *strval; }; +struct device; struct device_node; struct power_supply {
power_supply.h requires to forward declare few structures. One of them is done at the top of the file and other one just before it is used. Declare them together for better readability. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- include/linux/power_supply.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)