Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3206328pxk; Mon, 21 Sep 2020 07:52:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgUjMmjlXNLvLoVM6+R7kxTnykoyrxOw70vjcBzCtZD5eTRga60ySd64k8tQnBXFmrxSDf X-Received: by 2002:a05:6402:1495:: with SMTP id e21mr43953edv.146.1600699945982; Mon, 21 Sep 2020 07:52:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600699945; cv=none; d=google.com; s=arc-20160816; b=F3X12f613kjReDED45N0cNdb1pvALfNvZwKf4cUDuNBemZmL+xH1y901X6pnp2NJUF zE4ire+1RZdgzcAG3r2FG64sZhkSR2kKwSGvLE84V7NxZt2N7vc4ghLYyylGKcnWtwdO Iqzx5rE2fKzT9ascmap++/s5rMvaZ1tVlWed3CAlmVyR/K0mJ4KGSQsELHJVnPEyoyi9 gaygXxNg40nLV6B1ptB4jgRm/k46ZMd0SdQtpY5oHfGWuOA++D3MAL4FvNQGwqQ6zr6r Sq6/msilAR3Hn059lZGgqNRTg7osOKN6q5VRf4yLKE4m92FNC/Ly18WkLiC0iDWH/zSa xmhA== 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=f0NvQ6HY3B12pMvSQ+em/dkYAyqUH02exa5XHikaD3A=; b=ugO96JNq8ggDT3Rb9lDQGj29S4fJqZYxg4s6yoHBarh2HAaNNFyWQqDdUgmfGJYDuN ysQNtPy4UjG7J5niLm5k2dDkvP1RRDRgHHZxa4pn0/WcDQh0MuHYcVPh6eMUXP5iwueC LReU8pPCvEhcLLb4od/ZIz9TVaZy4Oy/KCrT8Wa902GFPskEmg3AlogfcFyW3oGew/Jq 9hHFPtUREmYi1BAWyBAN6r3Tm1i46bzoxgD8VSK8hE1ndKt80CTDOyqSEEjwqa3YXkso LGQwqYFgxweeLR4Z+lO3epN1UnZRX7JYCtvvt7pb4YNs+OzIxaiPcjb/LQdTVIGVw4qt MXjQ== 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 a10si7692061ejy.454.2020.09.21.07.52.02; Mon, 21 Sep 2020 07:52:25 -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 S1728369AbgIUOtt (ORCPT + 99 others); Mon, 21 Sep 2020 10:49:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727943AbgIUOsB (ORCPT ); Mon, 21 Sep 2020 10:48:01 -0400 Received: from smtp1.goneo.de (smtp1.goneo.de [IPv6:2001:1640:5::8:30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A808C0613D0 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 4A5BE23F029; Mon, 21 Sep 2020 16:48:00 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -3.005 X-Spam-Level: X-Spam-Status: No, score=-3.005 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.105, 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 pwPg5ZL2XwQz; 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 1588123F183; 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 12/32] auxdisplay: make charlcd_backlight visible to hd44780_common Date: Mon, 21 Sep 2020 16:46:24 +0200 Message-Id: <20200921144645.2061313-13-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 hd44780_common wants to use the charlcd_backlight function, so make it visible. 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