Lines 801-807
Link Here
|
801 |
|
801 |
|
802 |
if ((blc_type == BLC_I2C_TYPE) || (blc_type == BLC_PWM_TYPE)){ |
802 |
if ((blc_type == BLC_I2C_TYPE) || (blc_type == BLC_PWM_TYPE)){ |
803 |
/* add /sys/class/backlight interface as standard */ |
803 |
/* add /sys/class/backlight interface as standard */ |
|
|
804 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34) |
805 |
struct backlight_properties props; |
806 |
memset(&props, 0, sizeof(struct backlight_properties)); |
807 |
props.max_brightness = BRIGHTNESS_MAX_LEVEL; |
808 |
psbbl_device = backlight_device_register("psblvds", &dev->pdev->dev, dev, &psbbl_ops, &props); |
809 |
#else |
804 |
psbbl_device = backlight_device_register("psblvds", &dev->pdev->dev, dev, &psbbl_ops); |
810 |
psbbl_device = backlight_device_register("psblvds", &dev->pdev->dev, dev, &psbbl_ops); |
|
|
811 |
#endif |
805 |
if (psbbl_device){ |
812 |
if (psbbl_device){ |
806 |
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,20) |
813 |
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,20) |
807 |
down(&psbbl_device->sem); |
814 |
down(&psbbl_device->sem); |