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
|
@ -22,7 +22,7 @@
|
|||
#include <uart_imx.h>
|
||||
|
||||
#define DEV_CFG(dev) \
|
||||
((const struct imx_uart_config *const)(dev)->config_info)
|
||||
((const struct imx_uart_config *const)(dev)->config)
|
||||
#define UART_STRUCT(dev) \
|
||||
((UART_Type *)(DEV_CFG(dev))->base)
|
||||
|
||||
|
@ -55,7 +55,7 @@ struct imx_uart_data {
|
|||
static int uart_imx_init(struct device *dev)
|
||||
{
|
||||
UART_Type *uart = UART_STRUCT(dev);
|
||||
const struct imx_uart_config *config = dev->config_info;
|
||||
const struct imx_uart_config *config = dev->config;
|
||||
unsigned int old_level;
|
||||
|
||||
/* disable interrupts */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue