diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-10-30 16:17:37 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-11-01 10:08:38 +0100 |
commit | 23bb859cfcefe5225851b00deaf7b61189b8c06d (patch) | |
tree | 882de86cfbc9eab8e7e6803e28b42f91a84432dc /drivers/gpio | |
parent | 43cbf3f0b718a8c8b0cfc4bb351dde39c6ea9b05 (diff) | |
download | barebox-23bb859cfcefe5225851b00deaf7b61189b8c06d.tar.gz |
include: add dedicated header for printf/printk
Including <stdio.h> for printf is a bit problematic, because it pulls in
other headers for <console.h>, which includes quite a few more headers
as well. To make it easier to share code between barebox and host tools
make <printk.h> the new minimal header for printf and move the extra
logging stuff into <linux/printk.h>.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20211030141739.2207431-3-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-sifive.c | 2 | ||||
-rw-r--r-- | drivers/gpio/gpio-starfive-vic.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-sifive.c b/drivers/gpio/gpio-sifive.c index 63f2c097e4..58ffd87788 100644 --- a/drivers/gpio/gpio-sifive.c +++ b/drivers/gpio/gpio-sifive.c @@ -4,7 +4,7 @@ */ #include <linux/basic_mmio_gpio.h> -#include <printk.h> +#include <linux/printk.h> #include <driver.h> #include <errno.h> diff --git a/drivers/gpio/gpio-starfive-vic.c b/drivers/gpio/gpio-starfive-vic.c index baa4f584d5..4f8c0c6cd7 100644 --- a/drivers/gpio/gpio-starfive-vic.c +++ b/drivers/gpio/gpio-starfive-vic.c @@ -6,7 +6,7 @@ #include <linux/basic_mmio_gpio.h> #include <linux/reset.h> #include <linux/clk.h> -#include <printk.h> +#include <linux/printk.h> #include <driver.h> #include <errno.h> #include <pinctrl.h> |