device: Apply config_info rename everywhere
Via coccinelle: @r_device_config@ struct device *D; @@ D-> - config_info + config And 2 grep/sed rules for macros: git grep -rlz 'dev)->config_info' | xargs -0 sed -i 's/dev)->config_info/dev)->config/g' git grep -rlz 'dev->config_info' | xargs -0 sed -i 's/dev->config_info/dev->config/g' Fixes #27397 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
a46b4a9921
commit
af6140cc0d
324 changed files with 1048 additions and 1071 deletions
|
@ -956,7 +956,7 @@ static int dwt_configure(struct device *dev, enum ieee802154_config_type type,
|
|||
static int dwt_hw_reset(struct device *dev)
|
||||
{
|
||||
struct dwt_context *ctx = dev->driver_data;
|
||||
const struct dwt_hi_cfg *hi_cfg = dev->config_info;
|
||||
const struct dwt_hi_cfg *hi_cfg = dev->config;
|
||||
|
||||
if (gpio_pin_configure(ctx->rst_gpio, hi_cfg->rst_pin,
|
||||
GPIO_OUTPUT_ACTIVE | hi_cfg->rst_flags)) {
|
||||
|
@ -1490,7 +1490,7 @@ static int dwt_configure_rf_phy(struct dwt_context *ctx)
|
|||
static int dw1000_init(struct device *dev)
|
||||
{
|
||||
struct dwt_context *ctx = dev->driver_data;
|
||||
const struct dwt_hi_cfg *hi_cfg = dev->config_info;
|
||||
const struct dwt_hi_cfg *hi_cfg = dev->config;
|
||||
|
||||
LOG_INF("Initialize DW1000 Transceiver");
|
||||
k_sem_init(&ctx->phy_sem, 0, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue