Skip to content

Commit f0a4e9f

Browse files
ukleinekWolfram Sang
authored andcommitted
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. Fixes: fd57a33 ("i2c: designware: Move exports to I2C_DW namespaces") Signed-off-by: Uwe Kleine-König <[email protected]> Acked-by: Jarkko Nikula <[email protected]> Acked-by: Andy Shevchenko <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent d06905d commit f0a4e9f

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

drivers/i2c/busses/i2c-designware-common.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
* Copyright (C) 2007 MontaVista Software Inc.
99
* Copyright (C) 2009 Provigent Ltd.
1010
*/
11+
12+
#define DEFAULT_SYMBOL_NAMESPACE "I2C_DW_COMMON"
13+
1114
#include <linux/acpi.h>
1215
#include <linux/clk.h>
1316
#include <linux/delay.h>
@@ -29,8 +32,6 @@
2932
#include <linux/types.h>
3033
#include <linux/units.h>
3134

32-
#define DEFAULT_SYMBOL_NAMESPACE "I2C_DW_COMMON"
33-
3435
#include "i2c-designware-core.h"
3536

3637
static const char *const abort_sources[] = {

drivers/i2c/busses/i2c-designware-master.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
* Copyright (C) 2007 MontaVista Software Inc.
99
* Copyright (C) 2009 Provigent Ltd.
1010
*/
11+
12+
#define DEFAULT_SYMBOL_NAMESPACE "I2C_DW"
13+
1114
#include <linux/delay.h>
1215
#include <linux/err.h>
1316
#include <linux/errno.h>
@@ -22,8 +25,6 @@
2225
#include <linux/regmap.h>
2326
#include <linux/reset.h>
2427

25-
#define DEFAULT_SYMBOL_NAMESPACE "I2C_DW"
26-
2728
#include "i2c-designware-core.h"
2829

2930
#define AMD_TIMEOUT_MIN_US 25

drivers/i2c/busses/i2c-designware-slave.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
*
77
* Copyright (C) 2016 Synopsys Inc.
88
*/
9+
10+
#define DEFAULT_SYMBOL_NAMESPACE "I2C_DW"
11+
912
#include <linux/delay.h>
1013
#include <linux/err.h>
1114
#include <linux/errno.h>
@@ -16,8 +19,6 @@
1619
#include <linux/pm_runtime.h>
1720
#include <linux/regmap.h>
1821

19-
#define DEFAULT_SYMBOL_NAMESPACE "I2C_DW"
20-
2122
#include "i2c-designware-core.h"
2223

2324
static void i2c_dw_configure_fifo_slave(struct dw_i2c_dev *dev)

0 commit comments

Comments
 (0)