diff options
| author | Tom Rini <[email protected]> | 2023-01-10 11:19:28 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-01-20 12:27:06 -0500 |
| commit | a3fda0d30afa5e931520006351752cfb9c0103dd (patch) | |
| tree | fd6901713763ad44a013fc514e3f02f3fa8b6411 /drivers | |
| parent | 8bd3c0a7e17ee17c771cabc0e548a1a436ac021d (diff) | |
global: Remove unused CONFIG defines
Remove some CONFIG symbols and related comments, etc, that are unused
within the code itself at this point.
Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/i2c/soft_i2c.c | 7 | ||||
| -rw-r--r-- | drivers/mtd/ubi/build.c | 6 | ||||
| -rw-r--r-- | drivers/net/eepro100.c | 2 | ||||
| -rw-r--r-- | drivers/net/mvpp2.c | 2 | ||||
| -rw-r--r-- | drivers/video/vidconsole-uclass.c | 5 | ||||
| -rw-r--r-- | drivers/video/videomodes.c | 3 | ||||
| -rw-r--r-- | drivers/video/videomodes.h | 4 |
7 files changed, 1 insertions, 28 deletions
diff --git a/drivers/i2c/soft_i2c.c b/drivers/i2c/soft_i2c.c index c72839eb011..ed8ba47de45 100644 --- a/drivers/i2c/soft_i2c.c +++ b/drivers/i2c/soft_i2c.c @@ -88,13 +88,6 @@ DECLARE_GLOBAL_DATA_PTR; # define I2C_SOFT_DECLARATIONS #endif -#if !defined(CONFIG_SYS_I2C_SOFT_SPEED) -#define CONFIG_SYS_I2C_SOFT_SPEED CONFIG_SYS_I2C_SPEED -#endif -#if !defined(CONFIG_SYS_I2C_SOFT_SLAVE) -#define CONFIG_SYS_I2C_SOFT_SLAVE CONFIG_SYS_I2C_SLAVE -#endif - /*----------------------------------------------------------------------- * Definitions */ diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index e2bd32697ea..3ac0b194028 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c @@ -86,13 +86,7 @@ static bool fm_debug; #endif #else #ifdef CONFIG_MTD_UBI_FASTMAP -#if !defined(CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT) -#define CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT 0 -#endif static bool fm_autoconvert = CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT; -#if !defined(CONFIG_MTD_UBI_FM_DEBUG) -#define CONFIG_MTD_UBI_FM_DEBUG 0 -#endif static bool fm_debug = CONFIG_MTD_UBI_FM_DEBUG; #endif #endif diff --git a/drivers/net/eepro100.c b/drivers/net/eepro100.c index a0424505bde..0a1fe560910 100644 --- a/drivers/net/eepro100.c +++ b/drivers/net/eepro100.c @@ -168,9 +168,7 @@ struct descriptor { /* A generic descriptor. */ unsigned char params[0]; }; -#define CONFIG_SYS_CMD_EL 0x8000 #define CONFIG_SYS_CMD_SUSPEND 0x4000 -#define CONFIG_SYS_CMD_INT 0x2000 #define CONFIG_SYS_CMD_IAS 0x0001 /* individual address setup */ #define CONFIG_SYS_CMD_CONFIGURE 0x0002 /* configure */ diff --git a/drivers/net/mvpp2.c b/drivers/net/mvpp2.c index 8c9afdf79ab..7e1922e1c48 100644 --- a/drivers/net/mvpp2.c +++ b/drivers/net/mvpp2.c @@ -66,8 +66,6 @@ do { \ #define NET_SKB_PAD max(32, MVPP2_CPU_D_CACHE_LINE_SIZE) -#define CONFIG_NR_CPUS 1 - /* 2(HW hdr) 14(MAC hdr) 4(CRC) 32(extra for cache prefetch) */ #define WRAP (2 + ETH_HLEN + 4 + 32) #define MTU 1500 diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c index aadd54bfd4f..72a13d30527 100644 --- a/drivers/video/vidconsole-uclass.c +++ b/drivers/video/vidconsole-uclass.c @@ -19,11 +19,6 @@ #include <video_font.h> /* Bitmap font for code page 437 */ #include <linux/ctype.h> -/* By default we scroll by a single line */ -#ifndef CONFIG_CONSOLE_SCROLL_LINES -#define CONFIG_CONSOLE_SCROLL_LINES 1 -#endif - int vidconsole_putc_xy(struct udevice *dev, uint x, uint y, char ch) { struct vidconsole_ops *ops = vidconsole_get_ops(dev); diff --git a/drivers/video/videomodes.c b/drivers/video/videomodes.c index 69ef736d4c1..35955a5df7d 100644 --- a/drivers/video/videomodes.c +++ b/drivers/video/videomodes.c @@ -7,8 +7,7 @@ /************************************************************************ Get Parameters for the video mode: - The default video mode can be defined in CONFIG_SYS_DEFAULT_VIDEO_MODE. - If undefined, default video mode is set to 0x301 + The default video mode is set to 0x301 Parameters can be set via the variable "videomode" in the environment. 2 diferent ways are possible: "videomode=301" - 301 is a hexadecimal number describing the VESA diff --git a/drivers/video/videomodes.h b/drivers/video/videomodes.h index aefe4ef94ab..405f4e1fc2c 100644 --- a/drivers/video/videomodes.h +++ b/drivers/video/videomodes.h @@ -6,10 +6,6 @@ #include <edid.h> -#ifndef CONFIG_SYS_DEFAULT_VIDEO_MODE -#define CONFIG_SYS_DEFAULT_VIDEO_MODE 0x301 -#endif - /* Some mode definitions */ #define FB_SYNC_HOR_HIGH_ACT 1 /* horizontal sync high active */ #define FB_SYNC_VERT_HIGH_ACT 2 /* vertical sync high active */ |
