]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Input: move map_to_7segment.h to include/linux
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Sat, 11 Oct 2008 03:14:14 +0000 (23:14 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 11 Oct 2008 03:16:16 +0000 (23:16 -0400)
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.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Acked-by: Henk Vergonet <henk.vergonet@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/yealink.c
include/linux/Kbuild
include/linux/map_to_7segment.h [moved from drivers/input/misc/map_to_7segment.h with 98% similarity]

index facefd3dba29a1aab6c4428c6bdef9a2a3aa1b55..11b5c7e84ed139ad9af9fe21fccc04927edd2a31 100644 (file)
@@ -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"
index 4c4142c5aa6ef26839e4acceb8bcb8b009bf5861..0b136c5990ccdd91c06bcf03cf4ba2add35c560c 100644 (file)
@@ -106,6 +106,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
similarity index 98%
rename from drivers/input/misc/map_to_7segment.h
rename to include/linux/map_to_7segment.h
index a424094d9fe21b836b5b13216147ac09fb690811..7df8432c4402b576b9f1d5b116aea47a6182daef 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * drivers/usb/input/map_to_7segment.h
- *
  * Copyright (c) 2005 Henk Vergonet <Henk.Vergonet@gmail.com>
  *
  * This program is free software; you can redistribute it and/or
@@ -36,7 +34,7 @@
  * Usage:
  *
  *   Register a map variable, and fill it with a character set:
- *     static SEG7_DEFAULT_MAP(map_seg7);
+ *     static SEG7_DEFAULT_MAP(map_seg7);
  *
  *
  *   Then use for conversion: