Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3207786pxk; Mon, 21 Sep 2020 07:54:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzl0BuoWS0+a95XBdbSqyPpke9VGjWw6XxgYf8Y2dK7n8K2ObrLSvjayGprZ4KOJIAMIili X-Received: by 2002:a50:8523:: with SMTP id 32mr39099edr.282.1600700071839; Mon, 21 Sep 2020 07:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600700071; cv=none; d=google.com; s=arc-20160816; b=rxlKqd/8OKvauVCIj25EOsUt49HdZRi0P1AgniMpKIr4QgOQik85AV7lsM52K3uxBN aBBlqiWm2Yrth8EhRyMeteizzOChVnqQ2yktbkv7fXLPja8OAbo7pe3UeZkoxQ49AgaA JNbcr+eH1BbmoENyBN80g2fZXfL9TEivHarMUSnV8K+l476lpg188tT+FXhbPgPH7loP oOsHuFyehSddCOq0uaN/q+XNz56tuKXMvisLXDlDrwPpJ4Z/4VArqkKPsfujRcavKPGC bbYLNgXTlHc0e8fBXYIGUigB4+ElO8uvIn7lS+GPiwleYMofaYi2HtnrTkVSrQuJsoKg jsfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=NC6Y2JD+QJGNHuo6sofP9lz0afP7L86XJZHZ++prEj0=; b=LpDb6gtmC06+SJB7sRegrcE5FKREr9rWZnVdzzrYe1HDK+6bSn4GQ5U1yf97yeYOWC VUd8DSoUVMR52yHubrT2bJFA0m9ivkGCvboLCNFL+2+7mJ0JbFvXQTZpD0/WX9VptleU kakNR+T2j/0vOWEGyF+OCBw5biJym56EJ3GXs8BkoJ1rBsg22aV0taFTuHD7NrqtRSiZ 4IUe1MQAvwvfVVzVSRqCrfhH/dmlrTQ/QT97q3PiZNfFRg1T0U9lAZ0W1Inv39qQkeQK GuHpjgFRu3/W3OZfXyYjuvikLTa1H4t+eRBLWrdp3sxVnb2JvQWsCNDuHixhQB/KOjQ4 EsDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h13si8122553edq.83.2020.09.21.07.54.06; Mon, 21 Sep 2020 07:54:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728358AbgIUOtp (ORCPT + 99 others); Mon, 21 Sep 2020 10:49:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727950AbgIUOsC (ORCPT ); Mon, 21 Sep 2020 10:48:02 -0400 Received: from smtp1.goneo.de (smtp1.goneo.de [IPv6:2001:1640:5::8:30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7790C0613D2 for ; Mon, 21 Sep 2020 07:48:01 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.goneo.de (Postfix) with ESMTP id 9855623F0A3; Mon, 21 Sep 2020 16:48:00 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -3.004 X-Spam-Level: X-Spam-Status: No, score=-3.004 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.104, BAYES_00=-1.9] autolearn=ham Received: from smtp1.goneo.de ([127.0.0.1]) by localhost (smtp1.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 42m9jlIkning; Mon, 21 Sep 2020 16:47:59 +0200 (CEST) Received: from lem-wkst-02.lemonage.de. (hq.lemonage.de [87.138.178.34]) by smtp1.goneo.de (Postfix) with ESMTPA id 7D49023F19C; Mon, 21 Sep 2020 16:47:59 +0200 (CEST) From: poeschel@lemonage.de To: Miguel Ojeda Sandonis , linux-kernel@vger.kernel.org (open list) Cc: Lars Poeschel Subject: [PATCH v2 13/32] auxdisplay: Make use of enum for backlight on / off Date: Mon, 21 Sep 2020 16:46:25 +0200 Message-Id: <20200921144645.2061313-14-poeschel@lemonage.de> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921144645.2061313-1-poeschel@lemonage.de> References: <20191016082430.5955-1-poeschel@lemonage.de> <20200921144645.2061313-1-poeschel@lemonage.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lars Poeschel To turn the backlight on or off use our new enum CHARLCD_ON / CHARLCD_OFF. Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/auxdisplay/charlcd.c b/drivers/auxdisplay/charlcd.c index 154419513186..9631f70e8128 100644 --- a/drivers/auxdisplay/charlcd.c +++ b/drivers/auxdisplay/charlcd.c @@ -115,7 +115,7 @@ static void charlcd_bl_off(struct work_struct *work) if (priv->bl_tempo) { priv->bl_tempo = false; if (!(priv->flags & LCD_FLAG_L)) - priv->lcd.ops->backlight(&priv->lcd, 0); + priv->lcd.ops->backlight(&priv->lcd, CHARLCD_OFF); } mutex_unlock(&priv->bl_tempo_lock); } @@ -132,7 +132,7 @@ void charlcd_poke(struct charlcd *lcd) mutex_lock(&priv->bl_tempo_lock); if (!priv->bl_tempo && !(priv->flags & LCD_FLAG_L)) - lcd->ops->backlight(lcd, 1); + lcd->ops->backlight(lcd, CHARLCD_ON); priv->bl_tempo = true; schedule_delayed_work(&priv->bl_work, LCD_BL_TEMPO_PERIOD * HZ); mutex_unlock(&priv->bl_tempo_lock); @@ -829,7 +829,7 @@ int charlcd_unregister(struct charlcd *lcd) the_charlcd = NULL; if (lcd->ops->backlight) { cancel_delayed_work_sync(&priv->bl_work); - priv->lcd.ops->backlight(&priv->lcd, 0); + priv->lcd.ops->backlight(&priv->lcd, CHARLCD_OFF); } return 0; -- 2.28.0