summaryrefslogtreecommitdiff
path: root/extras/firmware
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-01-09 21:18:00 +0100
committerKay Sievers <kay.sievers@suse.de>2006-01-09 21:18:00 +0100
commit1aa1e24848903d11780db1ade355be73ad61a937 (patch)
treefb15c937a1a6e9f0197c905cc7af6ee5df8b108c /extras/firmware
parent47fbf3c58260e3fed1078061f8d45e01b0e120f0 (diff)
replace libsysfs
We never used any of the libsysfs convenience features. Here we replace it completely with 300 lines of code, which are much simpler and a bit faster cause udev(d) does not open any syfs file for a simple event which does not need any parent device information. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'extras/firmware')
-rw-r--r--extras/firmware/Makefile2
-rw-r--r--extras/firmware/firmware_helper.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/extras/firmware/Makefile b/extras/firmware/Makefile
index 16918867fc..da7fe9d1a8 100644
--- a/extras/firmware/Makefile
+++ b/extras/firmware/Makefile
@@ -33,7 +33,7 @@ all: $(PROG) $(MAN_PAGES)
$(QUIET) $(CC) -c $(CFLAGS) $< -o $@
$(PROG): %: $(HEADERS) %.o $(OBJS)
- $(QUIET) $(LD) $(LDFLAGS) $@.o $(OBJS) -o $@ $(LIBUDEV) $(LIBSYSFS) $(LIB_OBJS)
+ $(QUIET) $(LD) $(LDFLAGS) $@.o $(OBJS) -o $@ $(LIBUDEV) $(LIB_OBJS)
ifneq ($(strip $(STRIPCMD)),)
$(QUIET) $(STRIPCMD) $@
endif
diff --git a/extras/firmware/firmware_helper.c b/extras/firmware/firmware_helper.c
index 2bc6b50f06..ca1c43814f 100644
--- a/extras/firmware/firmware_helper.c
+++ b/extras/firmware/firmware_helper.c
@@ -17,8 +17,7 @@
#include <unistd.h>
#include <sys/stat.h>
-#include "../../udev_utils.h"
-#include "../../logging.h"
+#include "../../udev.h"
#define FIRMWARE_PATH "/lib/firmware"
#define PATH_SIZE 256