Message ID | 1424692061-30624-9-git-send-email-k.kozlowski@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B6FCCBF440 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 23 Feb 2015 11:53:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E5F0820219 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 23 Feb 2015 11:53:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DF1042061A for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 23 Feb 2015 11:53:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YPrXZ-0000Yp-JI; Mon, 23 Feb 2015 11:51:09 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YPrV1-0006PV-40 for linux-arm-kernel@lists.infradead.org; Mon, 23 Feb 2015 11:48:41 +0000 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NK800JKB3MVZ4A0@mailout2.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 23 Feb 2015 11:52:07 +0000 (GMT) X-AuditID: cbfec7f5-b7fc86d0000066b7-2c-54eb12e1c688 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 07.A7.26295.1E21BE45; Mon, 23 Feb 2015 11:45:37 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NK8001843FJ0A90@eusync2.samsung.com>; Mon, 23 Feb 2015 11:48:05 +0000 (GMT) From: Krzysztof Kozlowski <k.kozlowski@samsung.com> To: Sebastian Reichel <sre@kernel.org>, Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>, David Woodhouse <dwmw2@infradead.org>, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" <rjw@rjwysocki.net>, Len Brown <lenb@kernel.org>, Jiri Kosina <jkosina@suse.cz>, David Herrmann <dh.herrmann@googlemail.com>, Cezary Jackiewicz <cezary.jackiewicz@gmail.com>, Darren Hart <dvhart@infradead.org>, Support Opensource <support.opensource@diasemi.com>, Milo Kim <milo.kim@ti.com>, Julian Andres Klode <jak@jak-linux.org>, Marc Dietrich <marvin24@gmx.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-acpi@vger.kernel.org, linux-input@vger.kernel.org, platform-driver-x86@vger.kernel.org, patches@opensource.wolfsonmicro.com, ac100@lists.launchpad.net, linux-tegra@vger.kernel.org, devel@driverdev.osuosl.org, Linus Walleij <linus.walleij@linaro.org>, Samuel Ortiz <sameo@linux.intel.com>, Lee Jones <lee.jones@linaro.org>, linux-arm-kernel@lists.infradead.org, Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>, x86@kernel.org, Daniel Mack <daniel@zonque.org>, Haojian Zhuang <haojian.zhuang@gmail.com>, Robert Jarzmik <robert.jarzmik@free.fr> Subject: [PATCH v4 08/20] power_supply: apm_power: Use power_supply_*() API for accessing function attrs Date: Mon, 23 Feb 2015 12:47:29 +0100 Message-id: <1424692061-30624-9-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1424692061-30624-1-git-send-email-k.kozlowski@samsung.com> References: <1424692061-30624-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAyWReUiTcRjH++099m66eplHbwoFiwqsPErqIbT6I+oXBN0HrtSlwwM3bdOR QSValDPLq2t0mdrMPDcRLVO31Frq8kjB8EhmYFqeWWmHbfnf8/3w+fL942EIcS3pwUQp4+Uq pSxGQgvJlr+v328cEo8d8W2wSuB62yQP8t+kkZD8Z5SErOEJAmpb5/mQ1+UO2lxfyHyaTUBK XhkN7aVb4VbFcngy9ZCGF/fySBgb8YO25C98GJxtQlAz9JWGnN96HujrbiAw2Hoo6J3+TkHX 83s0zKQ3Ikj9pqOhpLGfD6nvchHo50tJ6Gx4ZG98XaCh/20TDc9qRwhobemkQPfFBVrSKGh5 EQ8vL3cQYDTcJOBnuY3auRYXTvvggbpXJL5ROkPhGl0/H09OBeNPGdl8bCz0wsOjegobilJp 3NdTS+Nxq5WPH1gO4vr7xXYh/yJuutZH4s+Zv+gDK4KEAeHymCiNXOWzPVQYeb/XRsdNC86O L9STSaiB0SIBw7H+3J3KbrR4u3PtA2W0FgkZMVuAuPKUO/zFcJ3HNQyMEQ6LZjdzRn3+f8uV bRZwppJ0niMQbCfibMMWvsNyYaO57FyHJWBIdg1394rOzhlGxO7h5quli3MrOUtzNuXAAhZz g1UaBxbbjfSKHJSBRI/QkiLkJk8Ii1OfjlBs8lbLFOoEZYR3WKzCgBY/PluNCpq3mRHLIImz 6KNm9IiYkmnUiQoz4hhC4irynLMjUbgs8ZxcFRuiSoiRq82Ixwg8ktBtlUnjG7jBzUwpl/kv rLeRypC7u/d3T3juCg499rjXad14EGVa3RXlW/pgQr7qZAdInbaEHZ9eiKYPXJWm/JgzJjgd Pn0+vu9CaIBQs+NM8jw2Wfd+UIQc1dYTq40xdea8S1rpqbIqr/ZDGpll39rErGJTX6DB2bNS fMJzqXVOQqojZX5ehEot+wf8jxrfzwIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150223_034831_338993_D9393A6F X-CRM114-Status: UNSURE ( 8.98 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.0 (-----) Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>, Thomas Gleixner <tglx@linutronix.de>, Kyungmin Park <kyungmin.park@samsung.com>, Pavel Machek <pavel@ucw.cz>, Marek Szyprowski <m.szyprowski@samsung.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/power/apm_power.c b/drivers/power/apm_power.c index 39763015b360..2206f9ff6488 100644 --- a/drivers/power/apm_power.c +++ b/drivers/power/apm_power.c @@ -15,10 +15,10 @@ #include <linux/apm-emulation.h> -#define PSY_PROP(psy, prop, val) (psy->get_property(psy, \ +#define PSY_PROP(psy, prop, val) (power_supply_get_property(psy, \ POWER_SUPPLY_PROP_##prop, val)) -#define _MPSY_PROP(prop, val) (main_battery->get_property(main_battery, \ +#define _MPSY_PROP(prop, val) (power_supply_get_property(main_battery, \ prop, val)) #define MPSY_PROP(prop, val) _MPSY_PROP(POWER_SUPPLY_PROP_##prop, val)