@@ -45,7 +45,7 @@ LOG_MODULE_REGISTER(ssd1363, CONFIG_DISPLAY_LOG_LEVEL);
4545#define SSD1363_WRITE_RAM 0x5C
4646#define SSD1363_READ_RAM 0x5D
4747#define SSD1363_SET_REMAP_VALUE 0xA0
48- #define SSD1363_SET_GREY_ENHANCE 0xB4
48+ #define SSD1363_SET_GRAY_ENHANCE 0xB4
4949
5050#define SSD1363_RESET_DELAY 100
5151
@@ -75,10 +75,10 @@ struct ssd1363_config {
7575 uint8_t precharge_period ;
7676 uint8_t precharge_config ;
7777 uint16_t column_offset ;
78- uint8_t greyscale_table [15 ];
79- bool greyscale_table_present ;
78+ uint8_t grayscale_table [15 ];
79+ bool grayscale_table_present ;
8080 bool color_inversion ;
81- bool greyscale_enhancement ;
81+ bool grayscale_enhancement ;
8282 uint8_t * conversion_buf ;
8383 size_t conversion_buf_size ;
8484};
@@ -156,8 +156,8 @@ static inline int ssd1363_set_hardware_config(const struct device *dev)
156156 if (err < 0 ) {
157157 return err ;
158158 }
159- if (config -> greyscale_table_present ) {
160- err = config -> write_cmd (dev , SSD1363_SET_LUT , config -> greyscale_table , 15 );
159+ if (config -> grayscale_table_present ) {
160+ err = config -> write_cmd (dev , SSD1363_SET_LUT , config -> grayscale_table , 15 );
161161 if (err < 0 ) {
162162 return err ;
163163 }
@@ -178,11 +178,11 @@ static inline int ssd1363_set_hardware_config(const struct device *dev)
178178 if (err < 0 ) {
179179 return err ;
180180 }
181- if (config -> greyscale_enhancement ) {
181+ if (config -> grayscale_enhancement ) {
182182 /* Undocumented values from datasheet */
183183 buf [0 ] = 0x32 ;
184184 buf [1 ] = 0x0c ;
185- err = config -> write_cmd (dev , SSD1363_SET_GREY_ENHANCE , buf , 2 );
185+ err = config -> write_cmd (dev , SSD1363_SET_GRAY_ENHANCE , buf , 2 );
186186 if (err < 0 ) {
187187 return err ;
188188 }
@@ -462,14 +462,14 @@ static DEVICE_API(display, ssd1363_driver_api) = {
462462#define SSD1363_CONV_BUFFER_SIZE (node_id ) \
463463 DIV_ROUND_UP(DT_PROP(node_id, width) * CONFIG_SSD1363_CONV_BUFFER_LINES, 1)
464464
465- #define SSD1363_GREYSCALE_TABLE_YES (node_id ) \
466- .greyscale_table = DT_PROP(node_id, greyscale_table ), .greyscale_table_present = true
465+ #define SSD1363_GRAYSCALE_TABLE_YES (node_id ) \
466+ .grayscale_table = DT_PROP(node_id, grayscale_table ), .grayscale_table_present = true
467467
468- #define SSD1363_GREYSCALE_TABLE_NO (node_id ) .greyscale_table_present = false
468+ #define SSD1363_GRAYSCALE_TABLE_NO (node_id ) .grayscale_table_present = false
469469
470- #define SSD1363_GREYSCALE_TABLE (node_id ) \
471- COND_CODE_1(DT_NODE_HAS_PROP(node_id, greyscale_table ), \
472- (SSD1363_GREYSCALE_TABLE_YES (node_id)), (SSD1363_GREYSCALE_TABLE_NO (node_id)))
470+ #define SSD1363_GRAYSCALE_TABLE (node_id ) \
471+ COND_CODE_1(DT_NODE_HAS_PROP(node_id, grayscale_table ), \
472+ (SSD1363_GRAYSCALE_TABLE_YES (node_id)), (SSD1363_GRAYSCALE_TABLE_NO (node_id)))
473473
474474#define SSD1363_DEFINE_I2C (node_id ) \
475475 static uint8_t conversion_buf##node_id[SSD1363_CONV_BUFFER_SIZE(node_id)]; \
@@ -490,8 +490,8 @@ static DEVICE_API(display, ssd1363_driver_api) = {
490490 .precharge_period = DT_PROP(node_id, precharge_period), \
491491 .precharge_config = DT_PROP(node_id, precharge_config), \
492492 .column_offset = DT_PROP(node_id, column_offset), \
493- .greyscale_enhancement = DT_PROP(node_id, greyscale_enhancement ), \
494- SSD1363_GREYSCALE_TABLE (node_id), \
493+ .grayscale_enhancement = DT_PROP(node_id, grayscale_enhancement ), \
494+ SSD1363_GRAYSCALE_TABLE (node_id), \
495495 .write_cmd = ssd1363_write_bus_cmd_i2c, \
496496 .write_pixels = ssd1363_write_pixels_i2c, \
497497 .conversion_buf = conversion_buf##node_id, \
@@ -522,8 +522,8 @@ static DEVICE_API(display, ssd1363_driver_api) = {
522522 .precharge_period = DT_PROP(node_id, precharge_period), \
523523 .precharge_config = DT_PROP(node_id, precharge_config), \
524524 .column_offset = DT_PROP(node_id, column_offset), \
525- .greyscale_enhancement = DT_PROP(node_id, greyscale_enhancement ), \
526- SSD1363_GREYSCALE_TABLE (node_id), \
525+ .grayscale_enhancement = DT_PROP(node_id, grayscale_enhancement ), \
526+ SSD1363_GRAYSCALE_TABLE (node_id), \
527527 .write_cmd = ssd1363_write_bus_cmd_mipi, \
528528 .write_pixels = ssd1363_write_pixels_mipi, \
529529 .conversion_buf = conversion_buf##node_id, \
0 commit comments