Skip to content

Commit 24c11ae

Browse files
committed
fbtft: change debug macro name
FBTFT_WRITE_DATA_COMMAND => FBTFT_WRITE_REGISTER
1 parent f0b0ef4 commit 24c11ae

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

fbtft-bus.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ void func(struct fbtft_par *par, int len, ...) \
2121
int offset = 0; \
2222
type *buf = (type *)par->buf; \
2323
\
24-
if (unlikely(par->debug & DEBUG_WRITE_DATA_COMMAND)) { \
24+
if (unlikely(par->debug & DEBUG_WRITE_REGISTER)) { \
2525
va_start(args, len); \
2626
for (i = 0; i < len; i++) { \
2727
buf[i] = (type)va_arg(args, unsigned int); \
2828
} \
2929
va_end(args); \
30-
fbtft_par_dbg_hex(DEBUG_WRITE_DATA_COMMAND, par, par->info->device, type, buf, len, "%s: ", __func__); \
30+
fbtft_par_dbg_hex(DEBUG_WRITE_REGISTER, par, par->info->device, type, buf, len, "%s: ", __func__); \
3131
} \
3232
\
3333
va_start(args, len); \
@@ -81,12 +81,12 @@ void fbtft_write_reg8_bus9(struct fbtft_par *par, int len, ...)
8181
int pad = 0;
8282
u16 *buf = (u16 *)par->buf;
8383

84-
if (unlikely(par->debug & DEBUG_WRITE_DATA_COMMAND)) {
84+
if (unlikely(par->debug & DEBUG_WRITE_REGISTER)) {
8585
va_start(args, len);
8686
for (i = 0; i < len; i++)
8787
*(((u8 *)buf) + i) = (u8)va_arg(args, unsigned int);
8888
va_end(args);
89-
fbtft_par_dbg_hex(DEBUG_WRITE_DATA_COMMAND, par,
89+
fbtft_par_dbg_hex(DEBUG_WRITE_REGISTER, par,
9090
par->info->device, u8, buf, len, "%s: ", __func__);
9191
}
9292
if (len <= 0)

fbtft.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ module_exit(fbtft_driver_module_exit);
391391
#define DEBUG_READ (1<<18)
392392
#define DEBUG_WRITE (1<<19)
393393
#define DEBUG_WRITE_VMEM (1<<20)
394-
#define DEBUG_WRITE_DATA_COMMAND (1<<21)
394+
#define DEBUG_WRITE_REGISTER (1<<21)
395395
#define DEBUG_SET_ADDR_WIN (1<<22)
396396
#define DEBUG_RESET (1<<23)
397397
#define DEBUG_MKDIRTY (1<<24)

0 commit comments

Comments
 (0)