Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp793280rdb; Tue, 15 Aug 2023 12:06:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFA3AyiQziPCr7NOaO5ux4STxNMwxn5wrsLm6ErwkM7ZGXSZ+1padudqNPnoms780sgJSzw X-Received: by 2002:a05:6a00:2484:b0:686:b5c9:c527 with SMTP id c4-20020a056a00248400b00686b5c9c527mr3605942pfv.17.1692126411462; Tue, 15 Aug 2023 12:06:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692126411; cv=none; d=google.com; s=arc-20160816; b=VWjWBDB1jZ5FAS9qYCLHYEikDbaEL3hVSPnP3+y8PYcYSE3xmfbOsYmqPV8Sc+Glfw saC8TqP1YT+it2+1+7eZbx5Z+zdykxx+3slV75MlWt3YOfmz3Ey8tRPF1tp/uCeWOemk nQjtJqkgnir0iglzKcl6Q3diSOoT39kbKWQvwlz2/caqTP8pjp74EHGCMkueXWwl75vN k/L5pJAe1H+PuYeIf4TmSnHeOrleJn8gh8+45q2QYmTmlAbp6KFjs1jL0Km3/a6j9WTm MiOmiu9ctH9qBA1w9GzAIPCADSn8YlxCjFEvTQiNlVgO6X+Ga/RGOBM4X8TAF7J03WF6 omAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from; bh=CL3VGKFdoAmBmKb7WBDEyulh7HX5SCpxA53aruWEtOI=; fh=XtZ7F1N+y4n9IOoD1X87bQh0afkIITJBkc8dePGTIls=; b=PeukLidkw0fI3dKSk83p9SgBwkgJYMihsPCxpSTXu/HsCurUf5uH1A9a2AimHoH9jh g9WkBXAl2is9H1piYOTBEEyixBY614WFCGbIslPTm08xLHPv0jbF35M9s0qS41Z/Xu82 vivTVAZb4AXgSigHJHsp/Zlx2eztT1hS5smnaUDR7w53bcAALKqAGj4qyeD5BDe35QEf mYQ7I7h0ImlW6TOvS9IB+GefZI4nCv9pWkaMMmI6ZGuFvMdJZnua9fv+B/WpOKSnESkQ RXyL+YRJVksvW2ebpn0A3uOt8uO1T4WzreMMvXCl/Pn5ZTBrIAc3CgeP0czUt8GZjRAl s7Iw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r33-20020a634421000000b00563da455862si10177596pga.311.2023.08.15.12.06.38; Tue, 15 Aug 2023 12:06:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232676AbjHNVGa (ORCPT + 99 others); Mon, 14 Aug 2023 17:06:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232732AbjHNVGT (ORCPT ); Mon, 14 Aug 2023 17:06:19 -0400 Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67E4A1718 for ; Mon, 14 Aug 2023 14:06:18 -0700 (PDT) Received: from localhost (88-113-24-87.elisa-laajakaista.fi [88.113.24.87]) by fgw20.mail.saunalahti.fi (Halon) with ESMTP id 68379b0b-3ae6-11ee-b3cf-005056bd6ce9; Tue, 15 Aug 2023 00:06:16 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Tue, 15 Aug 2023 00:06:15 +0300 To: TY Chang Cc: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/7] pinctrl: realtek: Add pinctrl driver for RTD1315E Message-ID: References: <20230726090409.16606-1-tychang@realtek.com> <20230726090409.16606-3-tychang@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230726090409.16606-3-tychang@realtek.com> X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wed, Jul 26, 2023 at 05:04:04PM +0800, TY Chang kirjoitti: > Add RTD1315E support using realtek common pinctrl driver. ... > +config PINCTRL_RTD1315E > + tristate "Realtek DHC 1315E pin controller driver" > + depends on PINCTRL_RTD Why not select and the above be hidden symbol? ... > +#include > +#include Not used. Use correct headers > +#include + Blank line > +#include Make use of struct pinconfig, struct pinfunction and respective PINCTRL_PIN*() macros. ... > +#define RTD1315E_GROUP(_name) \ > + { \ > + .name = # _name, \ > + .pins = rtd1315e_ ## _name ## _pins, \ > + .num_pins = ARRAY_SIZE(rtd1315e_ ## _name ## _pins), \ > + } NIH PINCTRL_PINGROUP(). ... > +#define RTD1315E_FUNC(_name) \ > + { \ > + .name = # _name, \ > + .groups = rtd1315e_ ## _name ## _groups, \ > + .num_groups = ARRAY_SIZE(rtd1315e_ ## _name ## _groups), \ > + } NIH PINCTRL_PINFUNCTION(). ... > +static const struct of_device_id rtd1315e_pinctrl_of_match[] = { > + { .compatible = "realtek,rtd13xxe-pinctrl", }, > + {}, No comma for the terminator entry. > +}; ... Same comments for all new drivers in the series. -- With Best Regards, Andy Shevchenko