Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29454f17 authored by Thomas Renninger's avatar Thomas Renninger Committed by Len Brown
Browse files

compal: fingers off backlight if video.ko is serving this functionality

parent 6766fec3
Loading
Loading
Loading
Loading
+7 −5
Original line number Original line Diff line number Diff line
@@ -326,12 +326,14 @@ static int __init compal_init(void)


	/* Register backlight stuff */
	/* Register backlight stuff */


	if (!acpi_video_backlight_support()) {
		compalbl_device = backlight_device_register("compal-laptop", NULL, NULL,
		compalbl_device = backlight_device_register("compal-laptop", NULL, NULL,
							    &compalbl_ops);
							    &compalbl_ops);
		if (IS_ERR(compalbl_device))
		if (IS_ERR(compalbl_device))
			return PTR_ERR(compalbl_device);
			return PTR_ERR(compalbl_device);


		compalbl_device->props.max_brightness = COMPAL_LCD_LEVEL_MAX-1;
		compalbl_device->props.max_brightness = COMPAL_LCD_LEVEL_MAX-1;
	}


	ret = platform_driver_register(&compal_driver);
	ret = platform_driver_register(&compal_driver);
	if (ret)
	if (ret)