Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp820625rwl; Fri, 31 Mar 2023 02:56:13 -0700 (PDT) X-Google-Smtp-Source: AKy350aQ08BLkTcZaV62Ox2QaiqyTK2gGc7T4GeP6cxN0TMRIUrpWS7ffmZXHzocDucXsyX0F/B3 X-Received: by 2002:a17:906:74c3:b0:944:4d7:d3d9 with SMTP id z3-20020a17090674c300b0094404d7d3d9mr4179865ejl.2.1680256573381; Fri, 31 Mar 2023 02:56:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680256573; cv=none; d=google.com; s=arc-20160816; b=K77T6/L+rBhcwZ2J0pof23GHK8bRhIdAbZ9s3DeC2VK6vEitntyFKAOG7kpLypQrbK bVfViP0s4FVHCaM1ksg/FC7g5IaxhKLhvbMu7O/aaBoNrgmMw1TeCYYGISZm+dpBsyYZ jJV0O9YVHIYdJ6Q3pJmohbJh8aV96jVyAG5nTQAWDo8prJPpzd0v6qEdSJrn8h9zPObl Wg/d71G/EYSFTtoHeHpGzk0iA8BbHmRNV62SRHNTmccayhVjt6eumtco+9aVQyKAFE8m ytDub/vIU8406G9TkFL6I7AnQ3O/NYOaDbGI4opS16/aadXl7DikV3GoaTq399Mhrw2L lSww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=hnaNB1XEFARvtvmMjnyCWM6urGrAoqOyko+dcOeieP4=; b=aweyiAWgGtrX1QDZQVKsIMaa686w+vuUoN2Oi25WOz8rmIn2O9u6+xVLH6Lh7g7C+q iTVOGhQoHvw3gTov/2iqbGxn21gUBJlFoS/EFJJisPijoZYUvrIeFl7HwhqjJfz3EZHP HkT1kB+1xY+oHQJLCbePo91SdvQqNHaZ97ccUCZpI8LvADEgECDR5SVM+1j6ZCOt9y7X OF5Hc1vPIdoSSnrWK1gcoQWLv1FtkSAb6Vp/wR54SzVM2hGs3WauYAD4vegdyTXGxMHD l+80Wgz8HdIzIpKrysJ50aw4klpRcQBdyrKjsSqVjwHTRTp6Ps36yDxmitLUc/UTkMZb 8t8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CNHXi9MB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt17-20020a170906f21100b009313e7b7273si1729429ejb.649.2023.03.31.02.55.48; Fri, 31 Mar 2023 02:56:13 -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; dkim=pass header.i=@linaro.org header.s=google header.b=CNHXi9MB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231792AbjCaJlw (ORCPT + 99 others); Fri, 31 Mar 2023 05:41:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231633AbjCaJlu (ORCPT ); Fri, 31 Mar 2023 05:41:50 -0400 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDD149026 for ; Fri, 31 Mar 2023 02:41:48 -0700 (PDT) Received: by mail-yb1-xb2f.google.com with SMTP id p203so26675316ybb.13 for ; Fri, 31 Mar 2023 02:41:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680255708; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=hnaNB1XEFARvtvmMjnyCWM6urGrAoqOyko+dcOeieP4=; b=CNHXi9MB2mEr2AuQ/LvwUlACS4Az3+B0YUHQfIOr//HmiPYsXroiJvw3pgwNkVgFE0 wXRRtCk8TRxTYe0wfCYNIFxtdKH+w8zE8RbLvoKhkDoNCGL2CkfEigwt2+q+2NuBJyRz dCcNB6lgTz5vwlDrYJfVyKRPDLZVmmL42SoCJnFhCEsKkRjpsX9lAHfYTLvGgjKGzxQU BrZgcPGmtxg9mwOqx8FSa+ou0oa8VLI87WVpMWh+hOKsWpbO6YVwrHw/IBl7DOHwdYVe xM5ICyc7V9ewynH7CtsaO3LEiNeSEO7eiT11ZJZ7SdsuTTGaKQY5TjAcmyAC6rPLyptR Kozg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680255708; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hnaNB1XEFARvtvmMjnyCWM6urGrAoqOyko+dcOeieP4=; b=yWPKlpg2V9RmsrD1fnhE5YRffgK3XJqAP8A0VpjWg9sUQC7qLsl3s988GbT6fKu4fW HbSwhU3YLAJTGf31wpXMgkGmnWQlG2GuHhV2Nm3BSmdTCeQKGiKAKvdh6pDuK/MMLLJ7 DN77iMXRoZaK+noIn9aaYvwH2s4WTbbn+HCcrSVY4gdGq7+te+uucxHpNlC1zql3fsD5 SlcIO0ZwngTtdEfo/ka+PmsRjCheesXaFQZF/b73QRxLgSAf/kMDTgIS7wjcGfdfrvGG obLovw7TSF6dQZyejxw1YGslo2XLnvO2TRXQf0zHaOAcK2OfVDjsrRwIg2pEfexBG6f4 2V1A== X-Gm-Message-State: AAQBX9d/naw9jdXplaiMs6f2sStq7KD4/EjcJ3wGUETjVCf4i4LR0eaU /aGQOATf0+5QELb2KlNH8BixcPVRgCamiDNuQKKUpw== X-Received: by 2002:a05:6902:168d:b0:b26:47f3:6cb with SMTP id bx13-20020a056902168d00b00b2647f306cbmr14114282ybb.4.1680255708125; Fri, 31 Mar 2023 02:41:48 -0700 (PDT) MIME-Version: 1.0 References: <20230327130010.8342-1-okan.sahin@analog.com> <20230327130010.8342-3-okan.sahin@analog.com> In-Reply-To: <20230327130010.8342-3-okan.sahin@analog.com> From: Linus Walleij Date: Fri, 31 Mar 2023 11:41:36 +0200 Message-ID: Subject: Re: [PATCH v1 2/2] gpio: ds4520: Add ADI DS4520 Regulator Support To: Okan Sahin Cc: Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Hi Okan, thanks for your patch! First: why is the word "Regulator" in the subject? I don't quite get it. On Mon, Mar 27, 2023 at 3:01=E2=80=AFPM Okan Sahin = wrote: > > Gpio I/O expander. > > Signed-off-by: Okan Sahin This commit log is too terse. Write a bit about what this hardware is. > +config GPIO_DS4520 > + tristate "DS4520 I2C GPIO expander" > + select REGMAP_I2C > + help > + GPIO driver for Maxim MAX7300 I2C-based GPIO expander. Is it MAX7300, I don't get this, it seems super-confused. > + Say yes here to enable the GPIO driver for the ADI DS4520 chip. > + > + To compile this driver as a module, choose M here: the module w= ill > + be called gpio-ds4520. (...) The driver is pretty straight-forward, but I think this can use the generic GPIO_REGMAP helpers in drivers/gpio/gpio-regmap.c check other drivers selecting this helper library for inspiration. Yours, Linus Walleij