Skip to contentSkip to conversation

Fix EINVAL in i2c.h

PATCH Philip Pokorny 1 participant 1 message May 19, 2005

lore
Share & tools
lore
#0 lore raw

Here is a patch to fix the EINVAL error in i2c.h

I've compiled the lk2-4 branch of i2c without this patch and it seems to work (not sure why though), but then when I tried to compile lm_sensors against the i2c, I got the EINVAL error again on one of the kernel/busses drivers...

So here is a patch to re-order and include linux/errno.h to solve the problem.

:v)
-------------- next part --------------
Index: i2c/kernel/i2c.h
=================================RCS file: /home/cvs/i2c/kernel/i2c.h,v retrieving revision 1.68

kernel/i2c.h +2 -1
diff -u -r1.68 i2c.h
@@ -33,8 +33,9 @@
 
 #include <linux/module.h>
 #include <linux/types.h>
-#include "i2c-id.h"
+#include <linux/errno.h>
 #include <asm/semaphore.h>
+#include "i2c-id.h"
 
 /* --- General options ------------------------------------------------	*/