Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2292672imw; Sun, 17 Jul 2022 05:53:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vaoCDk23RuvMgJnfMlL2ls9RtFOGvc8rpHS/68LUEEig63WKjWmRtPn5lus5oxD8gr7JBQ X-Received: by 2002:a05:6402:350a:b0:43a:a486:102e with SMTP id b10-20020a056402350a00b0043aa486102emr31122964edd.372.1658062396568; Sun, 17 Jul 2022 05:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658062396; cv=none; d=google.com; s=arc-20160816; b=CCPlk9oIYyb3Mk5mVoF8ozuRk38wytpUQRvrvU49TrMPzdSi1K6PfWtq7rREkYubEl mgbukHRMbv1lfG8zui8bDgSeX6z90P40WVsXTYzVAW7ko4OkM7kwE00VbDx4ztSxqvOi K/FeV+6+7zlMqnJPMusiO2j1ktbNbV6qlETUB+D3mroJwuWVieXVkA0D5GjIFM/ygU8v vEgfm0nYSzLoZVQ8+bNriAC1aa1R++WXegwPM72mrYMrZtZrHxivjBCN++crmynbMGQ5 63VCUyR4ofKTvxLkb7SS2CtWCuZFjM/Kyjd1Xkvm8u3N2hzvuR7/KUVfqYNtB5s+AiUq GW6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=e6nAc1aFFhkz47oNgJfNOrXqA9oVIZphMzGakCfBhsM=; b=FYgmX/mOFXimY9uQxbofLbS4B63GMPYGNsOIxRmXCpwr+uDNeWQ6TPQFGtHJhJGLqS ZfpU+fr7j/M5/Eoee8thvLsQv36iRqdVH7/pM8jfC3QjTmK4iAJJh5j6HJHeBAOQt/UF 2zL8ibAvw6kaRDtTr1GkIt2Nk1YNjaRJHbpHTAMzwWBcu7eysVAe8FTYY4EhqOrAHd3b lh+xqHPuYx8lXHVreExoy8mGuRvRBgs8NdQrUK92boiZRVVYtDwQu9AY2bOYLx9VF8p0 DgGpBmIoaPqaxF3dhAIq4DtVHZcwH8EYmkMTxxqE+a4pUGGztRDxUpRbmZKqeQe4bCjB p4BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=jp3Da2F2; 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=ucw.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc22-20020a1709078a1600b0072697f3b60csi6167731ejc.505.2022.07.17.05.52.52; Sun, 17 Jul 2022 05:53:16 -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=@ucw.cz header.s=gen1 header.b=jp3Da2F2; 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=ucw.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232884AbiGQMnX (ORCPT + 99 others); Sun, 17 Jul 2022 08:43:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232868AbiGQMnW (ORCPT ); Sun, 17 Jul 2022 08:43:22 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D82715A37 for ; Sun, 17 Jul 2022 05:43:21 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id CA6D61C000A; Sun, 17 Jul 2022 14:43:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1658061799; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=e6nAc1aFFhkz47oNgJfNOrXqA9oVIZphMzGakCfBhsM=; b=jp3Da2F2wyC+zC1k8X8I98wL7KyF38OcYsT/drhbToXG4LFyUJejx3qUl2dkxiAn+sYxUX eXamu/mNjw9civ2QqRAARP2v9koimg45HLbg2mAAj6yyxhdS6CrhYK9QWprtzoxrXrpbwQ lAIfbPUnanl/N245VJ3qFLYCFYQsSSs= Date: Sun, 17 Jul 2022 14:43:19 +0200 From: Pavel Machek To: Naresh Solanki Cc: linux-kernel@vger.kernel.org, Patrick Rudolph Subject: Re: [PATCH 5/5] leds: max597x: Add support for max597x Message-ID: <20220717124319.GK14285@duo.ucw.cz> References: <20220705122244.472894-2-Naresh.Solanki@9elements.com> <20220705122244.472894-6-Naresh.Solanki@9elements.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iSeZnk6FyAS3EJ1y" Content-Disposition: inline In-Reply-To: <20220705122244.472894-6-Naresh.Solanki@9elements.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 --iSeZnk6FyAS3EJ1y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig > index a49979f41eee..682748097276 100644 > --- a/drivers/leds/Kconfig > +++ b/drivers/leds/Kconfig > @@ -598,6 +598,16 @@ config LEDS_ADP5520 > To compile this driver as a module, choose M here: the module will > be called leds-adp5520. > =20 > +config LEDS_MAX597X > + tristate "Maxim 597x leds" > + depends on I2C > + depends on OF > + depends on LEDS_CLASS > + select MFD_MAX597X > + help > + This driver controls a Maxim 5970/5978 indication led via I2C bus. > + The MAX5970/5978 is a smart switch with 4 indication leds led->LED. Add "to compile this driver as a module, choose M here: the module will be called ..". Add "." at end of sentence. > +++ b/drivers/leds/leds-max597x.c > @@ -0,0 +1,130 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Device driver for regulators in MAX5970 and MAX5978 IC ? > +static int max597x_led_set_brightness(struct led_classdev *cdev, > + enum led_brightness brightness) > +{ > + struct max597x_led *led =3D cdev->driver_data; > + int ret; > + > + if (!led || !led->regmap) > + return -1; -ERRNO. > +static int max597x_led_probe(struct platform_device *pdev) > +{ > + > + > + struct max597x_data *max597x =3D dev_get_drvdata(pdev->dev.parent); > + struct device_node *np =3D dev_of_node(pdev->dev.parent); Delete empty lines. > + struct device_node *led_node; > + struct device_node *child; > + int ret =3D 0; > + > + One empty line would be enough. > +module_platform_driver(max597x_led_driver); > + > + > +MODULE_AUTHOR("Patrick Rudolph "); One empty line would be enough. Best regards, Pavel --=20 People of Russia, stop Putin before his war on Ukraine escalates. --iSeZnk6FyAS3EJ1y Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYtQD5wAKCRAw5/Bqldv6 8iukAKC6i4x6xTqhiPFDDmaurBP8cJPungCfYHpHAGZD40duQYsZB3oSNH8JPlg= =S/0y -----END PGP SIGNATURE----- --iSeZnk6FyAS3EJ1y--