summaryrefslogtreecommitdiffstats
path: root/include/linux/hw_random.h
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-09-11 14:17:31 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-09-12 11:27:19 +0200
commitd1bf87500c264d9503069a2edbddb91aa0b7d65d (patch)
tree2c0e5f3fb741a7876f22945d5d009e86a9e724f7 /include/linux/hw_random.h
parent8b33c73de1c336e0a85a3829982e63a3de0fb01a (diff)
downloadbarebox-d1bf87500c264d9503069a2edbddb91aa0b7d65d.tar.gz
barebox-d1bf87500c264d9503069a2edbddb91aa0b7d65d.tar.xz
lib: random: make linux/hw_random.h header self-contained
struct hwrng defined in the file embeds a struct device, so inclusion of the header defining it is in order. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230911121731.2661717-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux/hw_random.h')
-rw-r--r--include/linux/hw_random.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hw_random.h b/include/linux/hw_random.h
index fad41b6880..9143ba1f8d 100644
--- a/include/linux/hw_random.h
+++ b/include/linux/hw_random.h
@@ -14,6 +14,7 @@
#define LINUX_HWRANDOM_H_
#include <linux/list.h>
+#include <driver.h>
/**
* struct hwrng - Hardware Random Number Generator driver