Skip to content

Commit

Permalink
i2c: designware: Actually make use of the I2C_DW_COMMON and I2C_DW sy…
Browse files Browse the repository at this point in the history
…mbol 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 <u.kleine-koenig@baylibre.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
  • Loading branch information
Uwe Kleine-König authored and Wolfram Sang committed Jan 14, 2025
1 parent d06905d commit f0a4e9f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions drivers/i2c/busses/i2c-designware-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -29,8 +32,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[] = {
Expand Down
5 changes: 3 additions & 2 deletions drivers/i2c/busses/i2c-designware-master.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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
Expand Down
5 changes: 3 additions & 2 deletions drivers/i2c/busses/i2c-designware-slave.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -16,8 +19,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)
Expand Down

0 comments on commit f0a4e9f

Please sign in to comment.