msi-wmi.c (97eb3f24352ec6632c2127b35d8087d2a809a9b9) msi-wmi.c (bb7ca747f8d6243b3943c5b133048652020f4a50)
1/*
2 * MSI WMI hotkeys
3 *
4 * Copyright (C) 2009 Novell <trenn@suse.de>
5 *
6 * Most stuff taken over from hp-wmi
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 240 unchanged lines hidden (view full) ---

249
250 err = msi_wmi_input_setup();
251 if (err)
252 goto err_uninstall_notifier;
253
254 if (!acpi_video_backlight_support()) {
255 struct backlight_properties props;
256 memset(&props, 0, sizeof(struct backlight_properties));
1/*
2 * MSI WMI hotkeys
3 *
4 * Copyright (C) 2009 Novell <trenn@suse.de>
5 *
6 * Most stuff taken over from hp-wmi
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 240 unchanged lines hidden (view full) ---

249
250 err = msi_wmi_input_setup();
251 if (err)
252 goto err_uninstall_notifier;
253
254 if (!acpi_video_backlight_support()) {
255 struct backlight_properties props;
256 memset(&props, 0, sizeof(struct backlight_properties));
257 props.type = BACKLIGHT_PLATFORM;
257 props.max_brightness = ARRAY_SIZE(backlight_map) - 1;
258 backlight = backlight_device_register(DRV_NAME, NULL, NULL,
259 &msi_backlight_ops,
260 &props);
261 if (IS_ERR(backlight)) {
262 err = PTR_ERR(backlight);
263 goto err_free_input;
264 }

--- 32 unchanged lines hidden ---
258 props.max_brightness = ARRAY_SIZE(backlight_map) - 1;
259 backlight = backlight_device_register(DRV_NAME, NULL, NULL,
260 &msi_backlight_ops,
261 &props);
262 if (IS_ERR(backlight)) {
263 err = PTR_ERR(backlight);
264 goto err_free_input;
265 }

--- 32 unchanged lines hidden ---