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
|
@ -131,7 +131,7 @@ static int pwm_nrfx_pin_set(struct device *dev, uint32_t pwm,
|
|||
* be removed, see ISSUE #6958.
|
||||
* TODO: Remove this comment when issue has been resolved.
|
||||
*/
|
||||
const struct pwm_nrfx_config *config = dev->config_info;
|
||||
const struct pwm_nrfx_config *config = dev->config;
|
||||
struct pwm_nrfx_data *data = dev->driver_data;
|
||||
uint8_t channel;
|
||||
bool was_stopped;
|
||||
|
@ -267,7 +267,7 @@ static const struct pwm_driver_api pwm_nrfx_drv_api_funcs = {
|
|||
|
||||
static int pwm_nrfx_init(struct device *dev)
|
||||
{
|
||||
const struct pwm_nrfx_config *config = dev->config_info;
|
||||
const struct pwm_nrfx_config *config = dev->config;
|
||||
|
||||
nrfx_err_t result = nrfx_pwm_init(&config->pwm,
|
||||
&config->initial_config,
|
||||
|
@ -285,7 +285,7 @@ static int pwm_nrfx_init(struct device *dev)
|
|||
|
||||
static void pwm_nrfx_uninit(struct device *dev)
|
||||
{
|
||||
const struct pwm_nrfx_config *config = dev->config_info;
|
||||
const struct pwm_nrfx_config *config = dev->config;
|
||||
|
||||
nrfx_pwm_uninit(&config->pwm);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue