all: Deprecate UTIL_LISTIFY and replace with LISTIFY
UTIL_LISTIFY is deprecated. Replacing it with LISTIFY. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
9b30b959d5
commit
47ae656cc1
42 changed files with 206 additions and 232 deletions
|
@ -447,10 +447,10 @@ static const struct display_driver_api ili9xxx_api = {
|
|||
DEVICE_DT_DEFINE(INST_DT_ILI9XXX(n, t), ili9xxx_init, \
|
||||
NULL, &ili9xxx_data_##n, \
|
||||
&ili9xxx_config_##n, POST_KERNEL, \
|
||||
CONFIG_DISPLAY_INIT_PRIORITY, &ili9xxx_api);
|
||||
CONFIG_DISPLAY_INIT_PRIORITY, &ili9xxx_api)
|
||||
|
||||
#define DT_INST_FOREACH_ILI9XXX_STATUS_OKAY(t) \
|
||||
UTIL_LISTIFY(DT_NUM_INST_STATUS_OKAY(ilitek_ili##t), ILI9XXX_INIT, t)
|
||||
LISTIFY(DT_NUM_INST_STATUS_OKAY(ilitek_ili##t), ILI9XXX_INIT, (;), t)
|
||||
|
||||
#ifdef CONFIG_ILI9340
|
||||
#include "display_ili9340.h"
|
||||
|
|
|
@ -535,8 +535,8 @@ static struct display_drv_data instance_data = {
|
|||
((DT_GPIO_FLAGS_BY_IDX(node_id, pha, idx) & GPIO_ACTIVE_LOW) ? \
|
||||
ACTIVE_LOW_MASK : 0)),
|
||||
|
||||
#define ADD_FF(i, _) 0xFF,
|
||||
#define FILL_ROW_WITH_FF(node_id, pha, idx) UTIL_LISTIFY(COL_COUNT, ADD_FF)
|
||||
#define ADD_FF(i, _) 0xFF
|
||||
#define FILL_ROW_WITH_FF(node_id, pha, idx) LISTIFY(COL_COUNT, ADD_FF, (,)),
|
||||
#define GET_PIXEL_ORDINAL(node_id, pha, idx) \
|
||||
[GET_DT_ROW_IDX(idx) * COL_COUNT + \
|
||||
GET_DT_COL_IDX(idx)] = idx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue