Skip to contentSkip to conversation

mfd: simple-mfd-i2c: a couple of cleanups

PATCH Applied Andy Shevchenko 2 participants 4 messages Nov 11, 2025 – Nov 19, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover mfd: simple-mfd-i2c: a couple of cleanups

Here is just a couple of ad-hoc cleanups. No behaviour changes.

Andy Shevchenko (2):
mfd: simple-mfd-i2c: Make ID table style consistent
mfd: simple-mfd-i2c: don't use "proxy" headers

 drivers/mfd/simple-mfd-i2c.c | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)
Signature · 1 line
2.50.1
#1 lore raw

PATCH 1/2 mfd: simple-mfd-i2c: Make ID table style consistent

The lines in the OF ID table are written in three different styles. Choose the most common in the kernel and update accordingly.

---
 drivers/mfd/simple-mfd-i2c.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/mfd/simple-mfd-i2c.c +5 -5
index 0a607a1e3ca1..5fd0ef3fa44a 100644
@@ -114,11 +114,11 @@ static const struct of_device_id simple_mfd_i2c_of_match[] = {
 	{ .compatible = "fsl,lx2160aqds-fpga" },
 	{ .compatible = "fsl,lx2160ardb-fpga" },
 	{ .compatible = "kontron,sl28cpld" },
-	{ .compatible = "maxim,max5970", .data = &maxim_max5970},
-	{ .compatible = "maxim,max5978", .data = &maxim_max5970},
-	{ .compatible = "maxim,max77705-battery", .data = &maxim_mon_max77705},
-	{ .compatible = "silergy,sy7636a", .data = &silergy_sy7636a},
-	{ .compatible = "spacemit,p1", .data = &spacemit_p1, },
+	{ .compatible = "maxim,max5970", .data = &maxim_max5970 },
+	{ .compatible = "maxim,max5978", .data = &maxim_max5970 },
+	{ .compatible = "maxim,max77705-battery", .data = &maxim_mon_max77705 },
+	{ .compatible = "silergy,sy7636a", .data = &silergy_sy7636a },
+	{ .compatible = "spacemit,p1", .data = &spacemit_p1 },
 	{}
 };
 MODULE_DEVICE_TABLE(of, simple_mfd_i2c_of_match);
Signature · 1 line
2.50.1
#2 lore raw

PATCH 2/2 mfd: simple-mfd-i2c: don't use "proxy" headers

In reply to Andy Shevchenko

Update header inclusions to follow IWYU (Include What You Use) principle.

---
 drivers/mfd/simple-mfd-i2c.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/mfd/simple-mfd-i2c.c +7 -1
index 5fd0ef3fa44a..8b751d8e3b5a 100644
@@ -15,12 +15,18 @@
  * will be subsequently registered.
  */
 
+#include <linux/array_size.h>
+#include <linux/dev_printk.h>
+#include <linux/err.h>
 #include <linux/i2c.h>
-#include <linux/kernel.h>
 #include <linux/mfd/core.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
 #include <linux/of_platform.h>
+#include <linux/platform_device.h>
+#include <linux/property.h>
 #include <linux/regmap.h>
+#include <linux/stddef.h>
 
 #include "simple-mfd-i2c.h"
 
Signature · 1 line
2.50.1
maintainer Applied
#3 lore raw
In reply to Andy Shevchenko
Quoted 10 lines · Andy Shevchenko

Here is just a couple of ad-hoc cleanups. No behaviour changes.

Andy Shevchenko (2):
mfd: simple-mfd-i2c: Make ID table style consistent
mfd: simple-mfd-i2c: don't use "proxy" headers

drivers/mfd/simple-mfd-i2c.c | 18 ++++++++++++------

 1 file changed, 12 insertions(+), 6 deletions(-)

[...]

Applied, thanks!

[1/2] mfd: simple-mfd-i2c: Make ID table style consistent

      commit: 81d2cc9272df8c01e36a963dd8b23ca585b68032
[2/2] mfd: simple-mfd-i2c: don't use "proxy" headers
      commit: 46bddb5fbe7e3cb73204a952dbd4687cf0974ef5

--
Lee Jones [李琼斯]