All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 4/5] Documentation/firmware/... convert #include
@ 2007-08-19 22:19 ` Joe Perches
  0 siblings, 0 replies; 10+ messages in thread
From: Joe Perches @ 2007-08-19 22:19 UTC (permalink / raw)
  To: kernel-janitors, linux-kernel; +Cc: Greg Kroah-Hartman, Markus Rechberger

(untested)

There are several files that 
#include "linux/file" not #include <linux/file>
#include "asm/file" not #include <asm/file>

Here's a little script that converts them:

egrep -i -r -l --include=*.[ch] \
"^[[:space:]]*\#[[:space:]]*include[[:space:]]*\"(linux|asm)/(.*)\"" * \
| xargs sed -i -e 's/^[[:space:]]*#[[:space:]]*include[[:space:]]*"\(linux\|asm\)\/\(.*\)"/#include <\1\/\2>/g'

This one is probably wrong.

It should likely keep firmware.h in
the same directory as firmware.c

Signed-off-by: Joe Perches <joe@perches.com>

diff --git a/Documentation/firmware_class/firmware_sample_driver.c b/Documentation/firmware_class/firmware_sample_driver.c
index 6865cbe..754ded2 100644
--- a/Documentation/firmware_class/firmware_sample_driver.c
+++ b/Documentation/firmware_class/firmware_sample_driver.c
@@ -13,7 +13,7 @@
 #include <linux/device.h>
 #include <linux/string.h>
 
-#include "linux/firmware.h"
+#include "firmware.h"
 
 static struct device ghost_device = {
 	.bus_id    = "ghost0",




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

end of thread, other threads:[~2007-08-19 22:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-19 22:19 [PATCH 4/5] Documentation/firmware/... convert #include Joe Perches
2007-08-19 22:19 ` [PATCH 4/5] Documentation/firmware/... convert #include "linux/..." to #include <linux/...> Joe Perches
2007-08-19 22:34 ` [PATCH 4/5] Documentation/firmware/... convert #include Randy Dunlap
2007-08-19 22:34   ` [PATCH 4/5] Documentation/firmware/... convert #include "linux/..." to #include <linux/...> Randy Dunlap
2007-08-19 22:31   ` [PATCH 4/5] Documentation/firmware/... convert #include Joe Perches
2007-08-19 22:31     ` [PATCH 4/5] Documentation/firmware/... convert #include "linux/..." to #include <linux/...> Joe Perches
2007-08-19 22:41     ` [PATCH 4/5] Documentation/firmware/... convert #include Randy Dunlap
2007-08-19 22:41       ` [PATCH 4/5] Documentation/firmware/... convert #include "linux/..." to #include <linux/...> Randy Dunlap
2007-08-19 22:41       ` [PATCH 4/5] Documentation/firmware/... convert #include Joe Perches
2007-08-19 22:41         ` [PATCH 4/5] Documentation/firmware/... convert #include "linux/..." to #include <linux/...> Joe Perches

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.