@@ -99,10 +99,10 @@ typedef struct {
99
99
typedef void (* init_func_t )(const struct device * dev );
100
100
#define DEV_CFG (dev ) ((const struct i2c_omap_cfg *)(dev)->config)
101
101
#define DEV_DATA (dev ) ((struct i2c_omap_data *)(dev)->data)
102
- #define DEV_I2C_BASE (dev ) ((i2c_omap_regs_t *)DEVICE_MMIO_NAMED_GET (dev, base ))
102
+ #define DEV_I2C_BASE (dev ) ((i2c_omap_regs_t *)DEVICE_MMIO_GET (dev))
103
103
104
104
struct i2c_omap_cfg {
105
- DEVICE_MMIO_NAMED_ROM ( base ) ;
105
+ DEVICE_MMIO_ROM ;
106
106
uint32_t irq ;
107
107
uint32_t speed ;
108
108
const struct pinctrl_dev_config * pcfg ;
@@ -121,7 +121,7 @@ struct i2c_omap_speed_config {
121
121
};
122
122
123
123
struct i2c_omap_data {
124
- DEVICE_MMIO_NAMED_RAM ( base ) ;
124
+ DEVICE_MMIO_RAM ;
125
125
enum i2c_omap_speed speed ;
126
126
struct i2c_omap_speed_config speed_config ;
127
127
struct i2c_msg current_msg ;
@@ -704,7 +704,7 @@ static int i2c_omap_init(const struct device *dev)
704
704
PINCTRL_DT_INST_DEFINE(inst); \
705
705
LOG_INSTANCE_REGISTER(omap_i2c, inst, CONFIG_I2C_LOG_LEVEL); \
706
706
static const struct i2c_omap_cfg i2c_omap_cfg_##inst = { \
707
- DEVICE_MMIO_NAMED_ROM_INIT(base, DT_DRV_INST(inst)), \
707
+ DEVICE_MMIO_ROM_INIT( DT_DRV_INST(inst)), \
708
708
.irq = DT_INST_IRQN(inst), \
709
709
.speed = DT_INST_PROP(inst, clock_frequency), \
710
710
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(inst), \
0 commit comments