All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hw_random: Include device.h instead of declaring struct device
@ 2017-10-26 13:42 PrasannaKumar Muralidharan
  2017-10-30  6:52 ` Herbert Xu
  0 siblings, 1 reply; 4+ messages in thread
From: PrasannaKumar Muralidharan @ 2017-10-26 13:42 UTC (permalink / raw)
  To: herbert, linux-crypto, linux-kernel; +Cc: PrasannaKumar Muralidharan

Include linux/device.h instead of declaring struct device.

Signed-off-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
---
 include/linux/hw_random.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/linux/hw_random.h b/include/linux/hw_random.h
index bee0827..2ec9af7 100644
--- a/include/linux/hw_random.h
+++ b/include/linux/hw_random.h
@@ -13,6 +13,7 @@
 #define LINUX_HWRANDOM_H_
 
 #include <linux/completion.h>
+#include <linux/device.h>
 #include <linux/types.h>
 #include <linux/list.h>
 #include <linux/kref.h>
@@ -51,8 +52,6 @@ struct hwrng {
 	struct completion cleanup_done;
 };
 
-struct device;
-
 /** Register a new Hardware Random Number Generator driver. */
 extern int hwrng_register(struct hwrng *rng);
 extern int devm_hwrng_register(struct device *dev, struct hwrng *rng);
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-10-30 13:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-26 13:42 [PATCH] hw_random: Include device.h instead of declaring struct device PrasannaKumar Muralidharan
2017-10-30  6:52 ` Herbert Xu
2017-10-30 13:00   ` PrasannaKumar Muralidharan
2017-10-30 13:00     ` PrasannaKumar Muralidharan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.