Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20830724rwd; Thu, 29 Jun 2023 07:32:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlHo4wboXWE51WW3yIEzFqeJG46HAIiKjBVAfH5QlgHdjl/NhLcABegtWX0pEdfc/9yof1EK X-Received: by 2002:a62:1b55:0:b0:666:e1f4:5153 with SMTP id b82-20020a621b55000000b00666e1f45153mr208921pfb.0.1688049155559; Thu, 29 Jun 2023 07:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688049155; cv=none; d=google.com; s=arc-20160816; b=JFcRD1zn+6UHwvzscsnjQdrX0qn8eNOIQ3+3lLfQ9Vt4mY9hVuHB9EBIQD7djVoEs+ YBnL1GcpnVQ00A+1UQy9Ei3HvIBWFrYYzmIpzOlNrhQB6rRhQrn9P0j/gMEMIamsCHXr 19onSSoYXODIORt74Bbl4k8DSqfUyAnNLhMlajuvzVF8/RUm6KLWQRJ7/mV09GP2w+ar ueRo6mcudvqhv9YAw8oVWOVc6UWnoIags9BV2MsN1s1L/aR6yBr/NNTpX69z9piaDIIj pPGqN4VPdmTuLOF6wcLeNxMWFRnG91/A/qCESd7IEiUBujsD02YOAUPA5jRW8C8dBCzQ bmwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=IY4ojPwPzTv1SXAyhsDdasHEJjEh4nkC7tW3BLziwX4=; fh=pdMatVHh8HvJakNxhw6XZbSS9l0LREwO3AlizcRe1eE=; b=gq6ihxam4hBX3fJVnvXhnLq4hZ5dPGzOjbVW4TllqqAvdhk+/+XSmH27Nlv5Z6CIZ1 YytWDuQNHu0QybkDTleNoz+Za1V8WAeYmvDx7vu8fUoMUIHgsMH9jpA282QcezgYn5// c69AE6RdoJo0Gni6iVqn9nR610+6wc/G5USL4FOQXG7sWvwma8NiUve/9OdFAJl4jjnb 4sppULAAlXicmaYTODMElul+q9imV4Byd+s6rTksG2hmFT/BKoIvR3mPrIZ21pR9h4GP d05TXNYRSkJofdLv3k7es/8JAMJ8+9kBlviwr3qoGU4mN6TeaNYhyEgrLBy0rKan0X2B XOyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=O9a6JblV; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e3-20020aa79803000000b00682399fa4f9si422654pfl.300.2023.06.29.07.32.23; Thu, 29 Jun 2023 07:32:35 -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=@intel.com header.s=Intel header.b=O9a6JblV; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232094AbjF2OIR (ORCPT + 99 others); Thu, 29 Jun 2023 10:08:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231443AbjF2OIP (ORCPT ); Thu, 29 Jun 2023 10:08:15 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 498A626B6; Thu, 29 Jun 2023 07:08:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688047694; x=1719583694; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xmDZpF6sc1XpPDTUdv/IYr02rtOyyvGSFPAQ64hfvSc=; b=O9a6JblVm8P/sVHwidDQ0hN+lXyUZDUdaPvOvweRUcP1nf4X4bMWsoh3 yfGaUh33Z4hgxvzDj6RQJgURzTwP7aYERKiKbesPhgNLT/8+CbCM03OmY weyUDKgusHAQzyLZWJPkFEwzYKbb3U/+dmi/EdxqDXhZpk36XQ4xAjqn3 nK3wZufEiJ98gC/P4Qsn/y6gBNaFFYbcR8VJIc5z0uMAW91JRB52JLyfT RtdATzwgMW1KOJPTy9ROCGoS3SYhV80g0vWPwLqidiUdvyijT3k3cO7L5 pASNYetcqLzrcAoZ46Fymobo2696uqjq2hWlFcihlxQc+xxsR7dcCPcEG g==; X-IronPort-AV: E=McAfee;i="6600,9927,10756"; a="428149996" X-IronPort-AV: E=Sophos;i="6.01,168,1684825200"; d="scan'208";a="428149996" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2023 06:55:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10756"; a="1047776124" X-IronPort-AV: E=Sophos;i="6.01,168,1684825200"; d="scan'208";a="1047776124" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga005.fm.intel.com with ESMTP; 29 Jun 2023 06:55:47 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qEs7e-000sBw-1G; Thu, 29 Jun 2023 16:55:46 +0300 Date: Thu, 29 Jun 2023 16:55:46 +0300 From: Andy Shevchenko To: Astrid Rost Cc: Dan Murphy , Andrew Davis , Krzysztof Kozlowski , Pavel Machek , Lee Jones , kernel@axis.com, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/2] led: leds-lp50xx: Add max-brightness as in leds-pwm Message-ID: References: <20230629134722.3908637-1-astrid.rost@axis.com> <20230629134722.3908637-2-astrid.rost@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230629134722.3908637-2-astrid.rost@axis.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 Thu, Jun 29, 2023 at 03:47:21PM +0200, Astrid Rost wrote: > Add max-brightness in order to reduce the current on the connected LEDs. > 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. This will be 4th driver in the LED subsystem that will use this (optional) property. Perhaps it's time to actually move it to the LED generic bindings and call this from led_parse_fwnode_props()? -- With Best Regards, Andy Shevchenko