dts: Make instance defines consistent
We generated a define for each instance to convey its existance of the form: #define DT_<COMPAT>_<INSTANCE> 1 However we renamed all other instance defines to be of the form DT_INST_<INSTANCE>_<FOO>. To make things consistent we now generate a define of the form: #define DT_INST_<INSTANCE>_<COMPAT> 1 We also now deprecate the DT_<COMPAT>_<INSTANCE> form and fixup all uses to use the new form. Fixes: #17650 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
4620bbf0c8
commit
4e7863dc41
18 changed files with 108 additions and 107 deletions
|
@ -62,7 +62,7 @@ struct ssd16xx_data {
|
|||
u8_t scan_mode;
|
||||
};
|
||||
|
||||
#if defined(DT_GD_GDE0213B1_0)
|
||||
#if defined(DT_INST_0_GD_GDE0213B1)
|
||||
static u8_t ssd16xx_lut_initial[] = {
|
||||
0x22, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x11,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
@ -76,7 +76,7 @@ static u8_t ssd16xx_lut_default[] = {
|
|||
0x0F, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00
|
||||
};
|
||||
#elif defined(DT_GD_GDE029A1_0)
|
||||
#elif defined(DT_INST_0_GD_GDE029A1)
|
||||
static u8_t ssd16xx_lut_initial[] = {
|
||||
0x50, 0xAA, 0x55, 0xAA, 0x11, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
@ -90,7 +90,7 @@ static u8_t ssd16xx_lut_default[] = {
|
|||
0x00, 0x00, 0x00, 0x00, 0x13, 0x14, 0x44, 0x12,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
};
|
||||
#elif defined(DT_HINK_E0154A05_0)
|
||||
#elif defined(DT_INST_0_HINK_E0154A05)
|
||||
static u8_t ssd16xx_lut_initial[] = {
|
||||
0x02, 0x02, 0x01, 0x11, 0x12, 0x12, 0x22, 0x22,
|
||||
0x66, 0x69, 0x69, 0x59, 0x58, 0x99, 0x99, 0x88,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue