Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp694148ybp; Fri, 4 Oct 2019 03:31:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhUSx5lilOGefANhyBStOHvZH57mWVDajLuzyUdXXuDdMvgL/5gNn585P9fcnCL5q7LiWa X-Received: by 2002:aa7:d692:: with SMTP id d18mr14043840edr.95.1570185104439; Fri, 04 Oct 2019 03:31:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570185104; cv=none; d=google.com; s=arc-20160816; b=HjYUoZP/ctSza17DnzQlcfbAEnS5Wnzr1s+DF9oLPe0kfvD4/028Z9Ub7l7k1szqZH F6Fa1cmMij7aRL7Y4hhy9xBjNloUFiDVilQPb51I50p5mZO6fD5xxGPoxbzyThKPv2ED c7OhEOO6ont+qR5EkQWIp9+9d+Z4UOLgrEM9b0zTIO2Iu88AtyFW0hyf1ZwIwjh0DrN7 YlmiTWF4yRiwr3OwdX9rFuCdtfHwDFTjfxyuj0pNocHPVtdLKzl7tvtE93w91oxf0dNQ uVycJ5zA3OxzqsQMvIObgpTIglmwrjCN0PY9f2X1Ha8qhmT8CYTM4Wx7qMQkwoe8jNA2 wtew== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8YhHlhwGt1TAWXafFmkDE+SBCnhwFe8ErS8cgtMMTtE=; b=m4NwfQdmB8kZoW8bx1l4xGjOe+V5mAZgOVUGYmjIMT79z7OVZgXmc3agcEnTLwCX0n JMcpsjC0+Hv2nqdLedEpdo0xmUpau/bGG/TyfRbHKaWuSd5g3T2rve8xpBGcmkPxsPXk dPxyndB7LSIoyQrwcfO7Q4ARbGlrNHYXhfBBL3Hk0plUvSot7rxGtw/SNVxrh6aUe84s HJcUUhDPpO7+0+U2QWwhRY68Wh7hQ4NWC3JwUjtzmMtD3aN4Ni2YIQ31dlq6QO0albIK L6P23vGOcb57z4ztTQrIzfo3I6r/WNb6IJt6TiQwvPFn3kaItVDAJcvFEtGBhBUTte4U JxTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rVWsqpzV; 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 d15si3217897edb.7.2019.10.04.03.31.19; Fri, 04 Oct 2019 03:31:44 -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=rVWsqpzV; 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 S2387948AbfJDJxY (ORCPT + 99 others); Fri, 4 Oct 2019 05:53:24 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42322 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729926AbfJDJxY (ORCPT ); Fri, 4 Oct 2019 05:53:24 -0400 Received: by mail-wr1-f65.google.com with SMTP id n14so6322426wrw.9 for ; Fri, 04 Oct 2019 02:53:22 -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:in-reply-to:user-agent; bh=8YhHlhwGt1TAWXafFmkDE+SBCnhwFe8ErS8cgtMMTtE=; b=rVWsqpzVnJGi0YJ4CwuRNcaOlX+d7aKvIZN1mIp3uBoH7n6mm4b9o6bFRNye4VHvN0 dmHpJgNyeQXGqq8oqFzi3tkydvv82SxHK6xZ5YgxvmJH2xq7/U3SLoSuKymkyPG7iYi6 ScXsvWgiaPqfKnMnQUFEp15myR3XEB5V/7GNNKMgjnsvzfBTL2SIUtBXFMk81yumnur+ vAjwHRiomQ54AQh7zgwceSjUCQqaCw7uoyVyVERGlXcoObSRoJk23p4RPVwZzRIE3bz8 dRbbKGwpYcig8zrQ7LbMq4VYgJo0hVr2YcX3dJzKnSDqS7/z02rpCGlHl1kbulLwflaw VuMQ== 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:in-reply-to:user-agent; bh=8YhHlhwGt1TAWXafFmkDE+SBCnhwFe8ErS8cgtMMTtE=; b=GJW7YhA6Jhuh6tVaaVkoIW1D5nHNOJSsEV2vTNU6mrONsVmZ9AlZH1pKVzF2099uy8 k8snov4hJyrHIV86ArVfNW2QgWcjzYuhPR7TAzgmTq3yy1ZCb+8iCSckO03Mx5mvS0aZ Ma/Zvt49AfpsbXis5jTnvJKsz30oP/8RLiOpJPCxAk3PRQr8anKrV20ok/P0qU0SMzwx l86K/mbDysmqataFbUstjZ3YS4Lj+9nppZDEfkIJ2epx82v8fE2RxMub1U3eonwr95B/ NOqusihj0B4GO7s9ZhKww4fNDg+QcO3Tn7Xi8LP9ozomDjNk2uxxZ4NQ9aoFFwBVtnHR WagQ== X-Gm-Message-State: APjAAAU9ERHfSrjWYwBVAM7zYlEq59Ua6OHG9ecSabkrZ6aIgOOGyXDS wHgsC26qFkYZPXPeeVScLRU05Q== X-Received: by 2002:a5d:4b52:: with SMTP id w18mr1225370wrs.239.1570182802022; Fri, 04 Oct 2019 02:53:22 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id b7sm1483036wrx.56.2019.10.04.02.53.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Oct 2019 02:53:21 -0700 (PDT) Date: Fri, 4 Oct 2019 10:53:19 +0100 From: Daniel Thompson To: Matthias Kaehlcke Cc: Thierry Reding , Lee Jones , 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] backlight: pwm_bl: Add missing curly branches in else branch Message-ID: <20191004095319.dkcjemag65xgsmp5@holly.lan> References: <20191003213502.102110-1-mka@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191003213502.102110-1-mka@chromium.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 03, 2019 at 02:35:02PM -0700, Matthias Kaehlcke wrote: > Add curly braces to an 'else' branch in pwm_backlight_update_status() > to match the corresponding 'if' branch. > > Signed-off-by: Matthias Kaehlcke Reviewed-by: Daniel Thompson > --- > > drivers/video/backlight/pwm_bl.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c > index 746eebc411df..130abff2705f 100644 > --- a/drivers/video/backlight/pwm_bl.c > +++ b/drivers/video/backlight/pwm_bl.c > @@ -125,8 +125,9 @@ static int pwm_backlight_update_status(struct backlight_device *bl) > state.duty_cycle = compute_duty_cycle(pb, brightness); > pwm_apply_state(pb->pwm, &state); > pwm_backlight_power_on(pb); > - } else > + } else { > pwm_backlight_power_off(pb); > + } > > if (pb->notify_after) > pb->notify_after(pb->dev, brightness); > -- > 2.23.0.444.g18eeb5a265-goog >