From abbdd11ac3ce01a56b93bec8b9ba00d81153f7b5 Mon Sep 17 00:00:00 2001 From: Mark Hounschell Date: Tue, 11 Mar 2014 10:02:18 -0400 Subject: [PATCH] staging: dgap: remove some unused defines in dgap.h This patch removes some unused defines in dgap.h Signed-off-by: Mark Hounschell Signed-off-by: Greg Kroah-Hartman --- drivers/staging/dgap/dgap.h | 53 ++----------------------------------- 1 file changed, 2 insertions(+), 51 deletions(-) diff --git a/drivers/staging/dgap/dgap.h b/drivers/staging/dgap/dgap.h index faa9b13c7d30..415d81663d2f 100644 --- a/drivers/staging/dgap/dgap.h +++ b/drivers/staging/dgap/dgap.h @@ -46,34 +46,6 @@ typedef unsigned char uchar; # define TTY_FLIPBUF_SIZE 512 #endif -/* Sparse stuff */ -# ifndef __user -# define __user -# define __kernel -# define __safe -# define __force -# define __chk_user_ptr(x) (void)0 -# endif - - -# define PARM_STR(VAR, INIT, PERM, DESC) \ - static char *VAR = INIT; \ - char *dgap_##VAR; \ - module_param(VAR, charp, PERM); \ - MODULE_PARM_DESC(VAR, DESC); - -# define PARM_INT(VAR, INIT, PERM, DESC) \ - static int VAR = INIT; \ - int dgap_##VAR; \ - module_param(VAR, int, PERM); \ - MODULE_PARM_DESC(VAR, DESC); - -# define PARM_ULONG(VAR, INIT, PERM, DESC) \ - static ulong VAR = INIT; \ - ulong dgap_##VAR; \ - module_param(VAR, long, PERM); \ - MODULE_PARM_DESC(VAR, DESC); - /************************************************************************* * * Driver defines @@ -81,27 +53,11 @@ typedef unsigned char uchar; *************************************************************************/ /* - * Driver identification, error and debugging statments - * - * In theory, you can change all occurrences of "digi" in the next - * three lines, and the driver printk's will all automagically change. - * - * APR((fmt, args, ...)); Always prints message - * DPR((fmt, args, ...)); Only prints if DGAP_TRACER is defined at - * compile time and dgap_debug!=0 + * Driver identification */ #define DG_NAME "dgap-1.3-16" #define DG_PART "40002347_C" - -#define PROCSTR "dgap" /* /proc entries */ -#define DEVSTR "/dev/dg/dgap" /* /dev entries */ -#define DRVSTR "dgap" /* Driver name string - * displayed by APR */ -#define APR(args) do { PRINTF_TO_KMEM(args); printk(DRVSTR": "); printk args; \ - } while (0) -#define RAPR(args) do { PRINTF_TO_KMEM(args); printk args; } while (0) - -#define TRC_TO_CONSOLE 1 +#define DRVSTR "dgap" /* * defines from dgap_pci.h @@ -756,11 +712,6 @@ struct un_t { *** Definitions for Digi ditty(1) command. ************************************************************************/ - -/* - * Copyright (c) 1988-96 Digi International Inc., All Rights Reserved. - */ - /************************************************************************ * This module provides application access to special Digi * serial line enhancements which are not standard UNIX(tm) features. -- 2.39.5