Fix for 2.6.39. Works for me, please test if I was right about those
Use ke->scancode[0] instead of ke->keycode. Thanks to xuzhen++
Hopefully fix the 2.6.39 mess
passing NULL to backlight_device_register is safe
simplified code & avoid potential crash
fix compilation issues with 3.3.0
fix module params' data type
fix compilation issues with linux 3.10.0
fix lensl_ec_read_procmem()
fix compatibility with kernel < 2.6.25