Delete file hx8357.h.
Use the same device for all TFT LCD drivers. Only one such driver can be configured in the kernel.
This commit is contained in:
@@ -50,7 +50,7 @@ struct cdevsw
|
||||
|
||||
#define UART_MAJOR 6
|
||||
#define UARTUSB_MAJOR 7
|
||||
#define HXTFT_MAJOR 16
|
||||
#define GPANEL_MAJOR 16
|
||||
|
||||
#ifdef KERNEL
|
||||
#ifndef CONS_MINOR
|
||||
|
||||
@@ -119,6 +119,17 @@ void gpanel_text(const struct gpanel_font_t *font, int color, int background, in
|
||||
int gpanel_text_width(const struct gpanel_font_t *font, const char *text, int nchars);
|
||||
|
||||
extern int _gpanel_fd;
|
||||
#endif
|
||||
|
||||
#else /* KERNEL */
|
||||
/*
|
||||
* Kernel driver routines.
|
||||
*/
|
||||
extern int gpanel_open(dev_t dev, int flag, int mode);
|
||||
extern int gpanel_close(dev_t dev, int flag, int mode);
|
||||
extern int gpanel_read(dev_t dev, struct uio *uio, int flag);
|
||||
extern int gpanel_write(dev_t dev, struct uio *uio, int flag);
|
||||
extern int gpanel_ioctl(dev_t dev, u_int cmd, caddr_t addr, int flag);
|
||||
|
||||
#endif /* KERNEL */
|
||||
|
||||
#endif /* _GPANEL_H */
|
||||
|
||||
Reference in New Issue
Block a user