From patchwork Wed Dec 23 13:42:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timon Baetz X-Patchwork-Id: 11988321 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CF4FC433DB for ; Wed, 23 Dec 2020 13:44:25 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 034B622D57 for ; Wed, 23 Dec 2020 13:44:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 034B622D57 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:Reply-To:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID: Subject:From:To:Date:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CshThuolOueACFPPsBTwjs2pCj7F3CzYjD7EUbN43iM=; b=P8vSdsI7XyyaHeU5iAIAzLSg2R yZGc5qbWYoXBcHElHuJ4w20E+X2iN7FE+kRrllWF7L6K4koAyz8IiuYPbSe3WsuxIFZowKek05aZ5 Q2fBKwQzp1Ikh89ZzfEO9eQYTnj+uGpBkjITtfV/8lrrdDHOdyiSv2Vn2U92GxTy0/2IDZeR9s7wE 5vYN27qlYn9VsSPiEx21MhQ9Usfvw3sySfTPfuadNERnLqLHpMqFTXTTRNc3AdcaN8BuWeFapVQ6D muyKGGkODpwFaIj1Ta0H7jaLq38vssAap7wTD+6bJew0XvWAIS/l6bRLxpeu8r/UdI37o68V0c/QX n3VAiyxg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ks4Pz-0005s8-Na; Wed, 23 Dec 2020 13:43:08 +0000 Received: from mail2.protonmail.ch ([185.70.40.22]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ks4Pv-0005rV-Tm for linux-arm-kernel@lists.infradead.org; Wed, 23 Dec 2020 13:43:05 +0000 Date: Wed, 23 Dec 2020 13:42:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1608730982; bh=acDpNkZlgg3POOor0u+D9TYzB52a154XD9l+kpesuTk=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=AguaoofohIlTlVaVpj7MsfX9TD1jLpcEY2wSG1Aobc3kchAgao6UewQhmGnvExFOD 60pOO93PC/da2RTKO7qJBvzbJ0KngW6Wf29Fb4979+ZhH8uBGZzZWLi6AoMba1XbhH 9c1A5A1aw+o+13kFRqYRGQ95vCEKVR8LDZcSx1AI= To: Krzysztof Kozlowski From: Timon Baetz Subject: [PATCH v4 3/7] mfd: max8997: Add of_compatible to extcon and charger mfd_cell Message-ID: <20201223134221.804943-3-timon.baetz@protonmail.com> In-Reply-To: <20201223134221.804943-1-timon.baetz@protonmail.com> References: <20201223134221.804943-1-timon.baetz@protonmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201223_084304_113473_E5DE1605 X-CRM114-Status: GOOD ( 11.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Timon Baetz Cc: devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Timon Baetz , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown , Liam Girdwood , Rob Herring , Sebastian Reichel , Chanwoo Choi , MyungJoo Ham , ~postmarketos/upstreaming@lists.sr.ht, Lee Jones , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add of_compatible ("maxim,max8997-muic") to the mfd_cell to have a of_node set in the extcon driver. Add of_compatible ("maxim,max8997-battery") to the mfd_cell to configure the charger driver. Signed-off-by: Timon Baetz --- drivers/mfd/max8997.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/max8997.c b/drivers/mfd/max8997.c index 68d8f2b95287..55d3a6f97783 100644 --- a/drivers/mfd/max8997.c +++ b/drivers/mfd/max8997.c @@ -29,9 +29,9 @@ static const struct mfd_cell max8997_devs[] = { { .name = "max8997-pmic", }, { .name = "max8997-rtc", }, - { .name = "max8997-battery", }, + { .name = "max8997-battery", .of_compatible = "maxim,max8997-battery", }, { .name = "max8997-haptic", }, - { .name = "max8997-muic", }, + { .name = "max8997-muic", .of_compatible = "maxim,max8997-muic", }, { .name = "max8997-led", .id = 1 }, { .name = "max8997-led", .id = 2 }, };