]> git.sur5r.net Git - u-boot/blobdiff - board/esd/common/lcd.h
i.MX6: mx6qsabrelite: indent with tabs
[u-boot] / board / esd / common / lcd.h
index 3169e6bb5c7fbab42d7700cd915fda80aa7620a8..01f6019bb2d806d617af7177b4cb430528d816fc 100644 (file)
 #define TRUE (!FALSE)
 #endif
 
-#define S1D_WRITE_PALETTE(p,i,r,g,b)  \
-  {  \
-  ((volatile uchar*)(p))[palette_index] = (uchar)(i); \
-  ((volatile uchar*)(p))[palette_value] = (uchar)(r); \
-  ((volatile uchar*)(p))[palette_value] = (uchar)(g); \
-  ((volatile uchar*)(p))[palette_value] = (uchar)(b); \
-  }
+#define S1D_WRITE_PALETTE(p,i,r,g,b)                                   \
+       {                                                               \
+               out_8(&((uchar*)(p))[palette_index], (uchar)(i));       \
+               out_8(&((uchar*)(p))[palette_index], (uchar)(r));       \
+               out_8(&((uchar*)(p))[palette_index], (uchar)(g));       \
+               out_8(&((uchar*)(p))[palette_index], (uchar)(b));       \
+       }
 
 typedef struct
 {