From patchwork Thu Feb 20 14:51:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 11394257 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5553D92A for ; Thu, 20 Feb 2020 14:51:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 124662467E for ; Thu, 20 Feb 2020 14:51:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="KMYMBdsg" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728105AbgBTOvh (ORCPT ); Thu, 20 Feb 2020 09:51:37 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:53690 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728071AbgBTOvh (ORCPT ); Thu, 20 Feb 2020 09:51:37 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200220145135euoutp0113f04cccdf8f79732261545f8bad561e~1I_GH2pJj0558305583euoutp01- for ; Thu, 20 Feb 2020 14:51:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200220145135euoutp0113f04cccdf8f79732261545f8bad561e~1I_GH2pJj0558305583euoutp01- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1582210295; bh=31rmtxOfkOASOvw2DeQhk/to6JwtWb8Z/jmhWawXvnI=; h=From:To:Cc:Subject:Date:References:From; b=KMYMBdsgtt2BjBkAfSqfTuonQOXaWRv02vYejms4G1IzMvgD8cMAjm8QioH39ntng 16vYfefuCY/wdDrFhliAOKOcTO7QNoCsyskdb/+iHsyJPXbUhbLeVJgz7oMvXxvHVz UgRh3wVjsovsSmNjIbG4FUoNWflbcWMP4M2jsY9E= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200220145135eucas1p1c3c6c3fd13e5580cb159722a3d8efeb2~1I_F177Uc0784807848eucas1p1w; Thu, 20 Feb 2020 14:51:35 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 29.E9.61286.7FC9E4E5; Thu, 20 Feb 2020 14:51:35 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200220145134eucas1p288ae1910d3e8d12dc12f010ed0b07b45~1I_FTtluh1480814808eucas1p2S; Thu, 20 Feb 2020 14:51:34 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200220145134eusmtrp102faa4c0b7c8c492e2d69a25198fc0b7~1I_FTDkBX1371113711eusmtrp19; Thu, 20 Feb 2020 14:51:34 +0000 (GMT) X-AuditID: cbfec7f2-ef1ff7000001ef66-36-5e4e9cf7e0cf Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id BE.5A.08375.6FC9E4E5; Thu, 20 Feb 2020 14:51:34 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200220145134eusmtip18cbc83e1398035c3526bcf8ab5ba9057~1I_E3Vml21164811648eusmtip1i; Thu, 20 Feb 2020 14:51:34 +0000 (GMT) From: Marek Szyprowski To: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Chanwoo Choi , MyungJoo Ham , Sebastian Reichel , Mark Brown Subject: [PATCH 1/3] regulator: max14577: Add proper dt-compatible strings Date: Thu, 20 Feb 2020 15:51:25 +0100 Message-Id: <20200220145127.21273-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDIsWRmVeSWpSXmKPExsWy7djPc7rf5/jFGRz+wWuxccZ6VoupD5+w WVz/8pzV4vz5DewWl3fNYbP43HuE0WLtkbvsFrcbV7BZnN5d4sDpsWlVJ5tH35ZVjB6fN8kF MEdx2aSk5mSWpRbp2yVwZTQcusZWcJKzor2xgb2BcRZHFyMnh4SAicSetVMYuxi5OIQEVjBK fOjfAuV8YZRYsmY+M4TzmVHi4eMpTDAtj+eeYwaxhQSWM0qceMwB19G06jJYgk3AUKLrbRcb iC0iYCVx+n8H2CRmgRVMEh9/fwKaxMEhLOAl8fsOJ4jJIqAqMWELD0g5r4CtRM+z+6wQu+Ql Vm84ANYqIXCdTeLSu4vsEAkXidaemSwQtrDEq+NboOIyEqcn97BANDQDXX1uLTuE08Mocblp BiNElbXEnXO/2EA2MwtoSqzfpQ8RdpS4MOUc2G0SAnwSN94KgoSZgcxJ26YzQ4R5JTrahCCq 1SRmHV8Ht/bghUvMELaHROeZT+wg5UICsRL3jjNNYJSbhbBqASPjKkbx1NLi3PTUYsO81HK9 4sTc4tK8dL3k/NxNjMA0cPrf8U87GL9eSjrEKMDBqMTDW9HgFyfEmlhWXJl7iFGCg1lJhFeN ByjEm5JYWZValB9fVJqTWnyIUZqDRUmc13jRy1ghgfTEktTs1NSC1CKYLBMHp1QD49yLSuVu L3dHlF1tW25ho1iXbi+Xv5DnbXmPesmyBJ6UvxbL7Z7wr8lf16/tWtRwzn2bhsIzjl+TvcSm sGavimGpPlt/oU5bOpZN4b82o1LqtmlvbxattDPWLZ/8zVBz7eKq0odiJW83LsjnXXJTQaF7 iq5XUuL2EybfijOSos4X/XRuc1mjxFKckWioxVxUnAgAUE/fp/8CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrELMWRmVeSWpSXmKPExsVy+t/xu7rf5vjFGfy5rGWxccZ6VoupD5+w WVz/8pzV4vz5DewWl3fNYbP43HuE0WLtkbvsFrcbV7BZnN5d4sDpsWlVJ5tH35ZVjB6fN8kF MEfp2RTll5akKmTkF5fYKkUbWhjpGVpa6BmZWOoZGpvHWhmZKunb2aSk5mSWpRbp2yXoZTQc usZWcJKzor2xgb2BcRZHFyMnh4SAicTjueeYQWwhgaWMEjPulULEZSROTmtghbCFJf5c62Lr YuQCqvnEKHHr6yoWkASbgKFE11uQBCeHiICNxN3F11hAipgF1jBJNDz8yNTFyMEhLOAl8fsO J4jJIqAqMWELD0g5r4CtRM+z+1Dz5SVWbzjAPIGRZwEjwypGkdTS4tz03GJDveLE3OLSvHS9 5PzcTYzA8Nt27OfmHYyXNgYfYhTgYFTi4a1o8IsTYk0sK67MPcQowcGsJMKrxgMU4k1JrKxK LcqPLyrNSS0+xGgKtHsis5Rocj4wNvJK4g1NDc0tLA3Njc2NzSyUxHk7BA7GCAmkJ5akZqem FqQWwfQxcXBKNTBGd3eExi9d2r5I7KoQd8scRxOxKU0fn1b473iyRH71nbPzjoneUl63r83T 1ym4u8778IITr5foLH4/85FJfC53b5P3plmbElrN9ni8MJKo6Gr1UNe8sIvpvQ7Th2sLn23W cpizWIz7+8ZDPNKbK889qvt4mWvB2kfJfdMDl7/TOuhnyeQlGTxNiaU4I9FQi7moOBEAEdSR dlUCAAA= X-CMS-MailID: 20200220145134eucas1p288ae1910d3e8d12dc12f010ed0b07b45 X-Msg-Generator: CA X-RootMTR: 20200220145134eucas1p288ae1910d3e8d12dc12f010ed0b07b45 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200220145134eucas1p288ae1910d3e8d12dc12f010ed0b07b45 References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add device tree compatible strings and create proper modalias structures to let this driver load automatically if compiled as module, because max14577 MFD driver creates MFD cells with such compatible strings. Signed-off-by: Marek Szyprowski --- drivers/regulator/max14577-regulator.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/regulator/max14577-regulator.c b/drivers/regulator/max14577-regulator.c index 07a150c9bbf2..19e779dd961e 100644 --- a/drivers/regulator/max14577-regulator.c +++ b/drivers/regulator/max14577-regulator.c @@ -238,6 +238,15 @@ static const struct platform_device_id max14577_regulator_id[] = { }; MODULE_DEVICE_TABLE(platform, max14577_regulator_id); +static const struct of_device_id of_max14577_regulator_dt_match[] = { + { .compatible = "maxim,max77836-regulator", + .data = (void *)MAXIM_DEVICE_TYPE_MAX77836, }, + { .compatible = "maxim,max14577-regulator", + .data = (void *)MAXIM_DEVICE_TYPE_MAX14577, }, + { }, +}; +MODULE_DEVICE_TABLE(of, of_max14577_regulator_dt_match); + static struct platform_driver max14577_regulator_driver = { .driver = { .name = "max14577-regulator", From patchwork Thu Feb 20 14:51:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 11394259 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 28D8F92A for ; Thu, 20 Feb 2020 14:51:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F266724673 for ; Thu, 20 Feb 2020 14:51:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="EtteFiMS" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728205AbgBTOvh (ORCPT ); Thu, 20 Feb 2020 09:51:37 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:44628 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728054AbgBTOvh (ORCPT ); Thu, 20 Feb 2020 09:51:37 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200220145135euoutp02513b33388fb2aa0d9efd8784a352149a~1I_GaIW9G1134211342euoutp02E for ; Thu, 20 Feb 2020 14:51:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200220145135euoutp02513b33388fb2aa0d9efd8784a352149a~1I_GaIW9G1134211342euoutp02E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1582210295; bh=3TDzl1+xMI630MaOVpLHVpnP1uULofqoBm2yuDXOOUA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EtteFiMSazcSDneJt6n9a62BnwHe/6f7vmDQhAX0VfpD90a2fQYh6PwW7CGgfmcKz sg1aPrwUuUxZh+gURvoYSII6v6v32J0joTcY+fTrcUwMGQdDA2luITcYPOphXkg0vs 5aJfjngLBkOcgiTjrzRNcsEANPjq/RGKu2eTZoSI= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200220145135eucas1p1bb1e76c09a9782fd79b6511f6b506b5c~1I_GEeXUw0784807848eucas1p1y; Thu, 20 Feb 2020 14:51:35 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id D9.E9.61286.7FC9E4E5; Thu, 20 Feb 2020 14:51:35 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200220145135eucas1p123c4e4523e7e6eb86b64e728d6931cee~1I_Fv1uvC1193311933eucas1p1j; Thu, 20 Feb 2020 14:51:35 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200220145135eusmtrp102166e8dce9b7231dcccc0e49628850c~1I_FvKojT1377513775eusmtrp1g; Thu, 20 Feb 2020 14:51:35 +0000 (GMT) X-AuditID: cbfec7f2-ef1ff7000001ef66-38-5e4e9cf7fbb5 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 69.C7.07950.7FC9E4E5; Thu, 20 Feb 2020 14:51:35 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200220145134eusmtip15ecddef884a887b76608a80926b5a8bc~1I_FRHZTW1165111651eusmtip1g; Thu, 20 Feb 2020 14:51:34 +0000 (GMT) From: Marek Szyprowski To: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Chanwoo Choi , MyungJoo Ham , Sebastian Reichel , Mark Brown Subject: [PATCH 2/3] extcon: max14577: Add proper dt-compatible strings Date: Thu, 20 Feb 2020 15:51:26 +0100 Message-Id: <20200220145127.21273-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200220145127.21273-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrNIsWRmVeSWpSXmKPExsWy7djP87rf5/jFGUy6qmixccZ6VoupD5+w WVz/8pzV4vz5DewWl3fNYbP43HuE0WLtkbvsFrcbV7BZnN5d4sDpsWlVJ5tH35ZVjB6fN8kF MEdx2aSk5mSWpRbp2yVwZZyctpWtoJGz4vPNDWwNjFfYuxg5OSQETCQ+H+plBLGFBFYwShw+ lNrFyAVkf2GUOLeqhw3C+cwo0XbkJCNMx+YbZ5kgEssZJf5N28gO1zJ56hawuWwChhJdb7vY QGwRASuJ0/87mEGKmAVWMEl8/P2JCSQhLOAuMeHsBrCxLAKqEtt3n2YGsXkFbCXebXoEtU5e YvWGA2BxTgE7iUkTJoANkhB4zyaxdN4sIIcDyHGRWNJfAVEvLPHq+Bao52QkTk/uYYGob2aU eHhuLTuE08MocblpBtQGa4k7536xgQxiFtCUWL9LHyLsKDFx9x5GiPl8EjfeCoKEmYHMSdum Q63llehoE4KoVpOYdXwd3NqDFy4xQ9geEl/ftrBAAmgio8S6Q69YJzDKz0JYtoCRcRWjeGpp cW56arFhXmq5XnFibnFpXrpecn7uJkZgkjj97/inHYxfLyUdYhTgYFTi4a1o8IsTYk0sK67M PcQowcGsJMKrxgMU4k1JrKxKLcqPLyrNSS0+xCjNwaIkzmu86GWskEB6YklqdmpqQWoRTJaJ g1OqgTEx9tua6BLeK/8Wqh7peZWisfK3t9bzWpOVV5e0GDk7HO7Q3iSjzT1pzU/GrpBVict+ vFR7oc7EVWDdPydg0cXluz+7TpbjyVm6lNtMbc6vl439ayZ7nbb4MMFCi+HYqm2Rn/cr3T3j nBWaqRXTHf/wofDKN2+ZQ11V7/8Tur/ZX+egeqtZw2QlluKMREMt5qLiRAB0iC7RDgMAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrLLMWRmVeSWpSXmKPExsVy+t/xu7rf5/jFGbRN4rLYOGM9q8XUh0/Y LK5/ec5qcf78BnaLy7vmsFl87j3CaLH2yF12i9uNK9gsTu8uceD02LSqk82jb8sqRo/Pm+QC mKP0bIryS0tSFTLyi0tslaINLYz0DC0t9IxMLPUMjc1jrYxMlfTtbFJSczLLUov07RL0Mk5O 28pW0MhZ8fnmBrYGxivsXYycHBICJhKbb5xl6mLk4hASWMoo8XL7CTaIhIzEyWkNrBC2sMSf a11sEEWfGCVeLT0DVsQmYCjR9bYLzBYRsJG4u/gaC0gRs8AaJomGhx+ZQBLCAu4SE85uYASx WQRUJbbvPs0MYvMK2Eq82/SIEWKDvMTqDQfA4pwCdhKTJkwAs4WAavZsPMo+gZFvASPDKkaR 1NLi3PTcYiO94sTc4tK8dL3k/NxNjMCg3Xbs55YdjF3vgg8xCnAwKvHwVjT4xQmxJpYVV+Ye YpTgYFYS4VXjAQrxpiRWVqUW5ccXleakFh9iNAU6aiKzlGhyPjCi8kriDU0NzS0sDc2NzY3N LJTEeTsEDsYICaQnlqRmp6YWpBbB9DFxcEo1MJqrfuLN3cqxaK5ctqCXc1X8tgWZjeaXd51b cyVHZ6na4sd+k1acqTVn9Dv26nPPurVKHs91H72RM/8m/8n5ReKl3T8WfPZ2bXQ7Z+4RGfhV UPaN8w7jwB8NK0NnzJkS7rcnfiJfTc3FSf9m5a/50mTxfvHlU8X/TS3jutlT6/PvvhGbvPvA BBMlluKMREMt5qLiRAAWCFMvcAIAAA== X-CMS-MailID: 20200220145135eucas1p123c4e4523e7e6eb86b64e728d6931cee X-Msg-Generator: CA X-RootMTR: 20200220145135eucas1p123c4e4523e7e6eb86b64e728d6931cee X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200220145135eucas1p123c4e4523e7e6eb86b64e728d6931cee References: <20200220145127.21273-1-m.szyprowski@samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add device tree compatible strings and create proper modalias structures to let this driver load automatically if compiled as module, because max14577 MFD driver creates MFD cells with such compatible strings. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski --- drivers/extcon/extcon-max14577.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/extcon/extcon-max14577.c b/drivers/extcon/extcon-max14577.c index 32f663436e6e..6df814cffe37 100644 --- a/drivers/extcon/extcon-max14577.c +++ b/drivers/extcon/extcon-max14577.c @@ -782,6 +782,15 @@ static const struct platform_device_id max14577_muic_id[] = { }; MODULE_DEVICE_TABLE(platform, max14577_muic_id); +static const struct of_device_id of_max14577_muic_dt_match[] = { + { .compatible = "maxim,max77836-muic", + .data = (void *)MAXIM_DEVICE_TYPE_MAX77836, }, + { .compatible = "maxim,max14577-muic", + .data = (void *)MAXIM_DEVICE_TYPE_MAX14577, }, + { }, +}; +MODULE_DEVICE_TABLE(of, of_max14577_muic_dt_match); + static struct platform_driver max14577_muic_driver = { .driver = { .name = "max14577-muic", From patchwork Thu Feb 20 14:51:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 11394261 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3CA2013A4 for ; Thu, 20 Feb 2020 14:51:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 124DF208C4 for ; Thu, 20 Feb 2020 14:51:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="gwuR9dK7" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728079AbgBTOvu (ORCPT ); Thu, 20 Feb 2020 09:51:50 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:44634 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728087AbgBTOvh (ORCPT ); Thu, 20 Feb 2020 09:51:37 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200220145136euoutp022fcbd9861befed7266dbf3973cab7fd5~1I_Guj8wo1100211002euoutp02O for ; Thu, 20 Feb 2020 14:51:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200220145136euoutp022fcbd9861befed7266dbf3973cab7fd5~1I_Guj8wo1100211002euoutp02O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1582210296; bh=YqMtfkiBvVHazwIHeJte8dn8ntnJBx4eD3U4pauHQgA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gwuR9dK7TdjAucm5jXqEcHYLlB25aRBgFYlMIRKkpp3h0+jFSk8b1/M8f3R6OESWX k6pjGBTMBxvNxpx3PEIdhDwB/npPpVHzja+xWNoeo3toIwObly9cQKBvLwgpGAiWBW 4G5jOBp3Tchbk1YoLhdMJ8pWH67gAP7hORi3F9NY= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200220145136eucas1p2157af29c7f8ac975cec9c637e6f09227~1I_GfsEhs1366513665eucas1p2R; Thu, 20 Feb 2020 14:51:36 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 2B.E9.61286.7FC9E4E5; Thu, 20 Feb 2020 14:51:35 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200220145135eucas1p1ba181cef65c7a4f91a254ee35e022f08~1I_GHmd8a0784307843eucas1p1q; Thu, 20 Feb 2020 14:51:35 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200220145135eusmtrp1c6139c2fac24f47dfd1498dabfdcea47~1I_GHBU3K1377513775eusmtrp1i; Thu, 20 Feb 2020 14:51:35 +0000 (GMT) X-AuditID: cbfec7f2-f0bff7000001ef66-3b-5e4e9cf7113d Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 1A.C7.07950.7FC9E4E5; Thu, 20 Feb 2020 14:51:35 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200220145135eusmtip1533674ec21b81c7b6fc98ae954eb47e2~1I_FsqLqD1163211632eusmtip1h; Thu, 20 Feb 2020 14:51:35 +0000 (GMT) From: Marek Szyprowski To: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Chanwoo Choi , MyungJoo Ham , Sebastian Reichel , Mark Brown Subject: [PATCH 3/3] power: charger: max14577: Add proper dt-compatible strings Date: Thu, 20 Feb 2020 15:51:27 +0100 Message-Id: <20200220145127.21273-3-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200220145127.21273-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrNIsWRmVeSWpSXmKPExsWy7djPc7rf5/jFGazYZWWxccZ6VoupD5+w WVz/8pzV4vz5DewWl3fNYbP43HuE0WLtkbvsFrcbV7BZnN5d4sDpsWlVJ5tH35ZVjB6fN8kF MEdx2aSk5mSWpRbp2yVwZfyaN42tYDdnRV/fK7YGxn6OLkZODgkBE4kJW7vZQWwhgRWMEgs3 h3YxcgHZXxgltnS2s0A4nxklfj+eAFTFAdbx6Y4uRHw5o8TJD69Z4TqeTJ3KAjKKTcBQoutt FxuILSJgJXH6fwczSBGzwAomiY+/PzGBJIQFAiXerXsKZrMIqErM27mVFcTmFbCV+D9tGTvE ffISqzccYAaxOQXsJCZNmAA2SELgPZvE3vUr2SCKXCSWT/zFCGELS7w6vgWqWUbi9OQeFoiG ZkaJh+fWskM4PYwSl5tmQHVYS9w594sN5DlmAU2J9bv0IcKOEi0z1zNC/MwnceOtIEiYGcic tG06M0SYV6KjTQiiWk1i1vF1cGsPXrjEDGF7SCz6PIsREkITGSVerTrGPoFRfhbCsgWMjKsY xVNLi3PTU4sN81LL9YoTc4tL89L1kvNzNzECk8Tpf8c/7WD8einpEKMAB6MSD29Fg1+cEGti WXFl7iFGCQ5mJRFeNR6gEG9KYmVValF+fFFpTmrxIUZpDhYlcV7jRS9jhQTSE0tSs1NTC1KL YLJMHJxSDYxcgltZK5aUuBxnmq+85pF6Uqimpu8kDbW7f1dsvjzHdLFjZvANncXHpk9f2H/k 5WvbEK6fJwM9VdSSTHe+ObPkbsVm71WH1n3S95dyP+L87AELH8Ms9Y9ipf+7922KFvxUlJLy u5OPt2/nrP60j2WcEv92qDS2Ohx4X+zAZvT8x4btv1bXrL+sxFKckWioxVxUnAgAdhy0yg4D AAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDLMWRmVeSWpSXmKPExsVy+t/xu7rf5/jFGfxvULHYOGM9q8XUh0/Y LK5/ec5qcf78BnaLy7vmsFl87j3CaLH2yF12i9uNK9gsTu8uceD02LSqk82jb8sqRo/Pm+QC mKP0bIryS0tSFTLyi0tslaINLYz0DC0t9IxMLPUMjc1jrYxMlfTtbFJSczLLUov07RL0Mn7N m8ZWsJuzoq/vFVsDYz9HFyMHh4SAicSnO7pdjFwcQgJLGSW+vJ7M2sXICRSXkTg5rQHKFpb4 c62LDaLoE6PEzX+7WUASbAKGEl1vQRKcHCICNhJ3F19jASliFljDJNHw8CMTSEJYwF/i+o5z 7CA2i4CqxLydW8Gm8grYSvyftowdYoO8xOoNB5hBbE4BO4lJEyaA2UJANXs2HmWfwMi3gJFh FaNIamlxbnpusZFecWJucWleul5yfu4mRmDIbjv2c8sOxq53wYcYBTgYlXh4Kxr84oRYE8uK K3MPMUpwMCuJ8KrxAIV4UxIrq1KL8uOLSnNSiw8xmgIdNZFZSjQ5HxhPeSXxhqaG5haWhubG 5sZmFkrivB0CB2OEBNITS1KzU1MLUotg+pg4OKUaGE/Vza74Nk9/VsXBq2dn1lZ8PFpT9sX2 nF7uNyO59RWzVnXxWQmkyoisC+tfmFI4MUdYlrV9rqCPa/yE6V3vv7gnrPu0N332n//9x9wE V3ZxntNlUk3kcdovUJ6998CzDZv0npkGevO+8N1edLU5P+HwryvWwu/3Wszc8HKihXtVY8ER nlqTSCWW4oxEQy3mouJEAIuZGm1vAgAA X-CMS-MailID: 20200220145135eucas1p1ba181cef65c7a4f91a254ee35e022f08 X-Msg-Generator: CA X-RootMTR: 20200220145135eucas1p1ba181cef65c7a4f91a254ee35e022f08 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200220145135eucas1p1ba181cef65c7a4f91a254ee35e022f08 References: <20200220145127.21273-1-m.szyprowski@samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add device tree compatible strings and create proper modalias structures to let this driver load automatically if compiled as module, because max14577 MFD driver creates MFD cells with such compatible strings. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski --- drivers/power/supply/max14577_charger.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/power/supply/max14577_charger.c b/drivers/power/supply/max14577_charger.c index 8a59feac6468..891ba9f6f295 100644 --- a/drivers/power/supply/max14577_charger.c +++ b/drivers/power/supply/max14577_charger.c @@ -623,6 +623,15 @@ static const struct platform_device_id max14577_charger_id[] = { }; MODULE_DEVICE_TABLE(platform, max14577_charger_id); +static const struct of_device_id of_max14577_charger_dt_match[] = { + { .compatible = "maxim,max77836-charger", + .data = (void *)MAXIM_DEVICE_TYPE_MAX77836, }, + { .compatible = "maxim,max14577-charger", + .data = (void *)MAXIM_DEVICE_TYPE_MAX14577, }, + { }, +}; +MODULE_DEVICE_TABLE(of, of_max14577_charger_dt_match); + static struct platform_driver max14577_charger_driver = { .driver = { .name = "max14577-charger",