Lines 42-47
Link Here
|
42 |
#define USE_PLATFORM_DRIVER |
42 |
#define USE_PLATFORM_DRIVER |
43 |
#endif |
43 |
#endif |
44 |
|
44 |
|
|
|
45 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,0,0) |
46 |
#define strncasecmp strnicmp |
47 |
#endif |
48 |
|
45 |
static unsigned long nvidiabl_ignore_device = 0; |
49 |
static unsigned long nvidiabl_ignore_device = 0; |
46 |
static long off = NVIDIABL_UNSET; |
50 |
static long off = NVIDIABL_UNSET; |
47 |
static long min = NVIDIABL_UNSET; |
51 |
static long min = NVIDIABL_UNSET; |
Lines 214-220
Link Here
|
214 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39) |
218 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39) |
215 |
|
219 |
|
216 |
for (iii = 0 ; iii < sizeof(backlight_type_ids) ; iii++) { |
220 |
for (iii = 0 ; iii < sizeof(backlight_type_ids) ; iii++) { |
217 |
if (strnicmp(bl_type, backlight_type_ids[iii].id, sizeof(bl_type)) == 0) { |
221 |
if (strncasecmp(bl_type, backlight_type_ids[iii].id, sizeof(bl_type)) == 0) { |
218 |
props.type = backlight_type_ids[iii].type; |
222 |
props.type = backlight_type_ids[iii].type; |
219 |
printk(KERN_INFO "nvidiabl: backlight type is %s\n", backlight_type_ids[iii].id); |
223 |
printk(KERN_INFO "nvidiabl: backlight type is %s\n", backlight_type_ids[iii].id); |
220 |
} |
224 |
} |