Skip to contentSkip to conversation

make leds.h include relevant headers

PATCH In review Johannes Berg 2 participants 2 messages Aug 11, 2006 LED

lore
Share & tools
lore
#0 lore raw

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.

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;
/*

Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Johannes Berg

This patch makes it possible to include linux/leds.h without first including list.h and spinlock.h.

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;
 /*