Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7220641ybp; Wed, 16 Oct 2019 05:42:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxDdkCpAzDq5m5aYzClS2jh+hJtz6a1zS/77WCN6lUbeWMLhjct9PNOcf5XGfGQg/hEeT5 X-Received: by 2002:a17:906:e2c4:: with SMTP id gr4mr39568986ejb.89.1571229731188; Wed, 16 Oct 2019 05:42:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571229731; cv=none; d=google.com; s=arc-20160816; b=mcjlSBi9j8zIMMaEIVeb696mpshZxrBhUOXmuVKeVkaqRopLzC/89RJn5Q1l+tvQhr C6t00HlrkkHBEwdieoUdhiwcFLbKYBcyvxbMJdQCAiqlkT7h9yK1WPeIc+CYvy+tQtfE zqqPvEvgBHMlyZ9tZly6dFu9VwtWFbx77lcqIHU99Q1A9FK+muk3cLjgzOU5KFZVEoBy OCAUIrJe3XXHwZmS+BuH2pBP6+sl/+xYO/BikQ4xNnqKu+wlpa+xN2PEmxWXj6I0bLjp tq9s7uy71SFk5pQk7U9AUkP0FGpKokUB9vSmev4VffQj7KitKUhuY+T0gaO8IUYSDAWN sSIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=l+eDQw7b9v7Rw46oLorXW5Yed3sU+eig9M618FB+PL4=; b=vPxEZV7pFng2+7wTp5Kqg5nkMtGH6SH5hB42veEGzkUScQxZ5oHHY8DqbuI34MRCYv xfuYGT4s0LFPCh2FgHFzzYbsKWDzjkhRe3WeaCADbyP8C6vhtJKBl0XJOifFgw4m07eG 3Pf48qCWkTicfHOIWfUOpJrzbb450gIYorUmXVpugzND+kJ0QlTaFCYhgkhD7GOZBtQj ORyc36KSmq+HMxVq/rAz10qxAUbtRxm0FwVyrOUcF/q0QAGYzXlalrBLsWUCz5qlDaw7 p0FBYvZEz7ngwQypqZQP529kTl76t60yuAfN9aHdF+66npYoBklDsWYns86B30y4oV+t 4wJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Zprs0y8k; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m24si14385784ejx.286.2019.10.16.05.41.48; Wed, 16 Oct 2019 05:42:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Zprs0y8k; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389843AbfJPHwX (ORCPT + 99 others); Wed, 16 Oct 2019 03:52:23 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:53251 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726985AbfJPHwX (ORCPT ); Wed, 16 Oct 2019 03:52:23 -0400 Received: by mail-wm1-f66.google.com with SMTP id i16so1727837wmd.3 for ; Wed, 16 Oct 2019 00:52:21 -0700 (PDT) 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:content-transfer-encoding:in-reply-to :user-agent; bh=l+eDQw7b9v7Rw46oLorXW5Yed3sU+eig9M618FB+PL4=; b=Zprs0y8kBPQ3qjTVj/r66c07zEzYHAzGc1PwpC8CEkHTDvqlLmt7M9IKkPG10MDX01 D861ajFGmQM6HGs3TOMfSMF0Pe83Ip5jRZ55/ycWUp9KZ9IK11efTLb8xGOQhKdgb0wF xJjMI/h6Nl++vvudQQmifg+LMHoaMDAbSZKphm54kioxj9bGuPlc+qtMQ+nkiv/iSpel EhhAppoZJC+rVWeLFhgJb7pSEBRI7Xr5x3Xjkb+zL6MH+BhLHPhaESB7c8B95pqXhR1N q6WBHssNi/PNZA9Jkx8v2UHWiXPdNn7uPZ2K1uQsUWs+xYohzd7Ue5lt8SD9gFiVq90Y RpBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=l+eDQw7b9v7Rw46oLorXW5Yed3sU+eig9M618FB+PL4=; b=PJNHCWgV5NUoWE09Ezm6/fSyAPUefIwk8J7ushiYi2zuIDo5kzC9AEuZhMu9pZLLk+ UVMrIBOflGgzcp2DP3EdY4rKMX1giw6FAkUNHQQfeplmskBJqW7YP4kFwsFaX4R6eeY4 fE+mBgzlbSw2JAOwOLicyGZmiLRv29V9oXTvXZjK4AQwhgh5zYePXb9+ZRWEwkjwNS2c nQ16n1X0UTvFYqG+twxnpe+Rxu3Q0kRF8eN1UufRWH5ZLetue3atgNQCdk+MQr3DIvv4 Wrfq9oYYZRZq+Hv73yqmt8/k/g2G3kjZFs0QLUXxrf2dQVdWv+El3UBQDPx7A0YBmo4u f6Jg== X-Gm-Message-State: APjAAAXGPfojVpJuTdfAuA8MOU5YzaoXvjQLazvTEwXJYJdpbSKtMCsA 0ufLFvaq6mXoGxseCp/D0UeN4WNyH8k= X-Received: by 2002:a7b:cf05:: with SMTP id l5mr2044282wmg.119.1571212340927; Wed, 16 Oct 2019 00:52:20 -0700 (PDT) Received: from dell ([95.149.164.86]) by smtp.gmail.com with ESMTPSA id l11sm1630442wmh.34.2019.10.16.00.52.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Oct 2019 00:52:20 -0700 (PDT) Date: Wed, 16 Oct 2019 08:52:18 +0100 From: Lee Jones To: Matthias Kaehlcke Cc: Thierry Reding , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , linux-pwm@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] backlight: pwm_bl: Don't assign levels table repeatedly Message-ID: <20191016075218.GB4365@dell> References: <20191002095541.v2.1.I4f2ede1f55ddd1c72b0303b7fd7f73a782fa33e5@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191002095541.v2.1.I4f2ede1f55ddd1c72b0303b7fd7f73a782fa33e5@changeid> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 02 Oct 2019, Matthias Kaehlcke wrote: > pwm_backlight_probe() re-assigns pb->levels for every brightness > level. This is not needed and was likely not intended, since > neither side of the assignment changes during the loop. Assign > the field only once. > > Signed-off-by: Matthias Kaehlcke > --- > > Changes in v2: > - removed curly braces from for loop > > drivers/video/backlight/pwm_bl.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) Applied, thanks. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog