Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp551797rdb; Fri, 6 Oct 2023 11:01:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHQohstGchT5iyZNTMlPcF/eCj5jGPiIYOscN+PJPmhq+Iw4hpucOKCIFpOA1IZiXrlI1G X-Received: by 2002:a17:90a:d496:b0:274:6ab9:9d38 with SMTP id s22-20020a17090ad49600b002746ab99d38mr8371328pju.36.1696615264607; Fri, 06 Oct 2023 11:01:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696615264; cv=none; d=google.com; s=arc-20160816; b=T2uT1xXLDS5E3fGI5ySPzvbCLNfUYCeyYuf8m7fQ1dMFpfJp32OOtE//ql7RFwt1Me rBR1B4n8lBW1tJoDPKGidQhWOoeQdtCxJwzFruLzYJy2hnm3Nz/cdNPeTDES6axeRVNC Yf2FJeP7wGGKb4FB9MTGov1Gl2d8HbDnMQA7aNeJtQZKuUOmvizNfcuwUzub1oArHOc4 wcmSFT9kZokzHWXWV2b1FP5yBvo78Go9p0Rxjidgm9HpXU7/lRYBxDwrXYBbonphPII7 iUd2N4G0bcc6GjB9ejXSCBH6l1EetI6lNWJ4GSbeVKOBxRNzm0/JzxnF3rsiGSr0nnBD xecA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=RDr+imkOTNbKOnDVnnk/Zt9fwW96PBDFIIGHTQX0KZQ=; fh=HJOEJ+1NVvtVnuIMWeT1OywsaidefjPxO+0zJVj3/z8=; b=RRpmpZ1zNYhQtljKbFCrNWby79oT8pSLmQkjVuVtCGWBIBIMy/cZqgtPhxB2xEL8NY S59X4KuJ1ukBmELu8YoqokU6PQK6GeYv3ioVeVyZ3YuwS8hOrapG5Z5Q9titEPhfOjuu rvH7BXXtNBbLxImRH1KnSO+MbRhCCahOYCB1I1mS2vpOvTky10A95WP+7ZncN9eYt7O+ 0LFyMe5oyFiEURXURlrpYlG6yGAs1owL6mxkD8hwFBi2aQ01YshzUsAinPAJn/k2o4nv xNA10cXzMimycf6NDdkfE1JSEHwT+p2R7kAl3YJrJVqvu+Lr5A0fSFB7L9h8NwdbZzX8 mHbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="WiBC/fm9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id kk2-20020a17090b4a0200b00277617e4539si6669434pjb.97.2023.10.06.11.00.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:01:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="WiBC/fm9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 946BF801C94A; Fri, 6 Oct 2023 11:00:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233094AbjJFSAZ (ORCPT + 99 others); Fri, 6 Oct 2023 14:00:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233005AbjJFSAZ (ORCPT ); Fri, 6 Oct 2023 14:00:25 -0400 Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7491B6; Fri, 6 Oct 2023 11:00:22 -0700 (PDT) Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-1dd1714b9b6so1550128fac.0; Fri, 06 Oct 2023 11:00:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696615222; x=1697220022; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=RDr+imkOTNbKOnDVnnk/Zt9fwW96PBDFIIGHTQX0KZQ=; b=WiBC/fm9bMP+uSxNUwLYiXGKzB/OT6DFgQp5Fd4A6/Gb9hkgoa8a3DyyFFRgxQXZTY p0kVQ2u2GYwqKu5b+d9YkoXRpV8VxpBDifmjW8MRR1Y4a8ZxoMbwGcwqEblm+hgwTfGG zs6/Z85CGHhF8kpIgyHbIxnuthmelYdiJvqflTF+Ln5OunhC2jOWyfyhR7iTrbABa9UL HnQPCZQPhWyqYcpsYrg24QGl32oBYDv2NJiVFDahNt9177YAYlGv6lSnw0toKV/pnUpp P1+hqv8iVDVOOW0pX80ivZVE7z8ZwF0MQyipcpkAcljWPEiNSiJ7yLepV3XBiahmAoZM 64qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696615222; x=1697220022; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RDr+imkOTNbKOnDVnnk/Zt9fwW96PBDFIIGHTQX0KZQ=; b=R2tPwmC1yagzr0OsdJM76gg5GGR/6tT4MLXBX1ys3xKu3SGUYeaLhqxK2J+F/FrH/w dqd0RGaZA18D8zloQKp3QX2k1QPMbxTf9QU1k+RbAvbdFVaxrYw1o8cIZVr9C+fNAjrd eHvRER7LHEDfsqWHSyHQkkJmbfdaOBkrWlbyftoGlExFeelKzvWLRzccRbF15iFKpnqV hd5dNYaHDZr+YzEy8SyTySl/v4LKmwmT3kFNtx0MIAFQQyOtEPUp4tw36UKPd2G33FX3 aqNJVDkUjecvL0UTIJ0g13NtjV+z6IbDfCG9iQXcC9NV4aYOtuDEs6zQrwzSdcOlCd0D I3GQ== X-Gm-Message-State: AOJu0YzQbZaa0kNnGOBvnSAncOf53ySOm2Kjff52GirIMtd6VVpuiCB1 rnu/kshNBhVr7bfaoFvawaISXpE1aoDDkuy/kVA= X-Received: by 2002:a05:6870:527:b0:1c5:56f:ac08 with SMTP id j39-20020a056870052700b001c5056fac08mr10326580oao.12.1696615222155; Fri, 06 Oct 2023 11:00:22 -0700 (PDT) MIME-Version: 1.0 References: <20231006160437.15627-1-ddrokosov@salutedevices.com> <20231006160437.15627-6-ddrokosov@salutedevices.com> In-Reply-To: <20231006160437.15627-6-ddrokosov@salutedevices.com> From: Andy Shevchenko Date: Fri, 6 Oct 2023 20:59:46 +0300 Message-ID: Subject: Re: [PATCH v1 05/11] leds: aw200xx: calculate dts property display_rows in driver To: Dmitry Rokosov Cc: lee@kernel.org, pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, kernel@sberdevices.ru, rockosov@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, George Stark Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 06 Oct 2023 11:00:34 -0700 (PDT) X-Spam-Level: ** On Fri, Oct 6, 2023 at 7:05=E2=80=AFPM Dmitry Rokosov wrote: > > From: George Stark > > Get rid of device tree property "awinic,display-rows" and calculate it > in driver using led definition nodes. display-row actually means number > of current switches and depends on how leds are connected to the device. So, how do we know that there will be no regressions on the systems where this property is used in production? ... > + if (max_source < source) > + max_source =3D source; max() (will need minmax.h)? --=20 With Best Regards, Andy Shevchenko