Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2194429imc; Tue, 12 Mar 2019 08:49:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcwI+yurNSR2Znr4IbgG6240BUfxhw3LWn/gx/sveHFoIsBLyMhOZlTaDczWwyjD+EUd/U X-Received: by 2002:a62:5249:: with SMTP id g70mr39167556pfb.115.1552405754362; Tue, 12 Mar 2019 08:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552405754; cv=none; d=google.com; s=arc-20160816; b=olC3UpeR4zpsdvYcGXc1ewN2ip3GGMYkk8u2CPSC/nTej8HS8KKOrgbhYQqAFO/9m/ W8i6kD8yVCd5teWdUrSSUwkm6QAz8x0G/9MjziSxd7RUk6Gtm0PtTOpvdBhmKUfwUqT4 LHZ+Q0SZKrfovBXNvZ+QvuWIDSvyHYCsCBhAnvVCMtpX9aKDGO5jibBjTGrjK+JyP9sl vAwt9XWpO/KqB+eM7AD5SY3zAmRGsuToifZ6ncjeCwK9wqB56Qt+p0CS8/kIzeptp74u 81Q3+QKQ0jgT2M9EHhCnc5MNNzltRA5d8xyKhZRBbaFZ3RRD3o8igSFU2qNYv4Gdpyv2 5eJg== 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 :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from; bh=WF0gVHbxAY57uVcGHJf9HAQowz019snpeztfRbAnw7I=; b=Gs6JquYVTRkeFLgO3aze35Ly94JzMmx7j9VewBQldwZsxkKll7JDm1fHTj6fEf8s/y MNFhB4yVa8rvQ/EMhUCSBN8nHdnQ4hue93a1Lbd1BatAUu+PlZXpUKuZJdysYOgTSBrJ kDq14mhpfKUajKV+ptm+QSZunYoQth87Yl5I8InHjfBi/gJOFv5jU6exba0hJuwAJB9l UgaRKDyrCu7XfW7A/+pjqYXHyyNH9qURKmXgtHVWCuEdmepeanOWScXM9iFG6nem7WDu LpfdDQuYF/fbfnOuQR4y4s5P6fBen1n3n+uKbYwFL5Z7ZdirnzS9Cbs5sGCDq00Heptb Qeag== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1si7883148pfn.245.2019.03.12.08.48.58; Tue, 12 Mar 2019 08:49:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726569AbfCLPsI convert rfc822-to-8bit (ORCPT + 99 others); Tue, 12 Mar 2019 11:48:08 -0400 Received: from unicorn.mansr.com ([81.2.72.234]:42346 "EHLO unicorn.mansr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725887AbfCLPsI (ORCPT ); Tue, 12 Mar 2019 11:48:08 -0400 Received: by unicorn.mansr.com (Postfix, from userid 51770) id 0B02014CEA; Tue, 12 Mar 2019 15:48:06 +0000 (GMT) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Andy Shevchenko Cc: Miguel Ojeda Sandonis , Linux Kernel Mailing List Subject: Re: [PATCH 3/3] auxdisplay: charlcd: make backlight initial state configurable References: <20190301184816.784-1-mans@mansr.com> <20190301184816.784-3-mans@mansr.com> Date: Tue, 12 Mar 2019 15:48:06 +0000 In-Reply-To: (Andy Shevchenko's message of "Tue, 12 Mar 2019 17:45:24 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andy Shevchenko writes: > On Fri, Mar 1, 2019 at 9:14 PM Mans Rullgard wrote: >> >> The charlcd driver currently flashes the backlight once on init. >> This may not be desirable. Thus, add options for turning the >> backlight off or on as well. >> >> Signed-off-by: Mans Rullgard >> --- >> drivers/auxdisplay/Kconfig | 21 +++++++++++++++++++++ >> drivers/auxdisplay/charlcd.c | 10 +++++++++- >> 2 files changed, 30 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/auxdisplay/Kconfig b/drivers/auxdisplay/Kconfig >> index 7d3fe27d6868..c52c738e554a 100644 >> --- a/drivers/auxdisplay/Kconfig >> +++ b/drivers/auxdisplay/Kconfig >> @@ -445,6 +445,27 @@ config PANEL_BOOT_MESSAGE >> An empty message will only clear the display at driver init time. Any other >> printf()-formatted message is valid with newline and escape codes. >> >> +choice >> + prompt "Backlight initial state" >> + default CHARLCD_BL_FLASH > > LGTM, but I don't agree on this default. I would prefer either on or > off, not flashing for sure. > Though it seems the case before the patch... The current code unconditionally flashes the light once. I though it best to keep that behaviour as default, even if it's not seen as ideal. -- M?ns Rullg?rd