From patchwork Fri May 22 10:24:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 11565295 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 C4811912 for ; Fri, 22 May 2020 10:24:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AD38C20757 for ; Fri, 22 May 2020 10:24:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="lvPtxQHR" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728772AbgEVKY4 (ORCPT ); Fri, 22 May 2020 06:24:56 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:47257 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728747AbgEVKYz (ORCPT ); Fri, 22 May 2020 06:24:55 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200522102453euoutp02497da571cf38c6544c3700752a6e9b6f~RUrgCZRDU1688016880euoutp02Z for ; Fri, 22 May 2020 10:24:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200522102453euoutp02497da571cf38c6544c3700752a6e9b6f~RUrgCZRDU1688016880euoutp02Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1590143093; bh=yuGCISGtXXxk6Kjio358dgLlQzOgYeCxLlP5RCiJcTI=; h=From:To:Cc:Subject:Date:References:From; b=lvPtxQHRGm0UQNAxNaTOiiHJDFc98wPpB1X2Ux25vfu4l2rBO2TonOHkLkVa8ai0Y V2+S/7y4Q8u+0+KzboWS53Nku/TYpoDdLfi/IfM0VFp6NuYJusk8gxYShDvnYb/bBp JbZa+z11/aqDdejVO0OdoTj/BzPkAzhudFX7Msvk= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200522102453eucas1p2e01a743f877ded1d3cf5c0ca6f29258b~RUrfqX0B41398613986eucas1p2u; Fri, 22 May 2020 10:24:53 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 79.60.60698.578A7CE5; Fri, 22 May 2020 11:24:53 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200522102452eucas1p17c18de8f79e27de96474e5fcad6db5fa~RUrfSQnq13204332043eucas1p1A; Fri, 22 May 2020 10:24:52 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200522102452eusmtrp17c082c7b0eaf39af67b0c9a15b5384b2~RUrfRneKU3174731747eusmtrp1g; Fri, 22 May 2020 10:24:52 +0000 (GMT) X-AuditID: cbfec7f5-a29ff7000001ed1a-cf-5ec7a875664b Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 3E.BC.07950.478A7CE5; Fri, 22 May 2020 11:24:52 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200522102452eusmtip286193654d8815aef3f5bc3f03cdc76d8~RUreqrkO90298302983eusmtip2q; Fri, 22 May 2020 10:24:52 +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 v3 1/3] regulator: max14577: Add proper dt-compatible strings Date: Fri, 22 May 2020 12:24:46 +0200 Message-Id: <20200522102448.30209-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrLIsWRmVeSWpSXmKPExsWy7djP87qlK47HGeyZz2exccZ6VoupD5+w WVz/8pzV4vz5DewWl3fNYbP43HuE0WLtkbvsFrcbV7BZnN5d4sDpsWlVJ5tH35ZVjB6fN8kF MEdx2aSk5mSWpRbp2yVwZbye8IO94At3xc7LZg2M/VxdjJwcEgImEjNOLWQCsYUEVjBKrL0c 1sXIBWR/YZTY+3Y6E4TzmVFiUd9eVpiOtkUvWSESyxkldl1cyA7Xcn3eWrBZbAKGEl1vu9hA bBEBK4nT/zuYQYqYBVYwSXz8/QmsSFjAX+LX2dfsIDaLgKpEw6MVjCA2r4CtxOJ7n5kh1slL rN5wAKxZQuA6m8TVFUuhEi4SP2augLpJWOLV8S3sELaMxOnJPSwQDc2MEg/PrWWHcHoYJS43 zWCEqLKWuHPuF9B9HEA3aUqs36UPEXaUePn4CDtIWEKAT+LGW0GQMDOQOWnbdGaIMK9ER5sQ RLWaxKzj6+DWHrxwCeo0D4l/h6aygpQLCcRKLN4QO4FRbhbCqgWMjKsYxVNLi3PTU4uN81LL 9YoTc4tL89L1kvNzNzECE8Hpf8e/7mDc9yfpEKMAB6MSD69F2rE4IdbEsuLK3EOMEhzMSiK8 C/mPxgnxpiRWVqUW5ccXleakFh9ilOZgURLnNV70MlZIID2xJDU7NbUgtQgmy8TBKdXAuL4z +lPy2Z0iKjtX9Tv/DxS9WeO9T91R+UfAnUbf1x96u0X5dM83nKntffj12yvts4f1ZzmICt78 eSB2V4vxmrvd+x00az+08vhOkUrXmbbmatQijbAVf062Bq9PVLv5fFtN8urXa9RU/802k29a +WHqaealGvIC2lW94j93y/VujpoS+zmWQ4mlOCPRUIu5qDgRALZSyS8AAwAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCLMWRmVeSWpSXmKPExsVy+t/xe7olK47HGTxv0LXYOGM9q8XUh0/Y LK5/ec5qcf78BnaLy7vmsFl87j3CaLH2yF12i9uNK9gsTu8uceD02LSqk82jb8sqRo/Pm+QC mKP0bIryS0tSFTLyi0tslaINLYz0DC0t9IxMLPUMjc1jrYxMlfTtbFJSczLLUov07RL0Ml5P +MFe8IW7YudlswbGfq4uRk4OCQETibZFL1m7GLk4hASWMkrM+LKdHSIhI3FyWgMrhC0s8eda FxtE0SdGiVeN71lAEmwChhJdb0ESnBwiAjYSdxdfYwEpYhZYwyTR8PAjE0hCWMBX4uq7WWCT WARUJRoerWAEsXkFbCUW3/vMDLFBXmL1hgPMExh5FjAyrGIUSS0tzk3PLTbSK07MLS7NS9dL zs/dxAgMwW3Hfm7Zwdj1LvgQowAHoxIP74PkY3FCrIllxZW5hxglOJiVRHgX8h+NE+JNSays Si3Kjy8qzUktPsRoCrR8IrOUaHI+MD7ySuINTQ3NLSwNzY3Njc0slMR5OwQOxggJpCeWpGan phakFsH0MXFwSjUwurZs2tPadF9I1FNoEo95zeH8qU7SLJMeWO3YcrWv6OXD1wxnG/fO/POs +tL0/EWaE6UOdrqcNYtrmKmgdZ9rpsGCR2Jxy5IYTrF1BB5exrrq8VNO7Ut2FT/fTtgZNZl9 w8df4ipfLkt0168NTuaSe9R8g7VdiXGpXbvltbVSSQ+dciQrN7jMVmIpzkg01GIuKk4EAFdD eIdXAgAA X-CMS-MailID: 20200522102452eucas1p17c18de8f79e27de96474e5fcad6db5fa X-Msg-Generator: CA X-RootMTR: 20200522102452eucas1p17c18de8f79e27de96474e5fcad6db5fa X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200522102452eucas1p17c18de8f79e27de96474e5fcad6db5fa 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 --- v3: - sorted of_max14577_regulator_dt_match v2: - added .of_match_table pointer --- drivers/regulator/max14577-regulator.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/max14577-regulator.c b/drivers/regulator/max14577-regulator.c index 07a150c9bbf2..4c9ae52b9e87 100644 --- a/drivers/regulator/max14577-regulator.c +++ b/drivers/regulator/max14577-regulator.c @@ -238,10 +238,20 @@ 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,max14577-regulator", + .data = (void *)MAXIM_DEVICE_TYPE_MAX14577, }, + { .compatible = "maxim,max77836-regulator", + .data = (void *)MAXIM_DEVICE_TYPE_MAX77836, }, + { }, +}; +MODULE_DEVICE_TABLE(of, of_max14577_regulator_dt_match); + static struct platform_driver max14577_regulator_driver = { .driver = { - .name = "max14577-regulator", - }, + .name = "max14577-regulator", + .of_match_table = of_max14577_regulator_dt_match, + }, .probe = max14577_regulator_probe, .id_table = max14577_regulator_id, }; From patchwork Fri May 22 10:24:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 11565299 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 460841392 for ; Fri, 22 May 2020 10:25:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 29FD620738 for ; Fri, 22 May 2020 10:25:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="AkOugapr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728827AbgEVKY6 (ORCPT ); Fri, 22 May 2020 06:24:58 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:47267 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728267AbgEVKY5 (ORCPT ); Fri, 22 May 2020 06:24:57 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200522102455euoutp027f8c96e7e8ac565c43c79286c14ae3ca~RUriI5gbw1699016990euoutp02E for ; Fri, 22 May 2020 10:24:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200522102455euoutp027f8c96e7e8ac565c43c79286c14ae3ca~RUriI5gbw1699016990euoutp02E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1590143096; bh=7GdZc7Q1b31TFT7pHieX7lbsi1QDWMFXfS2C5GttQMI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AkOugaprEG4zfHmg/+SRZLe+Yt/MJNnkx02dt5vpS7rPHntzR10fSdlpt0J1ByeoS QGVQR+gNbfRLBSQqHS6xlmxgrXWA67/0ss7xSnhBNXQduBoToN7VkKqTFS3mTvvcZc isO7Qrsvo+HsyIvAbFehQJAn0MpNytZh9LnZrlTM= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200522102455eucas1p17473a02d5a35a2e60f2a100d3b85ddb6~RUrh85eWL0639106391eucas1p1z; Fri, 22 May 2020 10:24:55 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id FA.DB.61286.778A7CE5; Fri, 22 May 2020 11:24:55 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200522102455eucas1p24b695b7f6c533681f544be166ea69200~RUrhVJu8C2193621936eucas1p2G; Fri, 22 May 2020 10:24:55 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200522102455eusmtrp1d7cbcc4d5dab5e290cbc5fc8151c4fb0~RUrhUiuhE3194431944eusmtrp1I; Fri, 22 May 2020 10:24:55 +0000 (GMT) X-AuditID: cbfec7f2-ef1ff7000001ef66-0b-5ec7a8776166 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 41.90.08375.678A7CE5; Fri, 22 May 2020 11:24:54 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200522102454eusmtip24d25446144283ea17a799844a07f622f~RUrgwsK_Y3179731797eusmtip2f; Fri, 22 May 2020 10:24:54 +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 v3 2/3] extcon: max14577: Add proper dt-compatible strings Date: Fri, 22 May 2020 12:24:47 +0200 Message-Id: <20200522102448.30209-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200522102448.30209-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrFIsWRmVeSWpSXmKPExsWy7djPc7rlK47HGSw8q2WxccZ6VoupD5+w WVz/8pzV4vz5DewWl3fNYbP43HuE0WLtkbvsFrcbV7BZnN5d4sDpsWlVJ5tH35ZVjB6fN8kF MEdx2aSk5mSWpRbp2yVwZdy9+5W94CpXxeGVB9gaGBs5uxg5OSQETCQ6f35k7WLk4hASWMEo cXnzFiYI5wujRPP1zywQzmdGiX37P7HAtdx6yQaRWM4o8fP9QUaQBFjL3UnpIDabgKFE19su NhBbRMBK4vT/D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hlsExj5FjAyrGIU SS0tzk3PLTbUK07MLS7NS9dLzs/dxAgM2G3Hfm7ewXhpY/AhRgEORiUe3gfJx+KEWBPLiitz DzFKcDArifAu5D8aJ8SbklhZlVqUH19UmpNafIjRFOikicxSosn5wGjKK4k3NDU0t7A0NDc2 NzazUBLn7RA4GCMkkJ5YkpqdmlqQWgTTx8TBKdXAqPk2bTaH8NN7LsUCG1aH3WqV7Hzp8MKF 91PLod0N607yHI40nmhs9EC86Ur/f7euvNCLEybOCGpbcFyksm+p7qujYhdMlx472nCJN6vG Z2ne5VW/r4SdLNi5kv3bzfvZs4SjV0o1RhxPTq39u//9qcWz648V/Xb5Pb/G/q7tjRRjo5Ps uZdkg5RYijMSDbWYi4oTAQGsRlxuAgAA X-CMS-MailID: 20200522102455eucas1p24b695b7f6c533681f544be166ea69200 X-Msg-Generator: CA X-RootMTR: 20200522102455eucas1p24b695b7f6c533681f544be166ea69200 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200522102455eucas1p24b695b7f6c533681f544be166ea69200 References: <20200522102448.30209-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 --- v3: - sorted of_max14577_muic_dt_match v2: - added .of_match_table pointer --- drivers/extcon/extcon-max14577.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/extcon/extcon-max14577.c b/drivers/extcon/extcon-max14577.c index 32f663436e6e..03af678ddeba 100644 --- a/drivers/extcon/extcon-max14577.c +++ b/drivers/extcon/extcon-max14577.c @@ -782,9 +782,19 @@ 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,max14577-muic", + .data = (void *)MAXIM_DEVICE_TYPE_MAX14577, }, + { .compatible = "maxim,max77836-muic", + .data = (void *)MAXIM_DEVICE_TYPE_MAX77836, }, + { }, +}; +MODULE_DEVICE_TABLE(of, of_max14577_muic_dt_match); + static struct platform_driver max14577_muic_driver = { .driver = { .name = "max14577-muic", + .of_match_table = of_max14577_muic_dt_match, }, .probe = max14577_muic_probe, .remove = max14577_muic_remove, From patchwork Fri May 22 10:24:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 11565301 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 A5E10912 for ; Fri, 22 May 2020 10:25:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8F2B920738 for ; Fri, 22 May 2020 10:25:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="uj5zXZba" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728898AbgEVKZC (ORCPT ); Fri, 22 May 2020 06:25:02 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:35670 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728820AbgEVKY6 (ORCPT ); Fri, 22 May 2020 06:24:58 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200522102456euoutp01608613d257b4bffab2383dc6465ef4f4~RUriV8CvV0174001740euoutp017 for ; Fri, 22 May 2020 10:24:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200522102456euoutp01608613d257b4bffab2383dc6465ef4f4~RUriV8CvV0174001740euoutp017 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1590143096; bh=GiXLlCD7rw4Ddh8ai89LcATFiowzn5HsH3cgIMUtpwI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uj5zXZbaXtNP8J+RjMBXfCeofIpZ3qrQvdUGCoDNVidY1hZ6TjT1Knil4Ier15sAB oxWIL8HgPqufeoPGZtF2bGFrhPW2ugYrm+0eeMZCDNnxuDogwEXhUcvVWjT4B/f1Zj Zx2VXoq7VZaEYF+Gw04/q0FkmQcQIPkXHFEblFO4= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200522102455eucas1p2ba4487ef3f697baefc7441d863c17453~RUriGiuPC2413324133eucas1p2L; Fri, 22 May 2020 10:24:55 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id BA.60.60698.778A7CE5; Fri, 22 May 2020 11:24:55 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200522102455eucas1p13700db68b90ec05bd02d21014b81b656~RUrhy_DwL0694006940eucas1p1F; Fri, 22 May 2020 10:24:55 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200522102455eusmtrp15415b7f8d3c7e68d895d9b5606d5bc1b~RUrhyYhyF3194431944eusmtrp1L; Fri, 22 May 2020 10:24:55 +0000 (GMT) X-AuditID: cbfec7f5-a0fff7000001ed1a-d6-5ec7a87739ef Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id E1.90.08375.778A7CE5; Fri, 22 May 2020 11:24:55 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200522102455eusmtip27b49c9738e8c7f997507ed297cabeb54~RUrhQIIn70316003160eusmtip2H; Fri, 22 May 2020 10:24:54 +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 v3 3/3] power: charger: max14577: Add proper dt-compatible strings Date: Fri, 22 May 2020 12:24:48 +0200 Message-Id: <20200522102448.30209-3-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200522102448.30209-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBIsWRmVeSWpSXmKPExsWy7djP87rlK47HGTzvN7bYOGM9q8XUh0/Y LK5/ec5qcf78BnaLy7vmsFl87j3CaLH2yF12i9uNK9gsTu8uceD02LSqk82jb8sqRo/Pm+QC mKO4bFJSczLLUov07RK4Mr4sO8teMJu74tip6gbGE5xdjJwcEgImEv/XfWUGsYUEVjBKfF3t 18XIBWR/YZRY2LQFKvGZUWL3gxyYhjcTzjNBFC1nlLi89yE7XMeSRddZQarYBAwlut52sYHY IgJWEqf/dzCDFDELrGCS+Pj7ExNIQlggRGL5hTssIDaLgKrExRm3wdbxCthKHNi8jw1inbzE 6g0HgOIcHJwCdhIvTxWDzJEQeM8mcaD5BTNEjYtEw72VUPXCEq+Ob2GHsGUkTk/uYYFoaGaU eHhuLTuE0wN0d9MMRogqa4k7536xgWxgFtCUWL9LHyLsKDHjVBdYWEKAT+LGW0GQMDOQOWnb dGaIMK9ER5sQRLWaxKzj6+DWHrxwCeo0D4kXH7pZIKE4kVFi/jL2CYzysxB2LWBkXMUonlpa nJueWmycl1quV5yYW1yal66XnJ+7iRGYHk7/O/51B+O+P0mHGAU4GJV4eC3SjsUJsSaWFVfm HmKU4GBWEuFdyH80Tog3JbGyKrUoP76oNCe1+BCjNAeLkjiv8aKXsUIC6Yklqdmpq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as1p13700db68b90ec05bd02d21014b81b656 X-Msg-Generator: CA X-RootMTR: 20200522102455eucas1p13700db68b90ec05bd02d21014b81b656 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200522102455eucas1p13700db68b90ec05bd02d21014b81b656 References: <20200522102448.30209-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 --- v3: - sorted of_max14577_charger_dt_match v2: - added .of_match_table pointer --- drivers/power/supply/max14577_charger.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/power/supply/max14577_charger.c b/drivers/power/supply/max14577_charger.c index 8a59feac6468..96f4cd1941b2 100644 --- a/drivers/power/supply/max14577_charger.c +++ b/drivers/power/supply/max14577_charger.c @@ -623,9 +623,19 @@ 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,max14577-charger", + .data = (void *)MAXIM_DEVICE_TYPE_MAX14577, }, + { .compatible = "maxim,max77836-charger", + .data = (void *)MAXIM_DEVICE_TYPE_MAX77836, }, + { }, +}; +MODULE_DEVICE_TABLE(of, of_max14577_charger_dt_match); + static struct platform_driver max14577_charger_driver = { .driver = { .name = "max14577-charger", + .of_match_table = of_max14577_charger_dt_match, }, .probe = max14577_charger_probe, .remove = max14577_charger_remove,