Skip to content

Commit f9da8d1

Browse files
atsushi-nemotodtor
authored andcommitted
Input: move map_to_7segment.h to include/linux
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 <[email protected]> Acked-by: Henk Vergonet <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent e8f462d commit f9da8d1

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

drivers/input/misc/yealink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
#include <linux/module.h>
5353
#include <linux/rwsem.h>
5454
#include <linux/usb/input.h>
55+
#include <linux/map_to_7segment.h>
5556

56-
#include "map_to_7segment.h"
5757
#include "yealink.h"
5858

5959
#define DRIVER_VERSION "yld-20051230"

include/linux/Kbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ header-y += keyctl.h
106106
header-y += limits.h
107107
header-y += magic.h
108108
header-y += major.h
109+
header-y += map_to_7segment.h
109110
header-y += matroxfb.h
110111
header-y += meye.h
111112
header-y += minix_fs.h

drivers/input/misc/map_to_7segment.h renamed to include/linux/map_to_7segment.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* drivers/usb/input/map_to_7segment.h
3-
*
42
* Copyright (c) 2005 Henk Vergonet <[email protected]>
53
*
64
* This program is free software; you can redistribute it and/or
@@ -36,7 +34,7 @@
3634
* Usage:
3735
*
3836
* Register a map variable, and fill it with a character set:
39-
* static SEG7_DEFAULT_MAP(map_seg7);
37+
* static SEG7_DEFAULT_MAP(map_seg7);
4038
*
4139
*
4240
* Then use for conversion:

0 commit comments

Comments
 (0)