i2c: designware: Actually make use of the I2C_DW_COMMON and I2C_DW symbol namespaces
Subsystems (3)
PATCH v2 1/1 i2c: designware: Actually make use of the I2C_DW_COMMON and I2C_DW symbol namespaces
DEFAULT_SYMBOL_NAMESPACE must already be defined when <linux/export.h> is included. So move the define above the include block.
---
Hello,
Changes since (implicit) v1 that is available at
https://lore.kernel.org/linux-i2c/[email protected]:
- Also fix drivers/i2c/busses/i2c-designware-master.c
- Make added line breaks consistent
drivers/i2c/busses/i2c-designware-common.c | 4 ++-- drivers/i2c/busses/i2c-designware-master.c | 5 +++-- drivers/i2c/busses/i2c-designware-slave.c | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-)
drivers/i2c/busses/i2c-designware-common.c +3 -2
@@ -8,6 +8,9 @@* Copyright (C) 2007 MontaVista Software Inc. * Copyright (C) 2009 Provigent Ltd. */ + +#define DEFAULT_SYMBOL_NAMESPACE "I2C_DW_COMMON" +#include <linux/acpi.h> #include <linux/clk.h> #include <linux/delay.h>
@@ -29,8 +31,6 @@#include <linux/types.h> #include <linux/units.h> -#define DEFAULT_SYMBOL_NAMESPACE "I2C_DW_COMMON" -#include "i2c-designware-core.h" static const char *const abort_sources[] = {
drivers/i2c/busses/i2c-designware-master.c +3 -2
@@ -8,6 +8,9 @@* Copyright (C) 2007 MontaVista Software Inc. * Copyright (C) 2009 Provigent Ltd. */ + +#define DEFAULT_SYMBOL_NAMESPACE "I2C_DW" +#include <linux/delay.h> #include <linux/err.h> #include <linux/errno.h>
@@ -22,8 +25,6 @@#include <linux/regmap.h> #include <linux/reset.h> -#define DEFAULT_SYMBOL_NAMESPACE "I2C_DW" -#include "i2c-designware-core.h" #define AMD_TIMEOUT_MIN_US 25
drivers/i2c/busses/i2c-designware-slave.c +3 -2
@@ -6,6 +6,9 @@* * Copyright (C) 2016 Synopsys Inc. */ + +#define DEFAULT_SYMBOL_NAMESPACE "I2C_DW" +#include <linux/delay.h> #include <linux/err.h> #include <linux/errno.h>
@@ -16,8 +18,6 @@#include <linux/pm_runtime.h> #include <linux/regmap.h> -#define DEFAULT_SYMBOL_NAMESPACE "I2C_DW" -#include "i2c-designware-core.h" static void i2c_dw_configure_fifo_slave (struct dw_i2c_dev *dev)
base-commit: fc033cf25e612e840e545f8d5ad2edd6ba613ed5
Signature · 1 line
2.25.1
Quoted 11 lines · Uwe Kleine-König
DEFAULT_SYMBOL_NAMESPACEmust already be defined when <linux/export.h> is included. So move the define above the include block.Fixes fd57a3325a77 ("i2c: designware: Move exports to I2C_DW namespaces")Signed-off-by Uwe Kleine-König <[email protected]>---
Hello,Changes since (implicit) v1 that is available at
https://lore.kernel.org/linux-i2c/[email protected]:
Quoted 8 lines
- Also fix
drivers/i2c/busses/i2c-designware-master.c
- Make added line breaks consistentdrivers/i2c/busses/i2c-designware-common.c | 4 ++-- drivers/i2c/busses/i2c-designware-master.c | 5 +++-- drivers/i2c/busses/i2c-designware-slave.c | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-)
Andi Shyti
maintainerHi Uwe,
Quoted 5 lines · Uwe Kleine-König
DEFAULT_SYMBOL_NAMESPACEmust already be defined when <linux/export.h> is included. So move the define above the include block.Fixes fd57a3325a77 ("i2c: designware: Move exports to I2C_DW namespaces")Signed-off-by Uwe Kleine-König <[email protected]>
Quoted 8 lines
---
Hello,Changes since (implicit) v1 that is available at
https://lore.kernel.org/linux-i2c/[email protected]:- Also fix
drivers/i2c/busses/i2c-designware-master.c
- Make added line breaks consistent
Thanks for this v2. I need to wait for Andy's ack, though, as he had some comments here.
Thanks,
Andi
Quoted 11 lines · Andi Shyti
Hi Uwe,
Quoted 8 lines · Uwe Kleine-König
DEFAULT_SYMBOL_NAMESPACEmust already be defined when <linux/export.h> is included. So move the define above the include block.Fixes fd57a3325a77 ("i2c: designware: Move exports to I2C_DW namespaces")Signed-off-by Uwe Kleine-König <[email protected]>---
Hello,
Quoted 8 lines
Quoted 5 lines
Changes since (implicit) v1 that is available at
https://lore.kernel.org/linux-i2c/[email protected]:- Also fix
drivers/i2c/busses/i2c-designware-master.c
- Make added line breaks consistentThanks for this v2. I need to wait for Andy's ack, though, as he had some comments here.
Documentation fixes already were applied and this one follows it, so fine with me:
Signature · 2 lines
With Best Regards, Andy Shevchenko
Wolfram Sang
AppliedQuoted 5 lines · Uwe Kleine-König
DEFAULT_SYMBOL_NAMESPACEmust already be defined when <linux/export.h> is included. So move the define above the include block.Fixes fd57a3325a77 ("i2c: designware: Move exports to I2C_DW namespaces")Signed-off-by Uwe Kleine-König <[email protected]>
Applied to for-next, thanks!