From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7483C04A94 for ; Mon, 14 Aug 2023 21:07:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230140AbjHNVG3 (ORCPT ); Mon, 14 Aug 2023 17:06:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232728AbjHNVGT (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 5F628E65 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> Precedence: bulk List-ID: X-Mailing-List: devicetree@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