Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 225449 Details for
Bug 311621
omnibook module does not compile after commit
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch that solves the problem
backlight-2.6.34-omnibook-20090628.patch (text/plain), 1.38 KB, created by
Tiago Batista
on 2010-03-27 13:37:17 UTC
(
hide
)
Description:
Patch that solves the problem
Filename:
MIME Type:
Creator:
Tiago Batista
Created:
2010-03-27 13:37:17 UTC
Size:
1.38 KB
patch
obsolete
>diff -ur omnibook-20090628/lcd.c omnibook-20090628-mod/lcd.c >--- omnibook-20090628/lcd.c 2009-06-28 13:24:21.000000000 +0100 >+++ omnibook-20090628-mod/lcd.c 2010-03-27 13:09:16.540833150 +0000 >@@ -146,8 +146,14 @@ > } > > #ifdef CONFIG_OMNIBOOK_BACKLIGHT >- >-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,21) >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34) >+ struct backlight_properties props; >+ memset (&props, 0, sizeof(struct backlight_properties)); >+ props.max_brightness = omnibook_max_brightness; >+ omnibook_backlight_device = >+ backlight_device_register(OMNIBOOK_MODULE_NAME, NULL, (void *)io_op, >+ &omnibookbl_ops, &props); >+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,21) > omnibook_backlight_device = > backlight_device_register(OMNIBOOK_MODULE_NAME, NULL, (void *)io_op, &omnibookbl_ops); > #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20) >@@ -161,8 +167,9 @@ > printk(O_ERR "Unable to register as backlight device.\n"); > return -ENODEV; > } >- >-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,21) >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34) >+ backend_byte_read(io_op, (u8*) &omnibook_backlight_device->props.brightness); >+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,21) > omnibook_backlight_device->props.max_brightness = omnibook_max_brightness; > backend_byte_read(io_op, (u8*) &omnibook_backlight_device->props.brightness); > #else /* < 2.6.21 */
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 311621
:
225447
| 225449