Merge tag 'staging-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh...
[linux-2.6-microblaze.git] / drivers / staging / fbtft / fbtft-core.c
index 4a35347..9c4d797 100644 (file)
@@ -49,7 +49,7 @@ int fbtft_write_buf_dc(struct fbtft_par *par, void *buf, size_t len, int dc)
 EXPORT_SYMBOL(fbtft_write_buf_dc);
 
 void fbtft_dbg_hex(const struct device *dev, int groupsize,
-                  void *buf, size_t len, const char *fmt, ...)
+                  const void *buf, size_t len, const char *fmt, ...)
 {
        va_list args;
        static char textbuf[512];
@@ -1035,10 +1035,9 @@ int fbtft_init_display(struct fbtft_par *par)
                        for (j = 0; par->init_sequence[i + 1 + j] >= 0; j++)
                                ;
 
-                       fbtft_par_dbg(DEBUG_INIT_DISPLAY, par,
-                                     "init: write(0x%02X) %*ph\n",
-                                     par->init_sequence[i], j,
-                                     &par->init_sequence[i + 1]);
+                       fbtft_par_dbg_hex(DEBUG_INIT_DISPLAY, par, par->info->device,
+                                         s16, &par->init_sequence[i + 1], j,
+                                         "init: write(0x%02X)", par->init_sequence[i]);
 
                        /* Write */
                        j = 0;