Skip to contentSkip to conversation

input: Move map_to_7segment.h to include/linux (v2)

PATCH Applied Atsushi Nemoto 2 participants 2 messages Oct 10, 2008 – Oct 11, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 input: Move map_to_7segment.h to include/linux (v2)

The map_to_7segment.h provides generic 7segment LED mappings and is designed to be used by other drivers. Moving it to common area will make it more usable. Also exporting it to userspace will help users of sysfs interface.

---
Change from v1:
* Export to userspace.

This is renaming patch. I can send no-rename patch if requested.

 drivers/input/misc/yealink.c                       |    2 +-
 include/linux/Kbuild                               |    1 +
 .../input/misc => include/linux}/map_to_7segment.h |    2 --
 3 files changed, 2 insertions(+), 3 deletions(-)
 rename {drivers/input/misc => include/linux}/map_to_7segment.h (99%)
drivers/input/misc/yealink.c +1 -1
index facefd3..11b5c7e 100644
@@ -52,8 +52,8 @@
 #include <linux/module.h>
 #include <linux/rwsem.h>
 #include <linux/usb/input.h>
+#include <linux/map_to_7segment.h>
 
-#include "map_to_7segment.h"
 #include "yealink.h"
 
 #define DRIVER_VERSION "yld-20051230"
include/linux/Kbuild +1 -0
index b68ec09..6e1755f 100644
@@ -107,6 +107,7 @@ header-y += keyctl.h
 header-y += limits.h
 header-y += magic.h
 header-y += major.h
+header-y += map_to_7segment.h
 header-y += matroxfb.h
 header-y += meye.h
 header-y += minix_fs.h
include/linux/map_to_7segment.h renamed from drivers/input/misc/map_to_7segment.h +0 -2
similarity index 99%
rename from drivers/input/misc/map_to_7segment.h
rename to include/linux/map_to_7segment.h
index a424094..db45f7c 100644
@@ -1,6 +1,4 @@
 /*
- * drivers/usb/input/map_to_7segment.h
- *
  * Copyright (c) 2005 Henk Vergonet <[email protected]>
  *
  * This program is free software; you can redistribute it and/or
Signature · 1 line
1.5.6.3
maintainer Applied
#1 lore raw
Quoted 5 lines · Atsushi Nemoto

The map_to_7segment.h provides generic 7segment LED mappings and is designed to be used by other drivers. Moving it to common area will make it more usable. Also exporting it to userspace will help users of sysfs interface.

Applied, thank you Atsushi.

Signature · 1 line
Dmitry