summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-02-27 09:27:59 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-02-27 09:28:01 +0100
commit8eab50e814f3e02c567ae1d732525c01901ef170 (patch)
tree9d7d7b34256e7cbf48e4b6918797b919c0f6f71f /drivers/i2c
parent47f303a8584fea01a269d3f567709e9eee5cd525 (diff)
downloadbarebox-8eab50e814f3e02c567ae1d732525c01901ef170.tar.gz
barebox-8eab50e814f3e02c567ae1d732525c01901ef170.tar.xz
i2c: i.MX: remove unnecesary define
No need for a define which is used only once. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-imx.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
index f5fc65b06e..508ec1d273 100644
--- a/drivers/i2c/busses/i2c-imx.c
+++ b/drivers/i2c/busses/i2c-imx.c
@@ -49,9 +49,6 @@
#include <i2c/i2c.h>
#include <mach/clock.h>
-/* This will be the driver name */
-#define DRIVER_NAME "i2c-fsl"
-
/* Default value */
#define FSL_I2C_BIT_RATE 100000 /* 100kHz */
@@ -724,7 +721,7 @@ static __maybe_unused struct of_device_id imx_i2c_dt_ids[] = {
static struct driver_d i2c_fsl_driver = {
.probe = i2c_fsl_probe,
- .name = DRIVER_NAME,
+ .name = "i2c-fsl",
#ifndef CONFIG_PPC
.of_compatible = DRV_OF_COMPAT(imx_i2c_dt_ids),
#endif