Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp48925ybp; Thu, 3 Oct 2019 14:37:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyn2s59tFex1EcgdW9ICxl6MjJUElsqUwL6/2qKxMxQe8s3DxhDqM6Ij9Z8BCnpV0HvAyOt X-Received: by 2002:a17:906:8043:: with SMTP id x3mr9663318ejw.221.1570138649227; Thu, 03 Oct 2019 14:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570138649; cv=none; d=google.com; s=arc-20160816; b=tfBcNHa1n+VCL9h4jW7e2y1MKJ0XP4CL+iFlGAP7Mq8dnF5vMbDK9L/frITBQusJkq ePlVLmPJm9F2QaEJTHVAGcTxoOROE4qgqr/OUrARc6mN/65M7R4a7ccFYnOJEq4ZrRyL xL1w3rJAuJESuKOXmxaZ7D2oLPkRTuxmDhNIyf8C4x1tb7gDcKdnoDsMGEayzsMxp77y m3kU9RBmKQxIIminjY5f87We64Dk3tyO2MKNQW1YQ5PV9h4GOjHZWcYnn1H1wMBaUGJ5 hDa9eb1svoFg3rIHYx4kcswMMvIdGqDsJK0r27W3BB6TkqunWDKaBvMpB8urwBZ4ETSn XbjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7AHHcEKrWBM5y9wBFl/C7jzA4xtd9EY/YdeDi/hosms=; b=EdkSPliipNuLYrXh/DqySeDdQ2Z7OyN8GdsVxj0mMkaq4MegDpikjX97iCg/C7A+G4 fKtJmkKj7+Prq6NNx6fz3v8lu/WmtLWtCyw1uGJMUoBqq74Y5jTR7BSfNnJW+C5U6i+u sL8+QML5pCx9cMBtR+kt5YlCKMjpzZKM/y/VU7bJPj0vUAdCIkrnGvwoaFAhLi6wHpxS N1zy5hh8PAVQIQJSMf1Yd4QUfaaWLlUn2k0qZ0s0lDj+LeZJ6fedhSyVztNzCjc43z5D EBfvnrS9DhRDjHx09pVuqszT+sFPJIrVza7HP1JZwuMxdc9s3MgDeDnEXZUkSJOrENGz 0hEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ASTwwcBD; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b17si1913081ejp.326.2019.10.03.14.37.04; Thu, 03 Oct 2019 14:37:29 -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=@chromium.org header.s=google header.b=ASTwwcBD; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387413AbfJCVfG (ORCPT + 99 others); Thu, 3 Oct 2019 17:35:06 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:39968 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730020AbfJCVfG (ORCPT ); Thu, 3 Oct 2019 17:35:06 -0400 Received: by mail-pf1-f196.google.com with SMTP id x127so2550548pfb.7 for ; Thu, 03 Oct 2019 14:35:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7AHHcEKrWBM5y9wBFl/C7jzA4xtd9EY/YdeDi/hosms=; b=ASTwwcBDLKFauBJRi7fwuLBmPbFmPW/3m9tG2zvZzcpcFnfrephyeKAqsoDz/Gbc66 sNU/cLXRpwM2QQGC5Tx0G9jDeC8pwZEfAnjhJVs59CzNawD20uQqRrHq58tGrC/fQblp hNqMsIa+vM2uuIefpEywLO5YYokaczyteqWGA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7AHHcEKrWBM5y9wBFl/C7jzA4xtd9EY/YdeDi/hosms=; b=RfFz2e6bHVjDCxD59d4Okg3b1hLqCuA4oyWzcYFDRvGIEaV4K0L0kJ4OKtfUrnV8Ka aPeWq57GVHjZdvTvuCRWqhhaCqApBClOon9kMdM7CN9MizT6/N4cpzE3a4LK1XZopbFf BJ/lsCNOZJvQzj/pAEMYoEu4l7+Mjs8t3yY6O20wlBVmCyu5MrVcpdYpcNU4GP43oQ/k 0Mrcssy45sb57OAsnuakiQPyADgeNd+dHJoA/wd/FCaYNg5VqGMVyYPDi1CHc/heWXvj 7Lag40WtCkdAo/dCKx8ecQGq70WbmUYossQMJ2sEFGgZw364noqAY5QvoCXtwTsPndSm oiRw== X-Gm-Message-State: APjAAAV4LszFNZG3lhJmpvBjDX3vr9wKZg/Jnws3qLSNRAAuRAORAFte znFvDNjQlW7vZtOZEeOz8mI7qQ== X-Received: by 2002:a63:4d4e:: with SMTP id n14mr11552757pgl.88.1570138505256; Thu, 03 Oct 2019 14:35:05 -0700 (PDT) Received: from localhost ([2620:15c:202:1:4fff:7a6b:a335:8fde]) by smtp.gmail.com with ESMTPSA id 30sm3240647pjk.25.2019.10.03.14.35.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Oct 2019 14:35:04 -0700 (PDT) From: Matthias Kaehlcke To: Thierry Reding , Lee Jones , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz Cc: Matthias Kaehlcke , linux-pwm@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] backlight: pwm_bl: Add missing curly branches in else branch Date: Thu, 3 Oct 2019 14:35:02 -0700 Message-Id: <20191003213502.102110-1-mka@chromium.org> X-Mailer: git-send-email 2.23.0.444.g18eeb5a265-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add curly braces to an 'else' branch in pwm_backlight_update_status() to match the corresponding 'if' branch. Signed-off-by: Matthias Kaehlcke --- 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