Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp303101pxx; Thu, 29 Oct 2020 03:05:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlsNumB4WRtoV4jwshO3kQIlOp02pdsCnoVQN+zaDWYwLgxSEQDt4Ny7fqHrsw9a1mWWKJ X-Received: by 2002:aa7:d844:: with SMTP id f4mr3075249eds.194.1603965933683; Thu, 29 Oct 2020 03:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603965933; cv=none; d=google.com; s=arc-20160816; b=LGyX+SfcWqmEwjNmwNp1dud2uyxLyzm9tALok7Nu92y7QowZQWN7ZmkAALAO+ls554 LUTvLXlXPclNZO+1xPAxdcQNRJ2xM2Yezf8km+9sYtNo7yQP3lYaz0/MseAH4TSyCWhH 3GdgcVsJjq8B+vrW5c/nqPWZy1KZuLj45YaFSv0q4bZSZ3TJc3yPyRYlzr102t0u0WSS R/eacB6fDE08jclXLg3XGjJjzu4YQ3nExZxSk0EpWSM5FbOAa5V5sPRNIXMwY5bzvcwM untmDjLH+q5KEzc1WDp9lX8zpsyS3I9/XE2ZIkk42vWKl7XUWsehPmSnKM50F2CMZ0t/ kjQQ== 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=ALnKi0663JS+DOhkajBZvSKE9euKCbHgcfc7i0oLN4TSb8/nP2G6szYK80BVQx6W1C 0I6T8bjNpL4+6eCcWi/uK7r+0/otpEQM6foEdjpNQ2VUcOcqhJEcyf7WRw45/kavbj2j u1t7gKd3xjQ7sKlnljmYyftNttFiCTKuAHK7uvh0XUts0pOwsbIJArLKg5+Be0Weu2B+ PXYDUUf0jGtGTjU162o30SUWc70TJ6pDBNWa0/4y6gMPe5AjnO5aX1ePfmWhDFGEFYpU ayioGxUSuXptiFfDAsLRVAsrkaSMnfuE40AU+qc9PSNzw0GTnXDjdZKkHU+QCI3xK2Mp Kwtg== 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 dh21si1577515edb.255.2020.10.29.03.05.10; Thu, 29 Oct 2020 03:05:33 -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 S1727025AbgJ2J6H (ORCPT + 99 others); Thu, 29 Oct 2020 05:58:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726970AbgJ2J6E (ORCPT ); Thu, 29 Oct 2020 05:58:04 -0400 Received: from smtp3-1.goneo.de (smtp3.goneo.de [IPv6:2001:1640:5::8:37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0320C0613D6 for ; Thu, 29 Oct 2020 02:58:03 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.goneo.de (Postfix) with ESMTP id C82FA23FA1C; Thu, 29 Oct 2020 10:58:02 +0100 (CET) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -2.947 X-Spam-Level: X-Spam-Status: No, score=-2.947 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.047, 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 JP1uUGrsaXMp; Thu, 29 Oct 2020 10:58:01 +0100 (CET) Received: from lem-wkst-02.lemonage.de. (hq.lemonage.de [87.138.178.34]) by smtp3.goneo.de (Postfix) with ESMTPA id 4FEF923F5FF; Thu, 29 Oct 2020 10:58:01 +0100 (CET) From: poeschel@lemonage.de To: Miguel Ojeda Sandonis , linux-kernel@vger.kernel.org (open list) Cc: Lars Poeschel , Willy Tarreau Subject: [PATCH v5 12/25] auxdisplay: make charlcd_backlight visible to hd44780_common Date: Thu, 29 Oct 2020 10:57:16 +0100 Message-Id: <20201029095731.311528-11-poeschel@lemonage.de> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029095731.311528-1-poeschel@lemonage.de> References: <20201029095231.311083-1-poeschel@lemonage.de> <20201029095731.311528-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