@@ -47,7 +47,7 @@ struct ssd1327_config {
47
47
uint8_t function_selection_b ;
48
48
uint8_t precharge_voltage ;
49
49
uint8_t vcomh_voltage ;
50
- uint8_t * greyscale_table ;
50
+ uint8_t * grayscale_table ;
51
51
bool color_inversion ;
52
52
uint8_t * conversion_buf ;
53
53
size_t conversion_buf_size ;
@@ -120,8 +120,8 @@ static inline int ssd1327_set_timing_setting(const struct device *dev)
120
120
if (err < 0 ) {
121
121
return err ;
122
122
}
123
- if (config -> greyscale_table != NULL ) {
124
- err = config -> write_cmd (dev , SSD1327_SET_LUT , config -> greyscale_table ,
123
+ if (config -> grayscale_table != NULL ) {
124
+ err = config -> write_cmd (dev , SSD1327_SET_LUT , config -> grayscale_table ,
125
125
SSD1327_SET_LUT_COUNT );
126
126
if (err < 0 ) {
127
127
return err ;
@@ -460,16 +460,16 @@ static DEVICE_API(display, ssd1327_driver_api) = {
460
460
#define SSD1327_CONV_BUFFER_SIZE (node_id ) \
461
461
DIV_ROUND_UP(DT_PROP(node_id, width) * CONFIG_SSD1327_CONV_BUFFER_LINES, 2)
462
462
463
- #define SSD1327_GREYSCALE_TABLE (node_id ) \
464
- .greyscale_table = COND_CODE_1(DT_NODE_HAS_PROP(node_id, greyscale_table ), \
465
- (ssd1327_greyscale_table_ ##node_id), (NULL))
463
+ #define SSD1327_GRAYSCALE_TABLE (node_id ) \
464
+ .grayscale_table = COND_CODE_1(DT_NODE_HAS_PROP(node_id, grayscale_table ), \
465
+ (ssd1327_grayscale_table_ ##node_id), (NULL))
466
466
467
467
#define SSD1327_DEFINE_I2C (node_id ) \
468
468
static uint8_t conversion_buf##node_id[SSD1327_CONV_BUFFER_SIZE(node_id)]; \
469
469
static struct ssd1327_data data##node_id; \
470
- COND_CODE_1(DT_NODE_HAS_PROP(node_id, greyscale_table ), ( \
471
- static uint8_t ssd1327_greyscale_table_ ##node_id[SSD1327_SET_LUT_COUNT] = \
472
- DT_PROP(node_id, greyscale_table );), ()) \
470
+ COND_CODE_1(DT_NODE_HAS_PROP(node_id, grayscale_table ), ( \
471
+ static uint8_t ssd1327_grayscale_table_ ##node_id[SSD1327_SET_LUT_COUNT] = \
472
+ DT_PROP(node_id, grayscale_table );), ()) \
473
473
static const struct ssd1327_config config##node_id = { \
474
474
.i2c = I2C_DT_SPEC_GET(node_id), \
475
475
.height = DT_PROP(node_id, height), \
@@ -485,7 +485,7 @@ static DEVICE_API(display, ssd1327_driver_api) = {
485
485
.function_selection_b = DT_PROP(node_id, function_selection_b), \
486
486
.precharge_voltage = DT_PROP(node_id, precharge_voltage), \
487
487
.vcomh_voltage = DT_PROP(node_id, vcomh_voltage), \
488
- SSD1327_GREYSCALE_TABLE (node_id), \
488
+ SSD1327_GRAYSCALE_TABLE (node_id), \
489
489
.write_cmd = ssd1327_write_bus_cmd_i2c, \
490
490
.write_pixels = ssd1327_write_pixels_i2c, \
491
491
.conversion_buf = conversion_buf##node_id, \
@@ -498,9 +498,9 @@ static DEVICE_API(display, ssd1327_driver_api) = {
498
498
#define SSD1327_DEFINE_MIPI (node_id ) \
499
499
static uint8_t conversion_buf##node_id[SSD1327_CONV_BUFFER_SIZE(node_id)]; \
500
500
static struct ssd1327_data data##node_id; \
501
- COND_CODE_1(DT_NODE_HAS_PROP(node_id, greyscale_table ), ( \
502
- static uint8_t ssd1327_greyscale_table_ ##node_id[SSD1327_SET_LUT_COUNT] = \
503
- DT_PROP(node_id, greyscale_table );), ()) \
501
+ COND_CODE_1(DT_NODE_HAS_PROP(node_id, grayscale_table ), ( \
502
+ static uint8_t ssd1327_grayscale_table_ ##node_id[SSD1327_SET_LUT_COUNT] = \
503
+ DT_PROP(node_id, grayscale_table );), ()) \
504
504
static const struct ssd1327_config config##node_id = { \
505
505
.mipi_dev = DEVICE_DT_GET(DT_PARENT(node_id)), \
506
506
.dbi_config = MIPI_DBI_CONFIG_DT( \
@@ -518,7 +518,7 @@ static DEVICE_API(display, ssd1327_driver_api) = {
518
518
.function_selection_b = DT_PROP(node_id, function_selection_b), \
519
519
.precharge_voltage = DT_PROP(node_id, precharge_voltage), \
520
520
.vcomh_voltage = DT_PROP(node_id, vcomh_voltage), \
521
- SSD1327_GREYSCALE_TABLE (node_id), \
521
+ SSD1327_GRAYSCALE_TABLE (node_id), \
522
522
.write_cmd = ssd1327_write_bus_cmd_mipi, \
523
523
.write_pixels = ssd1327_write_pixels_mipi, \
524
524
.conversion_buf = conversion_buf##node_id, \
0 commit comments