From patchwork Fri Feb 7 10:04:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3600571 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4CE9F9F2D6 for ; Fri, 7 Feb 2014 10:08:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8168720120 for ; Fri, 7 Feb 2014 10:08:57 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 8E5D42012B for ; Fri, 7 Feb 2014 10:08:56 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WBiKv-0007aX-TG; Fri, 07 Feb 2014 10:07:07 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WBiKO-0001vZ-NE; Fri, 07 Feb 2014 10:06:32 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WBiJT-0001jh-Ls for linux-arm-kernel@lists.infradead.org; Fri, 07 Feb 2014 10:05:39 +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 <0N0M00IFIEOOC370@mailout2.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 07 Feb 2014 10:05:12 +0000 (GMT) X-AuditID: cbfec7f5-b7fc96d000004885-e3-52f4afdbed09 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 4B.A5.18565.BDFA4F25; Fri, 07 Feb 2014 10:05:15 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N0M00ISREO95580@eusync3.samsung.com>; Fri, 07 Feb 2014 10:05:15 +0000 (GMT) From: Krzysztof Kozlowski To: MyungJoo Ham , Chanwoo Choi , Samuel Ortiz , Lee Jones , Mark Brown , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 12/15] power: max17040: Add ID for max77836 Fuel Gauge block Date: Fri, 07 Feb 2014 11:04:44 +0100 Message-id: <1391767487-10017-13-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1391767487-10017-1-git-send-email-k.kozlowski@samsung.com> References: <1391767487-10017-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrBLMWRmVeSWpSXmKPExsVy+t/xq7q3138JMvgyy9ji4FZNi40z1rNa TH34hM3i+pfnrBaTnrxntpi4cjKzxesXhhZnm96wW9z/epTRYtPja6wWl3fNYbNYe+Quu8Xt xhVsFqe7WR34PCb0f2L02DnrLrvH5hVaHptWdbJ53Lm2h81j3slAj81L6j36tqxi9Pi8SS6A M4rLJiU1J7MstUjfLoEro/FWN3PBO/aK3Z1H2RoY77B1MXJySAiYSEyd1Q9li0lcuLceyObi EBJYyihx4/l/KKePSeLtpM+MIFVsAsYSm5cvAUuICLQwSbxfv58RxGEWOMYksfHOKbBZwgL+ EmfmbWYHsVkEVCVmNb0B6+YV8JB4c/YGUA0H0D4FiTmTbEDCnEDhLQ/OsYLYQgLuEr+W9bBP YORdwMiwilE0tTS5oDgpPddIrzgxt7g0L10vOT93EyMkdL/uYFx6zOoQowAHoxIPr+KKz0FC rIllxZW5hxglOJiVRHg11n4JEuJNSaysSi3Kjy8qzUktPsTIxMEp1cBYceL73o/Olz3dA88d 3sKXwnyPaaHHhqLa5Nh7bYm6+1iue/+uD78g/sdOy+CQlDiv78Y1Ky7IhN2UbvePkY9RU+Zb sH5BIptDBeO7y9++Mubl8TjVMfmfYM8VyeblZTROXJ9gX9qc0r3xjrq9aknlzqKN/3LnRrOw 7zDkfGsRUnOJv2XTUiWW4oxEQy3mouJEAI2KvGg7AgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140207_050535_864151_B4C10BA5 X-CRM114-Status: UNSURE ( 9.87 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.4 (-------) Cc: Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Dmitry Eremin-Solenikov , Anton Vorontsov , Kyungmin Park , David Woodhouse , Marek Szyprowski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_MED, 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 MAX77836 has the same Fuel Gauge as MAX17040. The max17040 driver can be safely re-used. The patch adds MAX77836 ID to array with i2c_device_id. Signed-off-by: Krzysztof Kozlowski Cc: Kyungmin Park Cc: Marek Szyprowski Cc: Anton Vorontsov Cc: Dmitry Eremin-Solenikov Cc: David Woodhouse --- drivers/power/max17040_battery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/max17040_battery.c b/drivers/power/max17040_battery.c index 0fbac861080d..165ffe381803 100644 --- a/drivers/power/max17040_battery.c +++ b/drivers/power/max17040_battery.c @@ -278,6 +278,7 @@ static SIMPLE_DEV_PM_OPS(max17040_pm_ops, max17040_suspend, max17040_resume); static const struct i2c_device_id max17040_id[] = { { "max17040", 0 }, + { "max77836-battery", 0 }, { } }; MODULE_DEVICE_TABLE(i2c, max17040_id);