Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3860613pxb; Wed, 13 Oct 2021 14:42:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEoxEA/k2OQD2MbkCxb/lQG+SqyG+1vM5OBWZH0UCfrIlnjCmZ1htd2CKvOVz0bcpYjNu9 X-Received: by 2002:a05:6402:40c2:: with SMTP id z2mr2924980edb.41.1634161354340; Wed, 13 Oct 2021 14:42:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634161354; cv=none; d=google.com; s=arc-20160816; b=RNLTPyHhHfv/We8FnUl5NqX2dUlfVEaaA2RRiPQWaPaXOHvU3Ql6z+XhXjetSmx3fs e+79RvF6OXqu5rMaoDW7ZyXx3eGnhmlH8oLcbXBUNojBWnjJVmroBB5t8ggpePVUqFI3 6ExF1DKgPveVwuu0qWj/IVw1t8fWK0dWgkjUpKV70nNv6oWHTNFgJUTAzV/fp51GGuFO mruJjpLWy00yz+6iv8754ZaCNr44ThzpdbJONlRLFWbdPAzwlpf9g/W+TGHlnchuPKn9 SGt5US3Wp/gjBE4OTPkDe+kr9Ki4X1UrXYqKtZy/yd7Dwj5VFd59JMjsCk4Cb5LqOEqF 1TZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Nwi2IVLS+nvhMtPo39q8rfiNCQof6wf9vdIXVKYgOl8=; b=TQgGlhxJ5xA3hlSGdJwVOdxV1Itp8eECfeG4pCgpm/3mmnLxREm5TVHC1WmKyWVjWK 1iDMZgdMjz1WBrPOKVofIfJC580Gj3KZjyC91+s0NX2Dh4UoMWKkz31SfPptIoP0TSL+ ZJ2yM1Y37iK2uLyo7yb1onqBbegmLlG9gjmlz3t9aDATlDvAfdbs6ws0q+XorAeP7jMe bIGBqSBHZwae8Gl6Xg1nw4hTyCi9LQ/13qDJgTKTsRQGS4/BOkYYQfeXdldVRVxp7Cda Ke7JI8EA9kHIfx/LZS4WMMEdX3UfI37GPRsODjzqZqx+/3IIM6QIVgFJnOgSh5kmJNep FAlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y4si1429810edc.473.2021.10.13.14.41.56; Wed, 13 Oct 2021 14:42:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229881AbhJMVlk (ORCPT + 99 others); Wed, 13 Oct 2021 17:41:40 -0400 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:49926 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbhJMVlj (ORCPT ); Wed, 13 Oct 2021 17:41:39 -0400 Received: from [77.244.183.192] (port=64982 helo=[192.168.178.41]) by hostingweb31.netsons.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1malyI-002DCh-Aq; Wed, 13 Oct 2021 23:39:34 +0200 Subject: Re: [PATCH 6/8] mfd: max77714: Add driver for Maxim MAX77714 PMIC To: Krzysztof Kozlowski , linux-kernel@vger.kernel.org Cc: Lee Jones , Rob Herring , Alessandro Zummo , Alexandre Belloni , Chanwoo Choi , Bartlomiej Zolnierkiewicz , Wim Van Sebroeck , Guenter Roeck , devicetree@vger.kernel.org, linux-rtc@vger.kernel.org, linux-watchdog@vger.kernel.org, Chiwoong Byun , Laxman Dewangan References: <20211011155615.257529-1-luca@lucaceresoli.net> <20211011155615.257529-7-luca@lucaceresoli.net> From: Luca Ceresoli Message-ID: <5236720c-96b0-3e18-e08f-a5dde982eab5@lucaceresoli.net> Date: Wed, 13 Oct 2021 23:39:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingweb31.netsons.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: hostingweb31.netsons.net: authenticated_id: luca@lucaceresoli.net X-Authenticated-Sender: hostingweb31.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 12/10/21 10:32, Krzysztof Kozlowski wrote: > On 11/10/2021 17:56, Luca Ceresoli wrote: >> Add a simple driver for the Maxim MAX77714 PMIC, supporting RTC and >> watchdog only. >> >> Signed-off-by: Luca Ceresoli >> --- >> MAINTAINERS | 2 + >> drivers/mfd/Kconfig | 14 ++++ >> drivers/mfd/Makefile | 1 + >> drivers/mfd/max77714.c | 151 +++++++++++++++++++++++++++++++++++ >> include/linux/mfd/max77714.h | 68 ++++++++++++++++ >> 5 files changed, 236 insertions(+) >> create mode 100644 drivers/mfd/max77714.c >> create mode 100644 include/linux/mfd/max77714.h >> > > (...) > >> + >> +static const struct of_device_id max77714_dt_match[] = { >> + { .compatible = "maxim,max77714" }, >> + {}, >> +}; > > When converting to module - don't forget the MODULE_DEVICE_TABLE > >> + >> +static struct i2c_driver max77714_driver = { >> + .driver = { >> + .name = "max77714", >> + .of_match_table = of_match_ptr(max77714_dt_match), > > Kbuild robot pointed it out - of_matc_ptr should not be needed, even for > compile testing without OF. I wonder whether it's better to add '#ifdef CONFIG_OF / #endif' around the struct of_device_id declaration. I think it's what most drivers do, even though I tend to prefer not adding #ifdefs making code less clean only for COMPILE_TESTING. -- Luca