From patchwork Tue Aug 6 07:14:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 170643 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp5305846ile; Tue, 6 Aug 2019 00:16:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqw4spTm0mxp/B7wbdCvsW5G60/N+7cBzKcYB0r+++4z1KRgfQIUcS7nF57zbuL2s3Xp3r+3 X-Received: by 2002:a17:90b:28f:: with SMTP id az15mr1708032pjb.18.1565075777176; Tue, 06 Aug 2019 00:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565075777; cv=none; d=google.com; s=arc-20160816; b=idc9AOd4zfse6wEs5t62FHp3vHqJja3wob5LTLZ+9Ldv5HsN2XOnPyXmDL+lJC0fWt R1REMXINztmPXjzdhiKBmenBpUO9wIPjsv2vXJkWd6ulNNzG6YWjXPVW+yGgH4WxiQth ZV8pXqwhOSF+jXHXQOtGpLMGp17zlR5H0dtOXJ+WeL2l/c8n+/CXcYvhKFMlfh5DesnA 5eMCysjoK7HQVo1FscgrdbBXZUCtPxMOubV5w9ti0nmaZHe9BW2v8buum9TqNn9qrnI6 2bWyWdSnOvyPsVFbHL2f7JjpyOROR9LwOjmJwgy+zC3S6kTBLmtxIsyNrOXlLd6xR4JN bnBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=+mlBUCXHsidXtFOd1DNKqTKqGc6xPzMnTouLyTrJQGI=; b=LDxBOvGfTIizZ0xf37ILOB+Ddn9CEFfk+x/kJ9VVKyKxPONUmJhBkqd4tZ8ZabPAf3 FgOkzkOn4e95pDnEA9MC77+7VGsu9P1Smb83xkQRK2IotVeIa30jyOuuyfH0wWDGn/fL lNLViP5jL+H+x1a30KWbTrxvI0Y1lPCKmZkymbrFobbc3Ev2VKl6sR7GpelRgXNWrguX AauZ6SFvRIyxVgpGRbB1dPKagt11zf838dszBraCKY0yDM2Jze0bZJDmA6TlORCvNfjc RJj8MpyOg8c4JJv2gS3tbVuDPA8JP7OcUzYlumBAT9fWAx0nhbPFyt25Ar3OQ/SABAEU xHtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=yXqqCcOw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r72si14332143pjb.33.2019.08.06.00.16.16; Tue, 06 Aug 2019 00:16:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=yXqqCcOw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732052AbfHFHQP (ORCPT + 29 others); Tue, 6 Aug 2019 03:16:15 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:60555 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731557AbfHFHQP (ORCPT ); Tue, 6 Aug 2019 03:16:15 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id x767EoCg021608; Tue, 6 Aug 2019 16:14:50 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x767EoCg021608 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1565075691; bh=+mlBUCXHsidXtFOd1DNKqTKqGc6xPzMnTouLyTrJQGI=; h=From:To:Cc:Subject:Date:From; b=yXqqCcOwHDMXQENKIFxguyqODzU3zeRh7DtTXGezMGCdQZ+PLvI9oKyL/RLkyuBUZ whHcA/2NiNTCUnVTQXSrU5GuXHchfmox8ZlGY4V8tl3lyV5v2xOl6XHhTZ91f57LK6 HJKZQjVIraBtu1zHRWFBQ2BpMi1h4BmpfzfQjBQ7mLgQTTI0wEuMr0D9r7qQlsA2+f vpNdh89MlePLSOBXTr9vShBXJdFIxyvaY74uD1xxqzT12PwfydLRYAInSWNYYGgH57 B8reW4nwbTdSRQ+ujfBb3OsFvVAaKUu9tB17+02trcKGdT74hua3nZS1+k+C+DGSDm nX3F9VnkC0umQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Miguel Ojeda Sandonis Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Allison Randal , Andy Shevchenko , Geert Uytterhoeven , Greg Kroah-Hartman , Ksenija Stanojevic , Thomas Gleixner , Willy Tarreau Subject: [PATCH 1/2] auxdisplay: charlcd: move charlcd.h to drivers/auxdisplay Date: Tue, 6 Aug 2019 16:14:44 +0900 Message-Id: <20190806071445.13705-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This header is included in drivers/auxdisplay/. Make it a local header. Signed-off-by: Masahiro Yamada --- drivers/auxdisplay/charlcd.c | 2 +- {include/misc => drivers/auxdisplay}/charlcd.h | 0 drivers/auxdisplay/hd44780.c | 3 +-- drivers/auxdisplay/panel.c | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) rename {include/misc => drivers/auxdisplay}/charlcd.h (100%) -- 2.17.1 Reviewed-by: Geert Uytterhoeven diff --git a/drivers/auxdisplay/charlcd.c b/drivers/auxdisplay/charlcd.c index 92745efefb54..bef6b85778b6 100644 --- a/drivers/auxdisplay/charlcd.c +++ b/drivers/auxdisplay/charlcd.c @@ -20,7 +20,7 @@ #include -#include +#include "charlcd.h" #define LCD_MINOR 156 diff --git a/include/misc/charlcd.h b/drivers/auxdisplay/charlcd.h similarity index 100% rename from include/misc/charlcd.h rename to drivers/auxdisplay/charlcd.h diff --git a/drivers/auxdisplay/hd44780.c b/drivers/auxdisplay/hd44780.c index ab15b64707ad..bcbe13092327 100644 --- a/drivers/auxdisplay/hd44780.c +++ b/drivers/auxdisplay/hd44780.c @@ -14,8 +14,7 @@ #include #include -#include - +#include "charlcd.h" enum hd44780_pin { /* Order does matter due to writing to GPIO array subsets! */ diff --git a/drivers/auxdisplay/panel.c b/drivers/auxdisplay/panel.c index e06de63497cf..f8ff18ba6889 100644 --- a/drivers/auxdisplay/panel.c +++ b/drivers/auxdisplay/panel.c @@ -55,7 +55,7 @@ #include #include -#include +#include "charlcd.h" #define KEYPAD_MINOR 185 From patchwork Tue Aug 6 07:14:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 170642 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp5304699ile; Tue, 6 Aug 2019 00:15:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsPxOgLqr8XecteEaTvQsKA+Yq/JkIZPwikdkaox5xcM9kXE/FKvvoM5R0V3IAmxArNIBB X-Received: by 2002:a17:90a:b394:: with SMTP id e20mr1709991pjr.76.1565075708535; Tue, 06 Aug 2019 00:15:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565075708; cv=none; d=google.com; s=arc-20160816; b=tmKHuZWKQBCrBe+J7WnK2TRkk0cveGd9EE17HyC1XlzmVJ76vadKphhVb29ITvczqP erQNdnJbkhf2D36g/1ftpkjKtccMt2Py7UBaT0IUtE3NoXlrsSVGy/rWAMgLMUt052LP VSeQybLLLHkNrQBqkEFTkuYh7fJx81gnw9oAMM5slmEXVDoFchAfUFmH3ytXYzaprSLm 1ZmVdLxIBQ0xWyxH4FRbD/U4GFUwsAqvlAlZrvmBRKYUyme9mW1HileH5MHr4mquy6iI cB7zw/H4Am/xuscwiOG8z3Jme9GtsZ33vv/89yVvE3IDXFJHyrssK7wEnU4PMXp7WqYO tlMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=+KO0GXqHBx/JdwcSNmb/i/NoE7oTZbbCDFWzqqlfVso=; b=HXHI3HGUB3c2t3NM1G0drONyos/r/vgkuJ2wX6326I4gRBlowM52M3XI/W/euOYa47 iOylFoGlP1ZLXga2vKb69+apM75mDloX4LvYxeBcM5HIGcMHzVa0hovmeEw5J+45AKpA WETuqhYfTdCdMAk8Boz6dhnYa90GI7N0XtQH7fqdUUPsg3PTFU9VrAGih51ReOk1cPXF 53eIaCHbVtMNcprDFOEhcb7JGAW+uMemL4DroYtjGfHlQQN+V7c0+GSJlOYXXCMc4LYN GhMoPQvxoDCOABS9I6fgUSNbV45chS1GlzastVBWqkM7nkyzJZ8Gw/thMGy/8YeKnKqe sx/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=NQv0vU9d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k73si43001284pge.353.2019.08.06.00.15.08; Tue, 06 Aug 2019 00:15:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=NQv0vU9d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732027AbfHFHPH (ORCPT + 29 others); Tue, 6 Aug 2019 03:15:07 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:58589 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731557AbfHFHPG (ORCPT ); Tue, 6 Aug 2019 03:15:06 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id x767EoCh021608; Tue, 6 Aug 2019 16:14:51 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x767EoCh021608 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1565075691; bh=+KO0GXqHBx/JdwcSNmb/i/NoE7oTZbbCDFWzqqlfVso=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NQv0vU9dgq8hLlTeg/S8JB4XdNM+x1Rbx4Y6Re16hbUseBADjkCWinXvLzW0noZiJ 1MPRdnt2ghXiJvkNOeY+uMHhb0+Xol1HTMM62Vhcn1dP3vYDe45GvM1UhNjpzVY0l/ zLPAP3bA+J02RgdWBOaIlfW5OPFVM6EXJbpiREPAb7BzJM/Ic4jOpn28yL+ZigSaQ6 KPYcvZQZEl8l2h3zGGs+mpfwzR+m5km0QQ6UAgqvRkcNrz3RZ4w4pDHTtVAOWLRLBA wGEBtEDPxT1TSyIGGQ9FY9S7S38C3vCWLfR7cwHoIeJXBPxqlnnoj8oSKKweuNv4MA 8sQYuE6tgPf5g== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Miguel Ojeda Sandonis Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 2/2] auxdisplay: charlcd: add include guard to charlcd.h Date: Tue, 6 Aug 2019 16:14:45 +0900 Message-Id: <20190806071445.13705-2-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190806071445.13705-1-yamada.masahiro@socionext.com> References: <20190806071445.13705-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a header include guard just in case. Signed-off-by: Masahiro Yamada --- drivers/auxdisplay/charlcd.h | 5 +++++ 1 file changed, 5 insertions(+) -- 2.17.1 diff --git a/drivers/auxdisplay/charlcd.h b/drivers/auxdisplay/charlcd.h index 8cf6c18b0adb..00911ad0f3de 100644 --- a/drivers/auxdisplay/charlcd.h +++ b/drivers/auxdisplay/charlcd.h @@ -6,6 +6,9 @@ * Copyright (C) 2016-2017 Glider bvba */ +#ifndef _CHARLCD_H +#define _CHARLCD_H + struct charlcd { const struct charlcd_ops *ops; const unsigned char *char_conv; /* Optional */ @@ -37,3 +40,5 @@ int charlcd_register(struct charlcd *lcd); int charlcd_unregister(struct charlcd *lcd); void charlcd_poke(struct charlcd *lcd); + +#endif /* CHARLCD_H */