device: Fix structure attributes access
Since struct devconfig was merged earlier into struct device, let's fix accessing config_info, name, ... attributes everywhere via: grep -rlZ 'dev->config->' | xargs -0 sed -i 's/dev->config->/dev->/g' Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
8d7bb8ffd8
commit
97326c0445
348 changed files with 1155 additions and 1174 deletions
|
@ -35,7 +35,7 @@ static inline struct i2c_nrfx_twim_data *get_dev_data(struct device *dev)
|
|||
static inline
|
||||
const struct i2c_nrfx_twim_config *get_dev_config(struct device *dev)
|
||||
{
|
||||
return dev->config->config_info;
|
||||
return dev->config_info;
|
||||
}
|
||||
|
||||
static int i2c_nrfx_twim_transfer(struct device *dev, struct i2c_msg *msgs,
|
||||
|
@ -149,7 +149,7 @@ static int init_twim(struct device *dev)
|
|||
dev);
|
||||
if (result != NRFX_SUCCESS) {
|
||||
LOG_ERR("Failed to initialize device: %s",
|
||||
dev->config->name);
|
||||
dev->name);
|
||||
return -EBUSY;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue