Skip to contentSkip to conversation

mfd: max8997: Replace 8998 with 8997

PATCH Applied Timon Baetz 2 participants 3 messages Jan 27, 2021 – Apr 7, 2021 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mfd: max8997: Replace 8998 with 8997

The max8997 header is using "max8998" in some identifiers. Fix it by replacing 8998 with 8997 in enum and macro.

---
v2: Fix commit message.

 include/linux/mfd/max8997.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
include/linux/mfd/max8997.h +4 -4
index e955e2f0a2cc..6c98edcf4b0b 100644
@@ -14,13 +14,13 @@
  * others and b) it can be enabled simply by using MAX17042 driver.
  */
 
-#ifndef __LINUX_MFD_MAX8998_H
-#define __LINUX_MFD_MAX8998_H
+#ifndef __LINUX_MFD_MAX8997_H
+#define __LINUX_MFD_MAX8997_H
 
 #include <linux/regulator/consumer.h>
 
 /* MAX8997/8966 regulator IDs */
-enum max8998_regulators {
+enum max8997_regulators {
 	MAX8997_LDO1 = 0,
 	MAX8997_LDO2,
 	MAX8997_LDO3,
@@ -207,4 +207,4 @@ struct max8997_platform_data {
 	struct max8997_led_platform_data *led_pdata;
 };
 
-#endif /* __LINUX_MFD_MAX8998_H */
+#endif /* __LINUX_MFD_MAX8997_H */
Signature · 1 line
2.25.1
#1 lore raw
Quoted 32 lines · Timon Baetz

The max8997 header is using "max8998" in some identifiers. Fix it by replacing 8998 with 8997 in enum and macro.

---
v2: Fix commit message.

 include/linux/mfd/max8997.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
include/linux/mfd/max8997.h +3 -3
index e955e2f0a2cc..6c98edcf4b0b 100644
@@ -14,13 +14,13 @@
  * others and b) it can be enabled simply by using MAX17042 driver.
  */
 
-#ifndef __LINUX_MFD_MAX8998_H
-#define __LINUX_MFD_MAX8998_H
+#ifndef __LINUX_MFD_MAX8997_H
+#define __LINUX_MFD_MAX8997_H
 
 #include <linux/regulator/consumer.h>
 
 /* MAX8997/8966 regulator IDs */
-enum max8998_regulators {
+enum max8997_regulators {
 	MAX8997_LDO1 = 0,
 	MAX8997_LDO2,
 	MAX8997_LDO3,

include/linux/mfd/max8997.h struct max8997_platform_data { · line 210

Quoted 5 lines
include/linux/mfd/max8997.h +1 -1
@@ -207,4 +207,4 @@ struct max8997_platform_data {
 	struct max8997_led_platform_data *led_pdata;
 };
 
-#endif /* __LINUX_MFD_MAX8998_H */
+#endif /* __LINUX_MFD_MAX8997_H */

Hi, is there an issues with this patch?

Applied
#2 lore raw
In reply to Timon Baetz
Quoted 9 lines · Timon Baetz

The max8997 header is using "max8998" in some identifiers. Fix it by replacing 8998 with 8997 in enum and macro.

---
v2: Fix commit message.

 include/linux/mfd/max8997.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Applied, thanks.

Signature · 4 lines
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog