From patchwork Fri Jul 14 12:14:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13313628 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 06A80EB64DA for ; Fri, 14 Jul 2023 12:14:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 52B6910E81E; Fri, 14 Jul 2023 12:14:49 +0000 (UTC) Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8DD1310E81E for ; Fri, 14 Jul 2023 12:14:47 +0000 (UTC) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4f4b2bc1565so3074184e87.2 for ; Fri, 14 Jul 2023 05:14:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689336885; x=1691928885; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1wNzU1jOzNUiKRxU7gqcIT9SB28krhRHjHYXdxzclRE=; b=jPQt3zLyyTcTqT5ijbQq3e0L9rHwwr8SOxE3IeG2tAOaiJJYQugwzDdhW/P/UgpC8s VeN0uZO7SlelJM8gpuq1TT4rTe9/ssJBM3shpliPbBHLa9almmevLoIsJS6nWP6ByD/q jfYpnLOZx5ltlsj+KkU88i8OnjsleS0ci5lb9DXbiyz2Romth0Vl/r7TVaQrAvocZJA+ eiq4HdeXvZW+xSAOTf+tA9MhMRJKRxClm1zliGFGWUqo/Pqc8GjV/HvqDjryIGZbZXQk GeReLVLjnVLRUL6g7u3gvpxZiHO6mhMHTPH/Y4hsglAmDUGcS+4THgeTfusT+tlaO1yw HSjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689336885; x=1691928885; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1wNzU1jOzNUiKRxU7gqcIT9SB28krhRHjHYXdxzclRE=; b=A6QE6dpf2TDZ+DtbyH22rW5Wd6pjyS9j7zVWHM4B4mhbAth/U69QDNOv/lug+YIHfg FQ83ggConCUKZ/EZ83v+E6TFFCUHnZ2Dc5g5elVlS6bwpuVr2J+mJekrJVg8aO2r+9ES JeFzmFkcS/RlXkMxDYgRK+4xlSL4hd5wrAbNPNCE143Zav4Oaf5M50gGWmFS/Jmi1Kbk DjXqb/lbtCs6x/vrM2JAihrxyvqzi1BefGlIHrzFeCzqtucoXQIerlu6ZvNDpQtvwiQl dURPkrViNPS6FZWVvgpCIXUI2tTmQHSdtZTbBRPIHHQlzTeN0FuJhSKVviibU1TQ4ucK Idgw== X-Gm-Message-State: ABy/qLZ/bPS+LANQrQkTTlygYn4DSecWtnBQPJFsNFhGegtljmD6EmKE 3BTNQfFWbWpK0e6LqJJUIqY= X-Google-Smtp-Source: APBJJlEou3hBquZ72I9tXaAkxSKmu6ns5tLytwoP8Lson4Z4VFO/VawIygYHQlL/4B4CxJGRZ0r2Wg== X-Received: by 2002:a05:6512:32cc:b0:4f8:62a6:8b2 with SMTP id f12-20020a05651232cc00b004f862a608b2mr4270397lfg.46.1689336884909; Fri, 14 Jul 2023 05:14:44 -0700 (PDT) Received: from tablet.my.domain (ip-37-248-157-105.multi.internet.cyfrowypolsat.pl. [37.248.157.105]) by smtp.gmail.com with ESMTPSA id r16-20020aa7d150000000b0051e19bf66a4sm5680666edo.83.2023.07.14.05.14.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 05:14:44 -0700 (PDT) From: Artur Weber To: Lee Jones Subject: [PATCH 0/2] backlight: lp855x: Fixes after c1ff7da03e16 Date: Fri, 14 Jul 2023 14:14:38 +0200 Message-ID: <20230714121440.7717-1-aweber.kernel@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pwm@vger.kernel.org, Daniel Thompson , Artur Weber , Jingoo Han , Helge Deller , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Thierry Reding , ~postmarketos/upstreaming@lists.sr.ht, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Two small fixes after commit c1ff7da03e16 ("video: backlight: lp855x: Get PWM for PWM mode during probe"), stemming from a review[1] by Uwe Kleine-König. [1] https://lore.kernel.org/all/20230614083953.e4kkweddjz7wztby@pengutronix.de/ Signed-off-by: Artur Weber Artur Weber (2): backlight: lp855x: Initialize PWM state on first brightness change backlight: lp855x: Catch errors when changing brightness drivers/video/backlight/lp855x_bl.c | 33 +++++++++++++++++------------ 1 file changed, 20 insertions(+), 13 deletions(-) base-commit: 7fcd473a6455450428795d20db7afd2691c92336