[PATCH] serial: max310x: remove always included kconfig.h

Hugo Villeneuve posted 1 patch 3 days, 9 hours ago
drivers/tty/serial/max310x.c | 1 -
1 file changed, 1 deletion(-)
[PATCH] serial: max310x: remove always included kconfig.h
Posted by Hugo Villeneuve 3 days, 9 hours ago
From: Hugo Villeneuve <hvilleneuve@dimonoff.com>

The inclusion of <linux/kconfig.h> in commit f18643843bc6 ("serial:
max310x: fix compile errors if CONFIG_SPI_MASTER is disabled") is
unneeded as it's guaranteed by the build starting from the commit
2a11c8ea20bf ("kconfig: Introduce IS_ENABLED(), IS_BUILTIN() and
IS_MODULE()"). Remove it here.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
---
 drivers/tty/serial/max310x.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/tty/serial/max310x.c b/drivers/tty/serial/max310x.c
index 41a7bff941c17..9e62778e41913 100644
--- a/drivers/tty/serial/max310x.c
+++ b/drivers/tty/serial/max310x.c
@@ -16,7 +16,6 @@
 #include <linux/device.h>
 #include <linux/gpio/driver.h>
 #include <linux/i2c.h>
-#include <linux/kconfig.h>
 #include <linux/module.h>
 #include <linux/property.h>
 #include <linux/regmap.h>

base-commit: 782f4dbd1794b4f30dc116a7ca42c5962c409be8
-- 
2.47.3
Re: [PATCH] serial: max310x: remove always included kconfig.h
Posted by Andy Shevchenko 3 days, 3 hours ago
On Tue, Jul 21, 2026 at 10:44:17AM -0400, Hugo Villeneuve wrote:

> The inclusion of <linux/kconfig.h> in commit f18643843bc6 ("serial:
> max310x: fix compile errors if CONFIG_SPI_MASTER is disabled") is
> unneeded as it's guaranteed by the build starting from the commit
> 2a11c8ea20bf ("kconfig: Introduce IS_ENABLED(), IS_BUILTIN() and
> IS_MODULE()"). Remove it here.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

-- 
With Best Regards,
Andy Shevchenko