Author: rathann
Update of /cvs/free/rpms/omnibook-kmod/F-13
In directory se02.es.rpmfusion.net:/tmp/cvs-serv10393
Modified Files:
omnibook-kmod.spec
Added Files:
omnibook-kmod-backlight-2.6.34.patch
Log Message:
* Sun Sep 05 2010 Dominik Mierzejewski <rpm(a)greysector.net> 2.20090714-0.5.svn288
- fix build with kernel 2.6.34
omnibook-kmod-backlight-2.6.34.patch:
lcd.c | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
--- NEW FILE omnibook-kmod-backlight-2.6.34.patch ---
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 */
Index: omnibook-kmod.spec
===================================================================
RCS file: /cvs/free/rpms/omnibook-kmod/F-13/omnibook-kmod.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- omnibook-kmod.spec 28 Aug 2010 18:48:51 -0000 1.19
+++ omnibook-kmod.spec 5 Sep 2010 13:20:35 -0000 1.20
@@ -8,7 +8,7 @@
Name: omnibook-kmod
Version: 2.20090714
-Release: 0.4.svn288%{?dist}.14
+Release: 0.5.svn288%{?dist}
Summary: Kernel module for HP Omnibook/Pavillon, Toshiba Satellite and Compal
laptops
Group: System Environment/Kernel
@@ -25,6 +25,8 @@
Patch0: %{name}-warnings.patch
# add support for Toshiba Satellite A300D:
http://sourceforge.net/tracker/?func=detail&aid=2841062&group_id=...
Patch1: %{name}-a300d.patch
+# fix compilation with kernel-2.6.34:
http://sourceforge.net/tracker/?func=detail&aid=2978676&group_id=...
+Patch2: %{name}-backlight-2.6.34.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# get the proper build-sysbuild package from the repo, which
@@ -55,6 +57,7 @@
pushd omnibook-%{version}
%patch0 -p1 -b .warn
%patch1 -p1 -b .a300d
+%patch2 -p1 -b .bl
popd
for kernel_version in %{?kernel_versions} ; do
@@ -82,6 +85,9 @@
%changelog
+* Sun Sep 05 2010 Dominik Mierzejewski <rpm(a)greysector.net> 2.20090714-0.5.svn288
+- fix build with kernel 2.6.34
+
* Sat Aug 28 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> -
2.20090714-0.4.svn288.14
- rebuild for new kernel