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
|
@ -100,7 +100,7 @@ static int pwm_nrf5_sw_pin_set(struct device *dev, uint32_t pwm,
|
|||
uint16_t div;
|
||||
uint32_t ret;
|
||||
|
||||
config = (const struct pwm_config *)dev->config_info;
|
||||
config = (const struct pwm_config *)dev->config;
|
||||
timer = config->timer;
|
||||
data = dev->driver_data;
|
||||
|
||||
|
@ -218,7 +218,7 @@ static int pwm_nrf5_sw_get_cycles_per_sec(struct device *dev, uint32_t pwm,
|
|||
{
|
||||
const struct pwm_config *config;
|
||||
|
||||
config = (const struct pwm_config *)dev->config_info;
|
||||
config = (const struct pwm_config *)dev->config;
|
||||
|
||||
/* HF timer frequency is derived from 16MHz source with a prescaler */
|
||||
*cycles = 16000000UL / BIT(config->prescaler);
|
||||
|
@ -236,7 +236,7 @@ static int pwm_nrf5_sw_init(struct device *dev)
|
|||
const struct pwm_config *config;
|
||||
NRF_TIMER_Type *timer;
|
||||
|
||||
config = (const struct pwm_config *)dev->config_info;
|
||||
config = (const struct pwm_config *)dev->config;
|
||||
timer = config->timer;
|
||||
|
||||
/* setup HF timer */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue