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
|
@ -315,7 +315,7 @@ static int gpio_stm32_enable_int(int port, int pin)
|
|||
|
||||
static int gpio_stm32_port_get_raw(struct device *dev, uint32_t *value)
|
||||
{
|
||||
const struct gpio_stm32_config *cfg = dev->config_info;
|
||||
const struct gpio_stm32_config *cfg = dev->config;
|
||||
GPIO_TypeDef *gpio = (GPIO_TypeDef *)cfg->base;
|
||||
|
||||
*value = LL_GPIO_ReadInputPort(gpio);
|
||||
|
@ -327,7 +327,7 @@ static int gpio_stm32_port_set_masked_raw(struct device *dev,
|
|||
gpio_port_pins_t mask,
|
||||
gpio_port_value_t value)
|
||||
{
|
||||
const struct gpio_stm32_config *cfg = dev->config_info;
|
||||
const struct gpio_stm32_config *cfg = dev->config;
|
||||
GPIO_TypeDef *gpio = (GPIO_TypeDef *)cfg->base;
|
||||
uint32_t port_value;
|
||||
|
||||
|
@ -344,7 +344,7 @@ static int gpio_stm32_port_set_masked_raw(struct device *dev,
|
|||
static int gpio_stm32_port_set_bits_raw(struct device *dev,
|
||||
gpio_port_pins_t pins)
|
||||
{
|
||||
const struct gpio_stm32_config *cfg = dev->config_info;
|
||||
const struct gpio_stm32_config *cfg = dev->config;
|
||||
GPIO_TypeDef *gpio = (GPIO_TypeDef *)cfg->base;
|
||||
|
||||
/*
|
||||
|
@ -359,7 +359,7 @@ static int gpio_stm32_port_set_bits_raw(struct device *dev,
|
|||
static int gpio_stm32_port_clear_bits_raw(struct device *dev,
|
||||
gpio_port_pins_t pins)
|
||||
{
|
||||
const struct gpio_stm32_config *cfg = dev->config_info;
|
||||
const struct gpio_stm32_config *cfg = dev->config;
|
||||
GPIO_TypeDef *gpio = (GPIO_TypeDef *)cfg->base;
|
||||
|
||||
#ifdef CONFIG_SOC_SERIES_STM32F1X
|
||||
|
@ -379,7 +379,7 @@ static int gpio_stm32_port_clear_bits_raw(struct device *dev,
|
|||
static int gpio_stm32_port_toggle_bits(struct device *dev,
|
||||
gpio_port_pins_t pins)
|
||||
{
|
||||
const struct gpio_stm32_config *cfg = dev->config_info;
|
||||
const struct gpio_stm32_config *cfg = dev->config;
|
||||
GPIO_TypeDef *gpio = (GPIO_TypeDef *)cfg->base;
|
||||
|
||||
/*
|
||||
|
@ -399,7 +399,7 @@ static int gpio_stm32_port_toggle_bits(struct device *dev,
|
|||
static int gpio_stm32_config(struct device *dev,
|
||||
gpio_pin_t pin, gpio_flags_t flags)
|
||||
{
|
||||
const struct gpio_stm32_config *cfg = dev->config_info;
|
||||
const struct gpio_stm32_config *cfg = dev->config;
|
||||
int err = 0;
|
||||
int pincfg;
|
||||
|
||||
|
@ -429,7 +429,7 @@ static int gpio_stm32_pin_interrupt_configure(struct device *dev,
|
|||
gpio_pin_t pin, enum gpio_int_mode mode,
|
||||
enum gpio_int_trig trig)
|
||||
{
|
||||
const struct gpio_stm32_config *cfg = dev->config_info;
|
||||
const struct gpio_stm32_config *cfg = dev->config;
|
||||
int edge = 0;
|
||||
int err = 0;
|
||||
|
||||
|
@ -508,7 +508,7 @@ static const struct gpio_driver_api gpio_stm32_driver = {
|
|||
*/
|
||||
static int gpio_stm32_init(struct device *device)
|
||||
{
|
||||
const struct gpio_stm32_config *cfg = device->config_info;
|
||||
const struct gpio_stm32_config *cfg = device->config;
|
||||
|
||||
/* enable clock for subsystem */
|
||||
struct device *clk =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue