linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] auxdisplay: charlcd: move charlcd.h to drivers/auxdisplay
@ 2019-08-06  7:14 Masahiro Yamada
  2019-08-06  7:14 ` [PATCH 2/2] auxdisplay: charlcd: add include guard to charlcd.h Masahiro Yamada
  2019-08-06  7:18 ` [PATCH 1/2] auxdisplay: charlcd: move charlcd.h to drivers/auxdisplay Geert Uytterhoeven
  0 siblings, 2 replies; 5+ messages in thread
From: Masahiro Yamada @ 2019-08-06  7:14 UTC (permalink / raw)
  To: Miguel Ojeda Sandonis
  Cc: linux-kernel, Masahiro Yamada, Allison Randal, Andy Shevchenko,
	Geert Uytterhoeven, Greg Kroah-Hartman, Ksenija Stanojevic,
	Thomas Gleixner, Willy Tarreau

This header is included in drivers/auxdisplay/. Make it a local header.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 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%)

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 <generated/utsrelease.h>
 
-#include <misc/charlcd.h>
+#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 <linux/property.h>
 #include <linux/slab.h>
 
-#include <misc/charlcd.h>
-
+#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 <linux/io.h>
 #include <linux/uaccess.h>
 
-#include <misc/charlcd.h>
+#include "charlcd.h"
 
 #define KEYPAD_MINOR		185
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] auxdisplay: charlcd: add include guard to charlcd.h
  2019-08-06  7:14 [PATCH 1/2] auxdisplay: charlcd: move charlcd.h to drivers/auxdisplay Masahiro Yamada
@ 2019-08-06  7:14 ` Masahiro Yamada
  2019-08-08 18:03   ` Miguel Ojeda
  2019-08-06  7:18 ` [PATCH 1/2] auxdisplay: charlcd: move charlcd.h to drivers/auxdisplay Geert Uytterhoeven
  1 sibling, 1 reply; 5+ messages in thread
From: Masahiro Yamada @ 2019-08-06  7:14 UTC (permalink / raw)
  To: Miguel Ojeda Sandonis; +Cc: linux-kernel, Masahiro Yamada

Add a header include guard just in case.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 drivers/auxdisplay/charlcd.h | 5 +++++
 1 file changed, 5 insertions(+)

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 */
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] auxdisplay: charlcd: move charlcd.h to drivers/auxdisplay
  2019-08-06  7:14 [PATCH 1/2] auxdisplay: charlcd: move charlcd.h to drivers/auxdisplay Masahiro Yamada
  2019-08-06  7:14 ` [PATCH 2/2] auxdisplay: charlcd: add include guard to charlcd.h Masahiro Yamada
@ 2019-08-06  7:18 ` Geert Uytterhoeven
  2019-08-08 18:04   ` Miguel Ojeda
  1 sibling, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2019-08-06  7:18 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: Miguel Ojeda Sandonis, Linux Kernel Mailing List, Allison Randal,
	Andy Shevchenko, Geert Uytterhoeven, Greg Kroah-Hartman,
	Ksenija Stanojevic, Thomas Gleixner, Willy Tarreau

On Tue, Aug 6, 2019 at 9:16 AM Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:
> This header is included in drivers/auxdisplay/. Make it a local header.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] auxdisplay: charlcd: add include guard to charlcd.h
  2019-08-06  7:14 ` [PATCH 2/2] auxdisplay: charlcd: add include guard to charlcd.h Masahiro Yamada
@ 2019-08-08 18:03   ` Miguel Ojeda
  0 siblings, 0 replies; 5+ messages in thread
From: Miguel Ojeda @ 2019-08-08 18:03 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: linux-kernel

On Tue, Aug 6, 2019 at 9:15 AM Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:
>
> Add a header include guard just in case.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Picked it up, thanks!

Cheers,
Miguel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] auxdisplay: charlcd: move charlcd.h to drivers/auxdisplay
  2019-08-06  7:18 ` [PATCH 1/2] auxdisplay: charlcd: move charlcd.h to drivers/auxdisplay Geert Uytterhoeven
@ 2019-08-08 18:04   ` Miguel Ojeda
  0 siblings, 0 replies; 5+ messages in thread
From: Miguel Ojeda @ 2019-08-08 18:04 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Masahiro Yamada, Linux Kernel Mailing List, Allison Randal,
	Andy Shevchenko, Geert Uytterhoeven, Greg Kroah-Hartman,
	Ksenija Stanojevic, Thomas Gleixner, Willy Tarreau

On Tue, Aug 6, 2019 at 9:18 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>
> On Tue, Aug 6, 2019 at 9:16 AM Masahiro Yamada
> <yamada.masahiro@socionext.com> wrote:
> > This header is included in drivers/auxdisplay/. Make it a local header.
> >
> > Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>
> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>

Picked it up, thanks!

Cheers,
Miguel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-08-08 18:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-06  7:14 [PATCH 1/2] auxdisplay: charlcd: move charlcd.h to drivers/auxdisplay Masahiro Yamada
2019-08-06  7:14 ` [PATCH 2/2] auxdisplay: charlcd: add include guard to charlcd.h Masahiro Yamada
2019-08-08 18:03   ` Miguel Ojeda
2019-08-06  7:18 ` [PATCH 1/2] auxdisplay: charlcd: move charlcd.h to drivers/auxdisplay Geert Uytterhoeven
2019-08-08 18:04   ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).