Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4AE0C433F5 for ; Tue, 16 Nov 2021 12:02:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 99C6061040 for ; Tue, 16 Nov 2021 12:02:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235999AbhKPMFd (ORCPT ); Tue, 16 Nov 2021 07:05:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235745AbhKPMEQ (ORCPT ); Tue, 16 Nov 2021 07:04:16 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B716DC079794 for ; Tue, 16 Nov 2021 03:59:32 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id i5so37082067wrb.2 for ; Tue, 16 Nov 2021 03:59:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/m3XZ+G755BzYmyP/Uv5a29EFHr5uHufx87wdpq4QvU=; b=j35shWlUzCoLEt6NJm3Km7KIwcCLoCsPAl2FbcCE5rg5j9BuEdgXsByDb8WakSGCIk N13VB0q93qRbwXKlLPh1spLzexYvGgXil4xEXUYnypQS2RkzpE7f8A0Yaj/aR6IvA+uR yKZUBDdlwloQRTTAV1+osJYWQ6cVQY5uWZ+dv/Z7GqG2IdsIJM4H8jXRvrUgpdglz5o7 1mAS+l5e7bEqbW6iOML5lIl1MdRGMTTeTWBdXMwrP/jyK7uUkTJzbIXXihnf9pQMGlDq aXSXP/tvtk4LWJwCaQC75/2hOLAKXtq6OvaRJCDarN1q4WM1uA3kaPCdmKEhh44d7Tci 7v8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/m3XZ+G755BzYmyP/Uv5a29EFHr5uHufx87wdpq4QvU=; b=YFEk+m2QH/o8YWrJsX+ccgZXqhycW3kIFsZUaQRSxbA/C2hnfemdZrY2gXp87CrRvF pHS7RqfrRN3sSiS9QoCm+80iAqJVYjBwR+a2OUaXEDd1XBi2QKl+56dphE384vxieH9e EQ0thcDSiVNMJKkbjlnlzZ91lPeaVJKcQkK9vJZc3DQaniB5h00S+qH5DwJSvaxRCplh zsyVHiInZFg10Rwty9RDUUboQI+NHXmGPe0jZwdS8FRPxQHUu14KxeV3KGuFlx/qyMI5 iSdx+wCCBcc2edOygV4Gvu4wQTDx/xd3dKYHbBRqhprjAh/Mnfo6RUi0apAeJz9D3aQp 4pag== X-Gm-Message-State: AOAM531g/LTfvrGVjn8D5uVwcEkMIIdRnqloQDB7ShX9QRwtfvemeQWD raTPiLgvdmBgMN0+6ugoC3j3dg== X-Google-Smtp-Source: ABdhPJxICF1XvB5wZgxx9tEtO6Rvw+3x5bCBvlS1icpkxMJcnydKuWqlRc2CVsku3qMUBfUnFy1XYg== X-Received: by 2002:a05:6000:2c7:: with SMTP id o7mr8731977wry.62.1637063971322; Tue, 16 Nov 2021 03:59:31 -0800 (PST) Received: from maple.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id h15sm2253427wml.9.2021.11.16.03.59.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 03:59:30 -0800 (PST) Date: Tue, 16 Nov 2021 11:59:28 +0000 From: Daniel Thompson To: Marijn Suijten Cc: phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , Lee Jones , Jingoo Han , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Pavel Dubrova , Kiran Gunda , Bryan Wu , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Subject: Re: [PATCH v3 5/9] backlight: qcom-wled: Override default length with qcom,enabled-strings Message-ID: <20211116115928.yhabka5uaha3cyec@maple.lan> References: <20211115203459.1634079-1-marijn.suijten@somainline.org> <20211115203459.1634079-6-marijn.suijten@somainline.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211115203459.1634079-6-marijn.suijten@somainline.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 15, 2021 at 09:34:55PM +0100, Marijn Suijten wrote: > The length of qcom,enabled-strings as property array is enough to > determine the number of strings to be enabled, without needing to set > qcom,num-strings to override the default number of strings when less > than the default (which is also the maximum) is provided in DT. > > This also introduces an extra warning when qcom,num-strings is set, > denoting that it is not necessary to set both anymore. It is usually > more concise to set just qcom,num-length when a zero-based, contiguous > range of strings is needed (the majority of the cases), or to only set > qcom,enabled-strings when a specific set of indices is desired. > > Fixes: 775d2ffb4af6 ("backlight: qcom-wled: Restructure the driver for WLED3") > Signed-off-by: Marijn Suijten > Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Daniel Thompson Daniel.