make leds.h include relevant headers
PATCH 1/1 make leds.h include relevant headers
Here's something I noticed recently when writing a small led trigger... Richard, does this look OK to you? If so, can you send it on? I don't know through what path these things should go in.
Hopefully thunderbird doesn't mangle it...
---
This patch makes it possible to include linux/leds.h without first including list.h and spinlock.h.
Signed-off-by Johannes Berg <[email protected]>
include/linux/leds.h +0 -0
@@ -12,6 +12,9 @@
#ifndef __LINUX_LEDS_H_INCLUDED
#define __LINUX_LEDS_H_INCLUDED
+#include <linux/list.h>
+#include <linux/spinlock.h>
+
struct device;
struct class_device;
/*
Quoted 5 lines · Johannes Berg
This patch makes it possible to include
linux/leds.hwithout first includinglist.handspinlock.h.Signed-off-by Johannes Berg <[email protected]>
Acked-by Richard Purdie <[email protected]>
Quoted 14 lines
include/linux/leds.h +3
-0@@ -12,6 +12,9 @@#ifndef __LINUX_LEDS_H_INCLUDED#define __LINUX_LEDS_H_INCLUDED +#include <linux/list.h> +#include <linux/spinlock.h> +struct device ;struct class_device ;/*