Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp379646rdb; Thu, 24 Aug 2023 08:40:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGbLnF9+X8pwraJwvT6qv3a9Z4J9bpMUucWNh6ApXSE5hug7ovQbfiVQapOTPjotCM4mj0r X-Received: by 2002:a17:902:d488:b0:1bd:f71d:52ab with SMTP id c8-20020a170902d48800b001bdf71d52abmr15338230plg.56.1692891612304; Thu, 24 Aug 2023 08:40:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692891612; cv=none; d=google.com; s=arc-20160816; b=V2t9Sm0cdQms/7mEbsFubKKn0q8+OyC6rewNyyVWrdI/EidpCH2rFlOFDOHmU14tSd 1PwbBLby7NDTzLoRbqjzzw5+2fgzF2fo9TYOv0ZSpgyREkvM+tVflSjXCzYT6WcU2uP5 i+Oqg6IStIPvVMlp1nDqnA/DIALaDshdx+yyt0HzCpIa9+iA6DbM5qMcY1pgRSzKEeUS TMQa2uoVWwxdx6PZiss2+WLl/jkNQ9hASpqzgbGJU/Mux7PlXeCYBgNKXtrfe3z+DO66 /HlsxrOlu0Ee0i9r4JYeERj1wwdqoVAlcbm8wVNOJGKDzZd/fniojnj7RKfKZaio77Wm iaGA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NmHLECGX6DegBEfi2OI0IT6HvttPKgKud97Yd6iuAXE=; fh=8zHQSe31YUnb902F1VIn1eeWB/Oi0QmmyCaCj07HOhQ=; b=tYPLWqT7z+OODLtQLo1y/MYwx+o0Pg1ROpGt1zKZ/CNylPVAQDwK+bVjKJyBgvCitE DuuSQtp9JBuLw8HdzO70MMT1hOl0jbsyDtkyiQn5qkt54swizRpKIdJO+W3kzuQxhn74 0N8KlFT3qyoSZz4QRvnvquNwN5vYaQ2OXupLRDItwy0GIC3SUEpg9l9zH9zP5DIdHSzu wcnAZlghwnk5eyKyIPgaBFTQjXYx3O8Vn4uTLjzVEzAxGluriipVVTXcM7WomQUj2Okh J3C8NNcZsGfSkLp+qrTlXTFRAbw/HpP8pwaxBQSanRqJpY8EDwvc55f7Y9UIssA+NzTn hWCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CVkLPFB5; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q11-20020a170902f34b00b001bf2931ccd1si97438ple.579.2023.08.24.08.39.56; Thu, 24 Aug 2023 08:40:12 -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=@kernel.org header.s=k20201202 header.b=CVkLPFB5; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236174AbjHXL7l (ORCPT + 99 others); Thu, 24 Aug 2023 07:59:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241317AbjHXL7W (ORCPT ); Thu, 24 Aug 2023 07:59:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0205198B; Thu, 24 Aug 2023 04:59:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 35C5A66AF5; Thu, 24 Aug 2023 11:59:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F583C433C7; Thu, 24 Aug 2023 11:59:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692878358; bh=+PV2XW4U5Rbut0MTv49hBcdhZ5aEQZBFo5S55w+PYXI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CVkLPFB5fOJAnrKZIzoEH0XkTesJmHCk4Mo/tShe8uO+WICNN2d1MV7rLX7Dfjlmn mnMNhctRW4TG1KV+jrBSfoAWw9vjfXJWuRFMH8y0cbQ+AsaKhvBO3i2H7bJYoXPNNb vPJCeoWnzAS0M480ndqtYxoyH9F2Onr/KhUpI1TLNcyIU88DInnqq6roNxELfMiAyE TB/tALc9jYPxFDB98qbgCUbqmeJCK5VCk1L7IKAZXJSIvIwBzoTkkY3Et2pgOdVyRY bjiOLb05tQt5nv+9+FliYulAnpJOVR9bwab1CSAyYVFzMBh03ogGgG6suUVknAnl7P AoVMS2/0qK7+g== Date: Thu, 24 Aug 2023 12:59:14 +0100 From: Lee Jones To: Naresh Solanki Cc: Pavel Machek , Patrick Rudolph , linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [PATCH v3] leds: max5970: Add support for max5970 Message-ID: <20230824115914.GQ1380343@google.com> References: <20230824111337.2589755-1-Naresh.Solanki@9elements.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230824111337.2589755-1-Naresh.Solanki@9elements.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 On Thu, 24 Aug 2023, Naresh Solanki wrote: > From: Patrick Rudolph > > The MAX5970 is hot swap controller and has 4 indication LED. > > Signed-off-by: Patrick Rudolph > Signed-off-by: Naresh Solanki > --- > Changes in V3: > - Drop array for ddata variable. > Changes in V2: > - Add of_node_put before return. > - Code cleanup > - Refactor code & remove max5970_setup_led function. This is 3 revisions in the past 24hrs. Please refrain from machine-gunning revisions out like this. Send one and give reviewers a good few days to review. > --- > drivers/leds/Kconfig | 11 ++++ > drivers/leds/Makefile | 1 + > drivers/leds/leds-max5970.c | 110 ++++++++++++++++++++++++++++++++++++ > 3 files changed, 122 insertions(+) > create mode 100644 drivers/leds/leds-max5970.c -- Lee Jones [李琼斯]