Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1142197rwp; Thu, 13 Jul 2023 06:49:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlH3Orfkz3DMe6vYCz6uyvIGihwQR0exG1FMCsSYlO5tb89OoZiyMGvoARmbYWK4R9m3VlXV X-Received: by 2002:a17:902:b689:b0:1b8:c6aa:85c with SMTP id c9-20020a170902b68900b001b8c6aa085cmr1005116pls.45.1689256143424; Thu, 13 Jul 2023 06:49:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689256143; cv=none; d=google.com; s=arc-20160816; b=Il2E70zV/joNIHWjdnYNOqFmtMKxZ84cQUZ46y517c1oXxjSmLAqUusbBgu/fnRVer Y1BkqX388mZWE8RxpeLXYK74cNGetVUQglXmSKQlz0V59NXT/eLVh1kdBLinddCdJ8yV A4MG/vfjNhgK+Hp8gjX3XS05exmojjBfdI82TtiVSw/y0mD4MTFynJvqJER3xTTysWt/ o6VVkoOr1LvoyYw35qVykCrlw8e7l7QQH6g/pzJed37rsq7REKhBhc2fe/K3HHGJkHi6 LFW6Cr01R2A47ZQ40n65cjV4SzNu6fp61bitvFV1/ipTuWvfqM/4pZaDM7MZLpdjKN4s h/Eg== 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=6nItMwoLSL0A7xms+ZNnxd1YB0817eUmyI/WYmEt6rI=; fh=vXNcaxSa09zkLL1PmdZHtPnxaEfu46puNCaIzVoEIrE=; b=XF+VyY2Dmob6tDKO64s6ZLTl4wVN137QmxNIJ2yiRnoMZm50F+qKrHbEb+isrU92fv Ho+/pkvmieCFGtqNHVk8EHGtJcnISBd4V8RPBKYpYMkKfiUb8yC3zbsqk2cAnE45cUcQ P2glxWdjSxDsD7i52T5CYksE7vG0CAbeEnRlM8DV0oshAwblgBQ2lD12cvI6QyqKql91 2BlZKLU9R5FWPW2Oy6ZWw53RnTrELNmQjsr2sslzVmc1qL43fKf9k5kcm/gyLlPRx8oC Ut8VwQjeClNtAeQuYZTi0EvwsXc46Geg0Bo6BFSDYkHOwR0JZFbh+9GaaG5p0eLFf5pS 7pKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TucL+YNw; 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 u3-20020a170902e5c300b001aaf639c4easi5321753plf.109.2023.07.13.06.48.48; Thu, 13 Jul 2023 06:49:03 -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=TucL+YNw; 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 S234826AbjGMNdd (ORCPT + 99 others); Thu, 13 Jul 2023 09:33:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234670AbjGMNdc (ORCPT ); Thu, 13 Jul 2023 09:33:32 -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 4095219B9; Thu, 13 Jul 2023 06:33:30 -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 8774B60A70; Thu, 13 Jul 2023 13:33:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CD35C433C8; Thu, 13 Jul 2023 13:33:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689255210; bh=O9fZa5s/FLnr8HFbNTrKvC+Zl15VrzgxPjFRoLUMyds=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TucL+YNwNK3K/Ywfi9RVKEt/afN2+7q2YQQjwNuBPYx7KNxZxLSMdxdkpFGJBsvPc hgOTBCYR1j2V4jVuLSvcu73SLHDMwPuatBj41wRlrFpLOrHJct2V6y6KL/GGXp6GjO fq0NvhpVU7N/ysmTcaXhVhlzz5sWi+q+JJgsBFLbS57OxdzcmKSzrGZ+8IHRWpYXEH MKQm8mmVONs9bI6VAzi/NzAY6jkm446M/SekTq0BDq8icL9ptmxvWJwlj8tzGI35CC UggFnL4KorqjGrw24LKmqr4YNDc0Qn6fNCxT8yhGboT4/MEo82EPMGQKreASxZAgMa Ig4ZNEiHK8LrQ== Date: Thu, 13 Jul 2023 14:33:24 +0100 From: Lee Jones To: Astrid Rost Cc: Andy Shevchenko , Krzysztof Kozlowski , Rob Herring , Jacek Anaszewski , Pavel Machek , kernel@axis.com, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] led: led-class: Read max-brightness from devicetree Message-ID: <20230713133324.GT10768@google.com> References: <20230703130313.548519-1-astrid.rost@axis.com> <20230703130313.548519-3-astrid.rost@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230703130313.548519-3-astrid.rost@axis.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Mon, 03 Jul 2023, Astrid Rost wrote: > Normally, the maximum brightness is determined by the hardware, and this > property is not required. This property is used to set a software limit. > It could happen that an LED is made so bright that it gets damaged or > causes damage due to restrictions in a specific system, such as mounting > conditions. > Note that this flag is mainly used for PWM-LEDs, where it is not possible > to map brightness to current. Drivers for other controllers should use > led-max-microamp. > > Reviewed-by: Andy Shevchenko > Signed-off-by: Astrid Rost > --- > drivers/leds/led-class.c | 4 ++++ > 1 file changed, 4 insertions(+) Applied, thanks -- Lee Jones [李琼斯]