Skip to content

Commit 2a43a94

Browse files
committed
drivers: display: hx8394: add missing static qualifiers to local arrays
Updated multiple configuration arrays from 'const' to 'static const' Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 8031f33 commit 2a43a94

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

drivers/display/display_hx8394.c

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -106,19 +106,19 @@ struct hx8394_config {
106106
#define HX8394_EXTC3_MAGIC 0x94
107107

108108

109-
const uint8_t enable_extension[] = {
109+
static const uint8_t enable_extension[] = {
110110
HX8394_SETEXTC,
111111
HX8394_EXTC1_MAGIC,
112112
HX8394_EXTC2_MAGIC,
113113
HX8394_EXTC3_MAGIC,
114114
};
115115

116-
const uint8_t address_config[] = {
116+
static const uint8_t address_config[] = {
117117
HX8394_SET_ADDRESS,
118118
HX8394_FLIP_HORIZONTAL
119119
};
120120

121-
const uint8_t power_config[] = {
121+
static const uint8_t power_config[] = {
122122
HX8394_SETPOWER,
123123
(HX8394_POWER_HX5186 | HX8394_POWER_AP_1_0UA),
124124
HX8394_POWER_VRHP_4_8V,
@@ -134,7 +134,7 @@ const uint8_t power_config[] = {
134134
HX8394_POWER_VGLS_12_4V
135135
};
136136

137-
const uint8_t line_config[] = {
137+
static const uint8_t line_config[] = {
138138
HX8394_SETDISP,
139139
HX8394_DISP_COL_INV,
140140
HX8394_DISP_MESSI_ENB,
@@ -144,7 +144,7 @@ const uint8_t line_config[] = {
144144
HX8394_DISP_RTN_144
145145
};
146146

147-
const uint8_t cycle_config[] = {
147+
static const uint8_t cycle_config[] = {
148148
HX8394_SETCYC,
149149
0x73, /* SPON delay */
150150
0x74, /* SPOFF delay */
@@ -169,7 +169,7 @@ const uint8_t cycle_config[] = {
169169
0x86 /* SOFF_MPU time */
170170
};
171171

172-
const uint8_t gip0_config[] = {
172+
static const uint8_t gip0_config[] = {
173173
HX8394_SETGIP0,
174174
(HX8394_GIP0_EQ_OPT_BOTH | HX8394_GIP0_EQ_HSYNC_NORMAL),
175175
HX8394_GIP0_EQ_VSEL_VSSA,
@@ -210,7 +210,7 @@ const uint8_t gip0_config[] = {
210210
0x40
211211
};
212212

213-
const uint8_t gip1_config[] = {
213+
static const uint8_t gip1_config[] = {
214214
HX8394_SETGIP1,
215215
/* Select output clock sources
216216
* See COSn_L/COSn_R values in datasheet
@@ -261,7 +261,7 @@ const uint8_t gip1_config[] = {
261261
0x18 /* COS22_R */
262262
};
263263

264-
const uint8_t gip2_config[] = {
264+
static const uint8_t gip2_config[] = {
265265
HX8394_SETGIP2,
266266
/* Select output clock sources for GS mode.
267267
* See COSn_L_GS/COSn_R_GS values in datasheet
@@ -312,13 +312,13 @@ const uint8_t gip2_config[] = {
312312
0x18 /* COS22_R_GS */
313313
};
314314

315-
const uint8_t vcom_config[] = {
315+
static const uint8_t vcom_config[] = {
316316
HX8394_SETVCOM,
317317
HX8394_VCMC_F_1_76V,
318318
HX8394_VCMC_B_1_76V
319319
};
320320

321-
const uint8_t gamma_config[] = {
321+
static const uint8_t gamma_config[] = {
322322
HX8394_SETGAMMA,
323323
0x00, /* VHP0 */
324324
0x0A, /* VHP1 */
@@ -380,31 +380,31 @@ const uint8_t gamma_config[] = {
380380
0x7F /* VLN7 */
381381
};
382382

383-
const uint8_t hx8394_cmd1[] = {0xC0U, 0x1FU, 0x31U};
383+
static const uint8_t hx8394_cmd1[] = {0xC0U, 0x1FU, 0x31U};
384384

385-
const uint8_t panel_config[] = {
385+
static const uint8_t panel_config[] = {
386386
HX8394_SETPANEL,
387387
(HX8394_COLOR_BGR | HX8394_REV_PANEL)
388388
};
389389

390-
const uint8_t hx8394_cmd2[] = {0xD4, 0x2};
390+
static const uint8_t hx8394_cmd2[] = {0xD4, 0x2};
391391

392-
const uint8_t hx8394_bank2[] = {
392+
static const uint8_t hx8394_bank2[] = {
393393
0xD8U, 0xFFU, 0xFFU, 0xFFU, 0xFFU, 0xFFU,
394394
0xFFU, 0xFFU, 0xFFU, 0xFFU, 0xFFU, 0xFFU,
395395
0xFFU
396396
};
397397

398-
const uint8_t hx8394_bank1[] = {0xB1U, 0x00U};
398+
static const uint8_t hx8394_bank1[] = {0xB1U, 0x00U};
399399

400-
const uint8_t hx8394_bank0[] = {
400+
static const uint8_t hx8394_bank0[] = {
401401
0xBFU, 0x40U, 0x81U, 0x50U,
402402
0x00U, 0x1AU, 0xFCU, 0x01
403403
};
404404

405-
const uint8_t hx8394_cmd3[] = {0xC6U, 0xEDU};
405+
static const uint8_t hx8394_cmd3[] = {0xC6U, 0xEDU};
406406

407-
const uint8_t tear_config[] = {HX8394_SET_TEAR, HX8394_TEAR_VBLANK};
407+
static const uint8_t tear_config[] = {HX8394_SET_TEAR, HX8394_TEAR_VBLANK};
408408

409409
static ssize_t hx8394_mipi_tx(const struct device *mipi_dev, uint8_t channel,
410410
const void *buf, size_t len)

0 commit comments

Comments
 (0)