/**
 * @file
 * @description char devices
 */

#ifndef __CHAR_DEVICE_H
#define __CHAR_DEVICE_H

typedef struct chardev {
	int (*putc) (void);
	int (*getc) (int);
} chardev_t;
#if 0
#define MAX_COUNT_CHAR_DEVICES 10
static chardev_t pool_chardev[MAX_COUNT_CHAR_DEVICES];
static int chardev_c = 0;

#define ADD_CHAR_DEVICE(__NAME,__IN,__OUT) \
	int __NAME=0;\
	__NAME=chardev_c; \
	pool_chardev[chardev_c++] = { \
		.getc = __IN; \
		.putc = __OUT;\
	};
#endif
#endif /* __CHAR_DEVICE_H */

/**
 * @file
 * @description char devices
 */

#ifndef __CHAR_DEVICE_H
#define __CHAR_DEVICE_H

typedef struct chardev {
	int (*putc) (void);
	int (*getc) (int);
} chardev_t;

#define MAX_COUNT_CHAR_DEVICES 10
static chardev_t pool_chardev[MAX_COUNT_CHAR_DEVICES];
static int chardev_c = 0;

#define ADD_CHAR_DEVICE(__NAME,__IN,__OUT) \
	int __NAME=0;\
	__NAME=chardev_c; \
	pool_chardev[chardev_c++] = { \
		.getc = __IN; \
		.putc = __OUT;\
	};

#endif /* __CHAR_DEVICE_H */

--- 
+++ 
@@ -10,7 +10,7 @@
 	int (*putc) (void);
 	int (*getc) (int);
 } chardev_t;
-
+#if 0
 #define MAX_COUNT_CHAR_DEVICES 10
 static chardev_t pool_chardev[MAX_COUNT_CHAR_DEVICES];
 static int chardev_c = 0;
@@ -22,5 +22,5 @@
 		.getc = __IN; \
 		.putc = __OUT;\
 	};
-
+#endif
 #endif /* __CHAR_DEVICE_H */
Delete char_dev massive from header