Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp383696pxb; Tue, 3 Nov 2020 02:03:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJysIeJGpuw5KGEK22crSPxr/BRr1X58LYcHV97Cwi5TBeKjZ5+Ukb2bIOYJA0AsFpT7oVaa X-Received: by 2002:a50:d615:: with SMTP id x21mr19352667edi.200.1604397828573; Tue, 03 Nov 2020 02:03:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604397828; cv=none; d=google.com; s=arc-20160816; b=B+Fu0iwhWMtgCmRinl+KPBHoT7D3KwOk//dqI4mMXRZs/pTUSakTeZr1sHTG5AgW2J CuQBcCoZrVPeE2CEUxswTbPkLyGV7XiLR5NLeDbAI0xCIQXB6Ty8t4tmosk1FyLhVUiM 8heqdGWYI8HKI1GzM4E2f74L6vV4V1TgdYj7bsk2W7KDSB2rHsOxDhVYaiGVMyoPX3I2 kWHIsDVhdKbP/u02A2QxpDUzPRIY+n0yjr62qo+3qTKjbLTXHK40qUvjCuClf+NaSMb7 C4EjyF3sN9tR3p/YJLR6q5nlJc+ytVC0UvWBBfU26rJmkNtFEvCB+FmfY6n3gIiiAuac 40fQ== 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=yDsvr7FmQUYiAnbCJiq3GqjYURNxcE2oroqRFOLxdPI=; b=E0LFJavPDNILvIZQQ5g0kMRLgnOhrcxeSZasz5cCjiu5HUYunHJWCOR5FG36Mnco01 w1Zk+ImA4KpwYX130XPhbe9fTVPI6DXLSykVAf3NEBadNB5+XWqBM+qMefKkh4+04cbN mQ333BMTRInKZ2eLiW1JziiQarU/MXfvw5DVIgYyM97ffw3eZguWMD0k/Hj6AhgA1UQE +TfgFW/cvslW3fqGUyO+ANfRaXJe1p2UoaEZE5cqy0OuyMpW4kzc+7nwTSkTENmm9mU9 3qYHXp8Jm6R39Y7DrteK8EdV75xf+NXJGO0hHgjV7sTQJFEMyEfsJsuj1Dut8BvGf8oD IgtA== 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 bx24si12367518ejb.449.2020.11.03.02.03.26; Tue, 03 Nov 2020 02:03:48 -0800 (PST) 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 S1728131AbgKCJ66 (ORCPT + 99 others); Tue, 3 Nov 2020 04:58:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728103AbgKCJ6y (ORCPT ); Tue, 3 Nov 2020 04:58:54 -0500 Received: from smtp3-1.goneo.de (smtp3.goneo.de [IPv6:2001:1640:5::8:37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4DD4C0617A6 for ; Tue, 3 Nov 2020 01:58:54 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by smtp3.goneo.de (Postfix) with ESMTP id 9B80123F3FE; Tue, 3 Nov 2020 10:58:53 +0100 (CET) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -2.943 X-Spam-Level: X-Spam-Status: No, score=-2.943 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.043, BAYES_00=-1.9] autolearn=ham Received: from smtp3.goneo.de ([127.0.0.1]) by localhost (smtp3.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DsW1wh0XlCBx; Tue, 3 Nov 2020 10:58:52 +0100 (CET) Received: from lem-wkst-02.lemonage.de. (hq.lemonage.de [87.138.178.34]) by smtp3.goneo.de (Postfix) with ESMTPA id 27ED423F511; Tue, 3 Nov 2020 10:58:52 +0100 (CET) From: poeschel@lemonage.de To: Miguel Ojeda Sandonis , linux-kernel@vger.kernel.org (open list) Cc: Lars Poeschel , Willy Tarreau Subject: [PATCH v6 12/25] auxdisplay: make charlcd_backlight visible to hd44780_common Date: Tue, 3 Nov 2020 10:58:15 +0100 Message-Id: <20201103095828.515831-13-poeschel@lemonage.de> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201103095828.515831-1-poeschel@lemonage.de> References: <20201103095828.515831-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 hd44780_common wants to use the charlcd_backlight function, so make it visible. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c | 3 ++- drivers/auxdisplay/charlcd.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/auxdisplay/charlcd.c b/drivers/auxdisplay/charlcd.c index fc0daf4987d5..154419513186 100644 --- a/drivers/auxdisplay/charlcd.c +++ b/drivers/auxdisplay/charlcd.c @@ -91,7 +91,7 @@ static void long_sleep(int ms) } /* turn the backlight on or off */ -static void charlcd_backlight(struct charlcd *lcd, enum charlcd_onoff on) +void charlcd_backlight(struct charlcd *lcd, enum charlcd_onoff on) { struct charlcd_priv *priv = charlcd_to_priv(lcd); @@ -103,6 +103,7 @@ static void charlcd_backlight(struct charlcd *lcd, enum charlcd_onoff on) lcd->ops->backlight(lcd, on); mutex_unlock(&priv->bl_tempo_lock); } +EXPORT_SYMBOL_GPL(charlcd_backlight); static void charlcd_bl_off(struct work_struct *work) { diff --git a/drivers/auxdisplay/charlcd.h b/drivers/auxdisplay/charlcd.h index a6c32c4d1aac..a3210305cae7 100644 --- a/drivers/auxdisplay/charlcd.h +++ b/drivers/auxdisplay/charlcd.h @@ -56,6 +56,7 @@ struct charlcd_ops { int (*clear_display)(struct charlcd *lcd); }; +void charlcd_backlight(struct charlcd *lcd, enum charlcd_onoff on); struct charlcd *charlcd_alloc(void); void charlcd_free(struct charlcd *lcd); -- 2.28.0