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

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

eeepc-laptop: fingers off backlight if video.ko is serving this functionality

parent 29454f17
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -825,9 +825,15 @@ static int __init eeepc_laptop_init(void)
		return -ENODEV;
	}
	dev = acpi_get_physical_device(ehotk->device->handle);

	if (!acpi_video_backlight_support()) {
		result = eeepc_backlight_init(dev);
		if (result)
			goto fail_backlight;
	} else
		printk(EEEPC_INFO "Backlight controlled by ACPI video "
		       "driver\n");

	result = eeepc_hwmon_init(dev);
	if (result)
		goto fail_hwmon;