From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754387AbcLOTp5 (ORCPT ); Thu, 15 Dec 2016 14:45:57 -0500 Received: from mail-wj0-f195.google.com ([209.85.210.195]:33909 "EHLO mail-wj0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752731AbcLOTpz (ORCPT ); Thu, 15 Dec 2016 14:45:55 -0500 From: Corentin Labbe To: willy@haproxy.com, ksenija.stanojevic@gmail.com, arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH] misc: panel: move LCD_MINOR and KEYPAD_MINOR to include/linux/miscdevice.h Date: Thu, 15 Dec 2016 20:43:52 +0100 Message-Id: <20161215194352.9729-1-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.10.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch move the define for LCD_MINOR and KEYPAD_MINOR to include/linux/miscdevice.h. It's better that all minor number definitions are in the same place. Signed-off-by: Corentin Labbe --- drivers/misc/panel.c | 3 --- include/linux/miscdevice.h | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/misc/panel.c b/drivers/misc/panel.c index 6030ac5..b05c3c7 100644 --- a/drivers/misc/panel.c +++ b/drivers/misc/panel.c @@ -61,9 +61,6 @@ #include #include -#define LCD_MINOR 156 -#define KEYPAD_MINOR 185 - #define PANEL_VERSION "0.9.5" #define LCD_MAXBYTES 256 /* max burst write */ diff --git a/include/linux/miscdevice.h b/include/linux/miscdevice.h index b1ba37aef..7efc045 100644 --- a/include/linux/miscdevice.h +++ b/include/linux/miscdevice.h @@ -30,9 +30,11 @@ #define NVRAM_MINOR 144 #define SGI_MMTIMER 153 #define STORE_QUEUE_MINOR 155 /* unused */ +#define LCD_MINOR 156 #define I2O_MINOR 166 #define HWRNG_MINOR 183 #define MICROCODE_MINOR 184 +#define KEYPAD_MINOR 185 #define D7S_MINOR 193 #define VFIO_MINOR 196 #define TUN_MINOR 200 -- 2.10.2