@@ -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 * grayscale_table ;
50
+ const uint8_t * grayscale_table ;
51
51
bool color_inversion ;
52
52
uint8_t * conversion_buf ;
53
53
size_t conversion_buf_size ;
@@ -468,7 +468,7 @@ static DEVICE_API(display, ssd1327_driver_api) = {
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
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] = \
471
+ static const uint8_t ssd1327_grayscale_table_##node_id[SSD1327_SET_LUT_COUNT] = \
472
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), \
@@ -499,7 +499,7 @@ static DEVICE_API(display, ssd1327_driver_api) = {
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
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] = \
502
+ static const uint8_t ssd1327_grayscale_table_##node_id[SSD1327_SET_LUT_COUNT] = \
503
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)), \
0 commit comments