* [PATCH v2] i2c: designware: Actually make use of the I2C_DW_COMMON and I2C_DW symbol namespaces
@ 2024-12-30 15:59 Uwe Kleine-König
2024-12-31 13:48 ` Jarkko Nikula
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2024-12-30 15:59 UTC (permalink / raw)
To: Jarkko Nikula, Andi Shyti
Cc: Andy Shevchenko, Mika Westerberg, Jan Dabros, linux-i2c
DEFAULT_SYMBOL_NAMESPACE must 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 <u.kleine-koenig@baylibre.com>
---
Hello,
Changes since (implicit) v1 that is available at
https://lore.kernel.org/linux-i2c/20241203173640.1648939-2-u.kleine-koenig@baylibre.com:
- 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(-)
diff --git a/drivers/i2c/busses/i2c-designware-common.c b/drivers/i2c/busses/i2c-designware-common.c
index 183a35038eef..8eb7bd640f8d 100644
--- a/drivers/i2c/busses/i2c-designware-common.c
+++ b/drivers/i2c/busses/i2c-designware-common.c
@@ -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[] = {
diff --git a/drivers/i2c/busses/i2c-designware-master.c b/drivers/i2c/busses/i2c-designware-master.c
index c8cbe5b1aeb1..2569bf1a72e0 100644
--- a/drivers/i2c/busses/i2c-designware-master.c
+++ b/drivers/i2c/busses/i2c-designware-master.c
@@ -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
diff --git a/drivers/i2c/busses/i2c-designware-slave.c b/drivers/i2c/busses/i2c-designware-slave.c
index dc2b788eac5b..5cd4a5f7a472 100644
--- a/drivers/i2c/busses/i2c-designware-slave.c
+++ b/drivers/i2c/busses/i2c-designware-slave.c
@@ -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
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2] i2c: designware: Actually make use of the I2C_DW_COMMON and I2C_DW symbol namespaces
2024-12-30 15:59 [PATCH v2] i2c: designware: Actually make use of the I2C_DW_COMMON and I2C_DW symbol namespaces Uwe Kleine-König
@ 2024-12-31 13:48 ` Jarkko Nikula
2025-01-03 23:51 ` Andi Shyti
2025-01-14 13:25 ` Wolfram Sang
2 siblings, 0 replies; 5+ messages in thread
From: Jarkko Nikula @ 2024-12-31 13:48 UTC (permalink / raw)
To: Uwe Kleine-König, Andi Shyti
Cc: Andy Shevchenko, Mika Westerberg, Jan Dabros, linux-i2c
On 12/30/24 5:59 PM, Uwe Kleine-König wrote:
> DEFAULT_SYMBOL_NAMESPACE must 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 <u.kleine-koenig@baylibre.com>
> ---
> Hello,
>
> Changes since (implicit) v1 that is available at
> https://lore.kernel.org/linux-i2c/20241203173640.1648939-2-u.kleine-koenig@baylibre.com:
>
> - 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(-)
>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] i2c: designware: Actually make use of the I2C_DW_COMMON and I2C_DW symbol namespaces
2024-12-30 15:59 [PATCH v2] i2c: designware: Actually make use of the I2C_DW_COMMON and I2C_DW symbol namespaces Uwe Kleine-König
2024-12-31 13:48 ` Jarkko Nikula
@ 2025-01-03 23:51 ` Andi Shyti
2025-01-13 9:43 ` Andy Shevchenko
2025-01-14 13:25 ` Wolfram Sang
2 siblings, 1 reply; 5+ messages in thread
From: Andi Shyti @ 2025-01-03 23:51 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Jarkko Nikula, Andy Shevchenko, Mika Westerberg, Jan Dabros,
linux-i2c
Hi Uwe,
On Mon, Dec 30, 2024 at 04:59:49PM +0100, Uwe Kleine-König wrote:
> DEFAULT_SYMBOL_NAMESPACE must 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 <u.kleine-koenig@baylibre.com>
> ---
> Hello,
>
> Changes since (implicit) v1 that is available at
> https://lore.kernel.org/linux-i2c/20241203173640.1648939-2-u.kleine-koenig@baylibre.com:
>
> - 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] i2c: designware: Actually make use of the I2C_DW_COMMON and I2C_DW symbol namespaces
2025-01-03 23:51 ` Andi Shyti
@ 2025-01-13 9:43 ` Andy Shevchenko
0 siblings, 0 replies; 5+ messages in thread
From: Andy Shevchenko @ 2025-01-13 9:43 UTC (permalink / raw)
To: Andi Shyti
Cc: Uwe Kleine-König, Jarkko Nikula, Mika Westerberg, Jan Dabros,
linux-i2c
On Sat, Jan 04, 2025 at 12:51:57AM +0100, Andi Shyti wrote:
> Hi Uwe,
>
> On Mon, Dec 30, 2024 at 04:59:49PM +0100, Uwe Kleine-König wrote:
> > DEFAULT_SYMBOL_NAMESPACE must 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 <u.kleine-koenig@baylibre.com>
> > ---
> > Hello,
> >
> > Changes since (implicit) v1 that is available at
> > https://lore.kernel.org/linux-i2c/20241203173640.1648939-2-u.kleine-koenig@baylibre.com:
> >
> > - 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.
Documentation fixes already were applied and this one follows it, so fine with
me:
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] i2c: designware: Actually make use of the I2C_DW_COMMON and I2C_DW symbol namespaces
2024-12-30 15:59 [PATCH v2] i2c: designware: Actually make use of the I2C_DW_COMMON and I2C_DW symbol namespaces Uwe Kleine-König
2024-12-31 13:48 ` Jarkko Nikula
2025-01-03 23:51 ` Andi Shyti
@ 2025-01-14 13:25 ` Wolfram Sang
2 siblings, 0 replies; 5+ messages in thread
From: Wolfram Sang @ 2025-01-14 13:25 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Jarkko Nikula, Andi Shyti, Andy Shevchenko, Mika Westerberg,
Jan Dabros, linux-i2c
[-- Attachment #1: Type: text/plain, Size: 385 bytes --]
On Mon, Dec 30, 2024 at 04:59:49PM +0100, Uwe Kleine-König wrote:
> DEFAULT_SYMBOL_NAMESPACE must 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 <u.kleine-koenig@baylibre.com>
Applied to for-next, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-01-14 13:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-30 15:59 [PATCH v2] i2c: designware: Actually make use of the I2C_DW_COMMON and I2C_DW symbol namespaces Uwe Kleine-König
2024-12-31 13:48 ` Jarkko Nikula
2025-01-03 23:51 ` Andi Shyti
2025-01-13 9:43 ` Andy Shevchenko
2025-01-14 13:25 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox