Ok. I will add it.The TPS65218 chip is a power management IC for Portable Navigation Systems<snip>
and Tablet Computing devices. It contains the following components:
- Regulators.
- Over Temperature warning and Shut down.
This patch adds support for tps65218 mfd device. At this time only
the regulator functionality is made available.
Signed-off-by: Keerthy <j-keerthy@xxxxxx>
---
drivers/mfd/Kconfig | 14 ++
drivers/mfd/Makefile | 1 +
drivers/mfd/tps65218.c | 281 +++++++++++++++++++++++++++++++++++++++++
include/linux/mfd/tps65218.h | 288 ++++++++++++++++++++++++++++++++++++++++++
+config MFD_TPS65218Perhaps you should add a note that only the regulator component is
+ tristate "TI TPS65218 Power Management chips"
+ depends on I2C
+ select MFD_CORE
+ select REGMAP_I2C
+ help
+ If you say yes here you get support for the TPS65218 series of
+ Power Management chips.
+ These include voltage regulators, gpio and other features
+ that are often used in portable devices.
currently supported.
<snip>
new file mode 100644Instead of calling it an MFD driver (is there such a thing?) I think
index 0000000..8c61640
--- /dev/null
+++ b/drivers/mfd/tps65218.c
@@ -0,0 +1,281 @@
+/*
+ * TPS65218 chip family multi-function driver
you should mention its true purpose, as per the datasheet.
<snip>
+static const struct of_device_id of_tps65218_match_table[] = {I think the end comment is superfluous.
+ { .compatible = "ti,tps65218", },
+ { /* end */ }
However, if you _really_ want to put something in there, I dislike
"/* Sentinel */" the least.
+static int tps65218_probe(struct i2c_client *client,<snip>
+ const struct i2c_device_id *ids)
+{
+ ret = of_platform_populate(client->dev.of_node, NULL, NULL,What are you trying to do here?
+ &client->dev);
Register each regulator as a platform device?
<snip>
+static const struct i2c_device_id tps65218_id_table[] = {This has a different structure to of_tps65218_match_table, please
+ {"tps65218", TPS65218},
+};
ensure they're the same. I prefer spaces after '{' and before '}'.
<snip>