rtc: Include <linux/kstrtox.h> when appropriate
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 6 Nov 2022 08:00:51 +0000 (09:00 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 15 Nov 2022 20:01:51 +0000 (21:01 +0100)
The kstrto<something>() functions have been moved from kernel.h to
kstrtox.h.

So, include the latter directly in the appropriate files.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/786421fd0435a32206288904a1f879436a717529.1667721637.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-abx80x.c
drivers/rtc/rtc-bq32k.c
drivers/rtc/rtc-ds1307.c
drivers/rtc/rtc-rv3029c2.c
drivers/rtc/rtc-rx8025.c
drivers/rtc/sysfs.c

index e7f325ced940225d3edf24b629626c036497c974..2e0e6432901b844aeb301375d4252c7d8c5e4f66 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <linux/bcd.h>
 #include <linux/i2c.h>
+#include <linux/kstrtox.h>
 #include <linux/module.h>
 #include <linux/of_device.h>
 #include <linux/rtc.h>
index 6d6a55efb9cc7ae6e14d872564f6c36d2ff49049..967ddc6bf76d68697d304c3b511d0f224d8056da 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/i2c.h>
 #include <linux/rtc.h>
 #include <linux/init.h>
+#include <linux/kstrtox.h>
 #include <linux/errno.h>
 #include <linux/bcd.h>
 
index d51565bcc189690a754ba2879cc0b62c058e8bf2..7c2276cf5514a8f04f677d6d5f73dabab1ec31dd 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/bcd.h>
 #include <linux/i2c.h>
 #include <linux/init.h>
+#include <linux/kstrtox.h>
 #include <linux/mod_devicetable.h>
 #include <linux/module.h>
 #include <linux/property.h>
index eb483a30bd92ff1a84f4ce4c8c4e00a2e079003b..e4fdd47ae066c0d5be83086441a430035587b992 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/of.h>
 #include <linux/hwmon.h>
 #include <linux/hwmon-sysfs.h>
+#include <linux/kstrtox.h>
 #include <linux/regmap.h>
 
 /* Register map */
index 77d3cb08b5ec2495da4d70a8f69525352a161fc0..331c20d4d843c1a3aa234c0083763b1151b8eb59 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/bitops.h>
 #include <linux/i2c.h>
 #include <linux/kernel.h>
+#include <linux/kstrtox.h>
 #include <linux/module.h>
 #include <linux/rtc.h>
 
index 00f1945bcb7e17585f03a4b6d9f1c915e9adaf46..e3062c4d3f2ce1fbf2ce70c9cbaa13853fc60b92 100644 (file)
@@ -6,6 +6,7 @@
  * Author: Alessandro Zummo <a.zummo@towertech.it>
  */
 
+#include <linux/kstrtox.h>
 #include <linux/module.h>
 #include <linux/rtc.h>