Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 25137 Details for
Bug 40438
directfb failed to compile with linux-2.6
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
linux-i2c.h.patch
linux-i2c.h.patch (text/plain), 1.20 KB, created by
SpanKY
on 2004-02-07 10:37:30 UTC
(
hide
)
Description:
linux-i2c.h.patch
Filename:
MIME Type:
Creator:
SpanKY
Created:
2004-02-07 10:37:30 UTC
Size:
1.20 KB
patch
obsolete
>--- i2c.h.orig 2004-02-07 13:29:15.099504640 -0500 >+++ i2c.h 2004-02-07 13:35:53.956869104 -0500 >@@ -28,10 +28,18 @@ > #ifndef _LINUX_I2C_H > #define _LINUX_I2C_H > >-#include <linux/module.h> >-#include <linux/types.h> >+#ifdef __KERNEL__ >+# include <linux/module.h> >+# include <linux/types.h> >+#else >+# define __KERNEL__ >+# include <linux/types.h> >+# undef __KERNEL__ >+#endif > #include <linux/i2c-id.h> >+#ifdef __KERNEL__ > #include <linux/device.h> /* for struct device */ >+#endif > #include <asm/semaphore.h> > > /* --- General options ------------------------------------------------ */ >@@ -109,6 +117,7 @@ > * events. > */ > >+#ifdef __KERNEL__ > struct i2c_driver { > struct module *owner; > char name[32]; >@@ -268,6 +277,7 @@ > { > dev_set_drvdata (&dev->dev, data); > } >+#endif > > /*flags for the driver struct: */ > #define I2C_DF_NOTIFY 0x01 /* notify on bus (de/a)ttaches */ >@@ -599,11 +609,13 @@ > #define i2c_is_isa_adapter(adapptr) \ > ((adapptr)->algo->id == I2C_ALGO_ISA) > >+#ifdef __KERNEL__ > /* Tiny delay function used by the i2c bus drivers */ > static inline void i2c_delay(signed long timeout) > { > set_current_state(TASK_INTERRUPTIBLE); > schedule_timeout(timeout); > } >+#endif > > #endif /* _LINUX_I2C_H */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 40438
: 25137