Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3251321pxk; Mon, 5 Oct 2020 05:18:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyS2H6LcHaNZbiF7bswnVySO6ccZCu+Qx4BuGSbAfCK548BPewjlN7Fz9XZ8mEyjvH503fO X-Received: by 2002:a17:907:429f:: with SMTP id ny23mr6929427ejb.150.1601900317580; Mon, 05 Oct 2020 05:18:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601900317; cv=none; d=google.com; s=arc-20160816; b=UgpZlNodea/xlpW43JIjiF8DnSwvjEZgyUkhdu7+BLTWsAQmn95rsp15SnOavpAavk jNfh6KrzO2d6YjHFhoikbmp9ju8HVv+7ym01gR2v8EZkANE0saD6GuMfApCaLPWr2Bm8 6woxAZM5fAPiKvyWr17NXLPhNmhvdaQDh/uRNU8dJ4oqTWZiJz3BDsKekA3pBmRjGLC2 eWHKGRqXOQGHnpgZJoYyWZ7Xqs2qEU1hUjgsLGFvL7WsdxlY1Srj192sh5JfYhMr7d28 305o4yJvTZ/GJMjnuuS3p+bc6aOxVk6d5m74ko82tUVpweXeSqiz8lgqvvRx4Y7WiHIz 2+WQ== 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=0c/ZYsbcmgr/H+lrlCiB5kui9G31z8e4zrgDnh8JqZs=; b=HHro3zSCnAj6kgHQ+hmQ0DE3jIxno2/JlvwutxMd8kvAouam85m/rNwJkVFpLDwQMA HTUQ/+Vb+cjphW7JwTvYjfX1H2UYO7D6Nd0o0YGdEpGppSlsVujAfuvO4sHQD9PN5h/j lMuKY/TxvM2peYZBSDBSxFK2edljP4I/sHA6DvXvPoqt/M2IFW8wGqoQCf4EwJ+N2UbP TnuTwMsxUAy6N76w8WiX/8Y82VKbVqR4eDU1M2azl7doBexMccBAYdkQNPFgv7JMWmLT zVkBokpfLblbd1LlBXKtNVusKXLgGl3jY3hRwczBgulWswacmBrsSbCjw8IflA/PUN6Q Fh0Q== 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 d12si8106361ejj.33.2020.10.05.05.18.15; Mon, 05 Oct 2020 05:18:37 -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 S1726788AbgJEMOW (ORCPT + 99 others); Mon, 5 Oct 2020 08:14:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726138AbgJEMMb (ORCPT ); Mon, 5 Oct 2020 08:12:31 -0400 Received: from smtp2-2.goneo.de (smtp2.goneo.de [IPv6:2001:1640:5::8:33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C54A3C0613AF for ; Mon, 5 Oct 2020 05:12:27 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.goneo.de (Postfix) with ESMTP id AF94D23F40C; Mon, 5 Oct 2020 14:12:26 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -2.989 X-Spam-Level: X-Spam-Status: No, score=-2.989 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.089, BAYES_00=-1.9] autolearn=ham Received: from smtp2.goneo.de ([127.0.0.1]) by localhost (smtp2.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XrjOCLOKX-tP; Mon, 5 Oct 2020 14:12:25 +0200 (CEST) Received: from lem-wkst-02.lemonage.de. (hq.lemonage.de [87.138.178.34]) by smtp2.goneo.de (Postfix) with ESMTPA id 920CF23FEC4; Mon, 5 Oct 2020 14:12:25 +0200 (CEST) From: poeschel@lemonage.de To: Miguel Ojeda Sandonis , linux-kernel@vger.kernel.org (open list) Cc: Lars Poeschel , Willy Tarreau Subject: [PATCH v3 12/32] auxdisplay: make charlcd_backlight visible to hd44780_common Date: Mon, 5 Oct 2020 14:11:40 +0200 Message-Id: <20201005121200.3427363-13-poeschel@lemonage.de> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201005121200.3427363-1-poeschel@lemonage.de> References: <20201005121200.3427363-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 0b3dafbbae72..e5b22e72fdc8 100644 --- a/drivers/auxdisplay/charlcd.h +++ b/drivers/auxdisplay/charlcd.h @@ -55,6 +55,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