]> git.pld-linux.org Git - packages/nvidiabl.git/blob - linux-4.0.patch
- fix building with linux 4.0
[packages/nvidiabl.git] / linux-4.0.patch
1 --- nvidiabl-0.87/nvidiabl-module.c~    2015-04-19 13:27:17.493140224 +0200
2 +++ nvidiabl-0.87/nvidiabl-module.c     2015-04-19 13:26:41.479808163 +0200
3 @@ -214,7 +214,11 @@
4  #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39)
5         
6         for (iii = 0 ; iii < sizeof(backlight_type_ids) ; iii++) {
7 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,0,0)
8 +               if (strncasecmp(bl_type, backlight_type_ids[iii].id, sizeof(bl_type)) == 0) {
9 +#else
10                 if (strnicmp(bl_type, backlight_type_ids[iii].id, sizeof(bl_type)) == 0) {
11 +#endif
12                         props.type = backlight_type_ids[iii].type;
13                         printk(KERN_INFO "nvidiabl: backlight type is %s\n", backlight_type_ids[iii].id);
14                 }
This page took 0.04655 seconds and 3 git commands to generate.