Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752964AbYJJFmi (ORCPT ); Fri, 10 Oct 2008 01:42:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756011AbYJJFmW (ORCPT ); Fri, 10 Oct 2008 01:42:22 -0400 Received: from mba.ocn.ne.jp ([122.1.235.107]:61212 "EHLO smtp.mba.ocn.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755946AbYJJFmV (ORCPT ); Fri, 10 Oct 2008 01:42:21 -0400 Date: Fri, 10 Oct 2008 14:42:17 +0900 (JST) Message-Id: <20081010.144217.106262895.anemo@mba.ocn.ne.jp> To: dmitry.torokhov@gmail.com Cc: Henk.Vergonet@gmail.com, linux-kernel@vger.kernel.org, akpm@linux-foundation.org Subject: [PATCH] input: Move map_to_7segment.h to include/linux (v2) From: Atsushi Nemoto Message: 123 X-Fingerprint: 6ACA 1623 39BD 9A94 9B1A B746 CA77 FE94 2874 D52F X-Pgp-Public-Key: http://wwwkeys.pgp.net/pks/lookup?op=get&search=0x2874D52F X-Mailer: Mew version 5.2 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Content-Length: 2263 Lines: 67 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 Signed-off-by: Henk Vergonet --- 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%) diff --git a/drivers/input/misc/yealink.c b/drivers/input/misc/yealink.c index facefd3..11b5c7e 100644 --- a/drivers/input/misc/yealink.c +++ b/drivers/input/misc/yealink.c @@ -52,8 +52,8 @@ #include #include #include +#include -#include "map_to_7segment.h" #include "yealink.h" #define DRIVER_VERSION "yld-20051230" diff --git a/include/linux/Kbuild b/include/linux/Kbuild index b68ec09..6e1755f 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild @@ -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 diff --git a/drivers/input/misc/map_to_7segment.h b/include/linux/map_to_7segment.h similarity index 99% rename from drivers/input/misc/map_to_7segment.h rename to include/linux/map_to_7segment.h index a424094..db45f7c 100644 --- a/drivers/input/misc/map_to_7segment.h +++ b/include/linux/map_to_7segment.h @@ -1,6 +1,4 @@ /* - * drivers/usb/input/map_to_7segment.h - * * Copyright (c) 2005 Henk Vergonet * * This program is free software; you can redistribute it and/or -- 1.5.6.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/