2 * ideapad-laptop.c - Lenovo IdeaPad ACPI Extras
4 * Copyright © 2010 Intel Corporation
5 * Copyright © 2010 David Woodhouse <dwmw2@infradead.org>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
25 #include <linux/kernel.h>
26 #include <linux/module.h>
27 #include <linux/init.h>
28 #include <linux/types.h>
29 #include <acpi/acpi_bus.h>
30 #include <acpi/acpi_drivers.h>
31 #include <linux/rfkill.h>
32 #include <linux/platform_device.h>
33 #include <linux/input.h>
34 #include <linux/input/sparse-keymap.h>
35 #include <linux/backlight.h>
37 #include <linux/debugfs.h>
38 #include <linux/seq_file.h>
39 #include <linux/i8042.h>
41 #define IDEAPAD_RFKILL_DEV_NUM (3)
43 #define CFG_BT_BIT (16)
44 #define CFG_3G_BIT (17)
45 #define CFG_WIFI_BIT (18)
46 #define CFG_CAMERA_BIT (19)
66 VPCCMD_R_ODD, /* 0x21 */
71 VPCCMD_R_SPECIAL_BUTTONS = 0x31,
72 VPCCMD_W_BL_POWER = 0x33,
75 struct ideapad_rfk_priv {
77 struct ideapad_private *priv;
80 struct ideapad_private {
81 struct acpi_device *adev;
82 struct rfkill *rfk[IDEAPAD_RFKILL_DEV_NUM];
83 struct ideapad_rfk_priv rfk_priv[IDEAPAD_RFKILL_DEV_NUM];
84 struct platform_device *platform_device;
85 struct input_dev *inputdev;
86 struct backlight_device *blightdev;
91 static bool no_bt_rfkill;
92 module_param(no_bt_rfkill, bool, 0444);
93 MODULE_PARM_DESC(no_bt_rfkill, "No rfkill for bluetooth.");
98 #define IDEAPAD_EC_TIMEOUT (100) /* in ms */
100 static int read_method_int(acpi_handle handle, const char *method, int *val)
103 unsigned long long result;
105 status = acpi_evaluate_integer(handle, (char *)method, NULL, &result);
106 if (ACPI_FAILURE(status)) {
115 static int method_vpcr(acpi_handle handle, int cmd, int *ret)
118 unsigned long long result;
119 struct acpi_object_list params;
120 union acpi_object in_obj;
123 params.pointer = &in_obj;
124 in_obj.type = ACPI_TYPE_INTEGER;
125 in_obj.integer.value = cmd;
127 status = acpi_evaluate_integer(handle, "VPCR", ¶ms, &result);
129 if (ACPI_FAILURE(status)) {
138 static int method_vpcw(acpi_handle handle, int cmd, int data)
140 struct acpi_object_list params;
141 union acpi_object in_obj[2];
145 params.pointer = in_obj;
146 in_obj[0].type = ACPI_TYPE_INTEGER;
147 in_obj[0].integer.value = cmd;
148 in_obj[1].type = ACPI_TYPE_INTEGER;
149 in_obj[1].integer.value = data;
151 status = acpi_evaluate_object(handle, "VPCW", ¶ms, NULL);
157 static int read_ec_data(acpi_handle handle, int cmd, unsigned long *data)
160 unsigned long int end_jiffies;
162 if (method_vpcw(handle, 1, cmd))
165 for (end_jiffies = jiffies+(HZ)*IDEAPAD_EC_TIMEOUT/1000+1;
166 time_before(jiffies, end_jiffies);) {
168 if (method_vpcr(handle, 1, &val))
171 if (method_vpcr(handle, 0, &val))
177 pr_err("timeout in read_ec_cmd\n");
181 static int write_ec_cmd(acpi_handle handle, int cmd, unsigned long data)
184 unsigned long int end_jiffies;
186 if (method_vpcw(handle, 0, data))
188 if (method_vpcw(handle, 1, cmd))
191 for (end_jiffies = jiffies+(HZ)*IDEAPAD_EC_TIMEOUT/1000+1;
192 time_before(jiffies, end_jiffies);) {
194 if (method_vpcr(handle, 1, &val))
199 pr_err("timeout in write_ec_cmd\n");
206 static int debugfs_status_show(struct seq_file *s, void *data)
208 struct ideapad_private *priv = s->private;
214 if (!read_ec_data(priv->adev->handle, VPCCMD_R_BL_MAX, &value))
215 seq_printf(s, "Backlight max:\t%lu\n", value);
216 if (!read_ec_data(priv->adev->handle, VPCCMD_R_BL, &value))
217 seq_printf(s, "Backlight now:\t%lu\n", value);
218 if (!read_ec_data(priv->adev->handle, VPCCMD_R_BL_POWER, &value))
219 seq_printf(s, "BL power value:\t%s\n", value ? "On" : "Off");
220 seq_printf(s, "=====================\n");
222 if (!read_ec_data(priv->adev->handle, VPCCMD_R_RF, &value))
223 seq_printf(s, "Radio status:\t%s(%lu)\n",
224 value ? "On" : "Off", value);
225 if (!read_ec_data(priv->adev->handle, VPCCMD_R_WIFI, &value))
226 seq_printf(s, "Wifi status:\t%s(%lu)\n",
227 value ? "On" : "Off", value);
228 if (!read_ec_data(priv->adev->handle, VPCCMD_R_BT, &value))
229 seq_printf(s, "BT status:\t%s(%lu)\n",
230 value ? "On" : "Off", value);
231 if (!read_ec_data(priv->adev->handle, VPCCMD_R_3G, &value))
232 seq_printf(s, "3G status:\t%s(%lu)\n",
233 value ? "On" : "Off", value);
234 seq_printf(s, "=====================\n");
236 if (!read_ec_data(priv->adev->handle, VPCCMD_R_TOUCHPAD, &value))
237 seq_printf(s, "Touchpad status:%s(%lu)\n",
238 value ? "On" : "Off", value);
239 if (!read_ec_data(priv->adev->handle, VPCCMD_R_CAMERA, &value))
240 seq_printf(s, "Camera status:\t%s(%lu)\n",
241 value ? "On" : "Off", value);
246 static int debugfs_status_open(struct inode *inode, struct file *file)
248 return single_open(file, debugfs_status_show, inode->i_private);
251 static const struct file_operations debugfs_status_fops = {
252 .owner = THIS_MODULE,
253 .open = debugfs_status_open,
256 .release = single_release,
259 static int debugfs_cfg_show(struct seq_file *s, void *data)
261 struct ideapad_private *priv = s->private;
264 seq_printf(s, "cfg: N/A\n");
266 seq_printf(s, "cfg: 0x%.8lX\n\nCapability: ",
268 if (test_bit(CFG_BT_BIT, &priv->cfg))
269 seq_printf(s, "Bluetooth ");
270 if (test_bit(CFG_3G_BIT, &priv->cfg))
271 seq_printf(s, "3G ");
272 if (test_bit(CFG_WIFI_BIT, &priv->cfg))
273 seq_printf(s, "Wireless ");
274 if (test_bit(CFG_CAMERA_BIT, &priv->cfg))
275 seq_printf(s, "Camera ");
276 seq_printf(s, "\nGraphic: ");
277 switch ((priv->cfg)&0x700) {
279 seq_printf(s, "Intel");
282 seq_printf(s, "ATI");
285 seq_printf(s, "Nvidia");
288 seq_printf(s, "Intel and ATI");
291 seq_printf(s, "Intel and Nvidia");
299 static int debugfs_cfg_open(struct inode *inode, struct file *file)
301 return single_open(file, debugfs_cfg_show, inode->i_private);
304 static const struct file_operations debugfs_cfg_fops = {
305 .owner = THIS_MODULE,
306 .open = debugfs_cfg_open,
309 .release = single_release,
312 static int ideapad_debugfs_init(struct ideapad_private *priv)
316 priv->debug = debugfs_create_dir("ideapad", NULL);
317 if (priv->debug == NULL) {
318 pr_err("failed to create debugfs directory");
322 node = debugfs_create_file("cfg", S_IRUGO, priv->debug, priv,
325 pr_err("failed to create cfg in debugfs");
329 node = debugfs_create_file("status", S_IRUGO, priv->debug, priv,
330 &debugfs_status_fops);
332 pr_err("failed to create status in debugfs");
342 static void ideapad_debugfs_exit(struct ideapad_private *priv)
344 debugfs_remove_recursive(priv->debug);
351 static ssize_t show_ideapad_cam(struct device *dev,
352 struct device_attribute *attr,
355 unsigned long result;
356 struct ideapad_private *priv = dev_get_drvdata(dev);
358 if (read_ec_data(priv->adev->handle, VPCCMD_R_CAMERA, &result))
359 return sprintf(buf, "-1\n");
360 return sprintf(buf, "%lu\n", result);
363 static ssize_t store_ideapad_cam(struct device *dev,
364 struct device_attribute *attr,
365 const char *buf, size_t count)
368 struct ideapad_private *priv = dev_get_drvdata(dev);
372 if (sscanf(buf, "%i", &state) != 1)
374 ret = write_ec_cmd(priv->adev->handle, VPCCMD_W_CAMERA, state);
380 static DEVICE_ATTR(camera_power, 0644, show_ideapad_cam, store_ideapad_cam);
382 static ssize_t show_ideapad_fan(struct device *dev,
383 struct device_attribute *attr,
386 unsigned long result;
387 struct ideapad_private *priv = dev_get_drvdata(dev);
389 if (read_ec_data(priv->adev->handle, VPCCMD_R_FAN, &result))
390 return sprintf(buf, "-1\n");
391 return sprintf(buf, "%lu\n", result);
394 static ssize_t store_ideapad_fan(struct device *dev,
395 struct device_attribute *attr,
396 const char *buf, size_t count)
399 struct ideapad_private *priv = dev_get_drvdata(dev);
403 if (sscanf(buf, "%i", &state) != 1)
405 if (state < 0 || state > 4 || state == 3)
407 ret = write_ec_cmd(priv->adev->handle, VPCCMD_W_FAN, state);
413 static DEVICE_ATTR(fan_mode, 0644, show_ideapad_fan, store_ideapad_fan);
415 static struct attribute *ideapad_attributes[] = {
416 &dev_attr_camera_power.attr,
417 &dev_attr_fan_mode.attr,
421 static umode_t ideapad_is_visible(struct kobject *kobj,
422 struct attribute *attr,
425 struct device *dev = container_of(kobj, struct device, kobj);
426 struct ideapad_private *priv = dev_get_drvdata(dev);
429 if (attr == &dev_attr_camera_power.attr)
430 supported = test_bit(CFG_CAMERA_BIT, &(priv->cfg));
431 else if (attr == &dev_attr_fan_mode.attr) {
433 supported = !read_ec_data(priv->adev->handle, VPCCMD_R_FAN,
438 return supported ? attr->mode : 0;
441 static struct attribute_group ideapad_attribute_group = {
442 .is_visible = ideapad_is_visible,
443 .attrs = ideapad_attributes
449 struct ideapad_rfk_data {
456 const struct ideapad_rfk_data ideapad_rfk_data[] = {
457 { "ideapad_wlan", CFG_WIFI_BIT, VPCCMD_W_WIFI, RFKILL_TYPE_WLAN },
458 { "ideapad_bluetooth", CFG_BT_BIT, VPCCMD_W_BT, RFKILL_TYPE_BLUETOOTH },
459 { "ideapad_3g", CFG_3G_BIT, VPCCMD_W_3G, RFKILL_TYPE_WWAN },
462 static int ideapad_rfk_set(void *data, bool blocked)
464 struct ideapad_rfk_priv *priv = data;
466 return write_ec_cmd(priv->priv->adev->handle, priv->dev, !blocked);
469 static struct rfkill_ops ideapad_rfk_ops = {
470 .set_block = ideapad_rfk_set,
473 static void ideapad_sync_rfk_state(struct ideapad_private *priv)
475 unsigned long hw_blocked;
478 if (read_ec_data(priv->adev->handle, VPCCMD_R_RF, &hw_blocked))
480 hw_blocked = !hw_blocked;
482 for (i = 0; i < IDEAPAD_RFKILL_DEV_NUM; i++)
484 rfkill_set_hw_state(priv->rfk[i], hw_blocked);
487 static int ideapad_register_rfkill(struct ideapad_private *priv, int dev)
490 unsigned long sw_blocked;
493 (ideapad_rfk_data[dev].type == RFKILL_TYPE_BLUETOOTH)) {
494 /* Force to enable bluetooth when no_bt_rfkill=1 */
495 write_ec_cmd(priv->adev->handle,
496 ideapad_rfk_data[dev].opcode, 1);
499 priv->rfk_priv[dev].dev = dev;
500 priv->rfk_priv[dev].priv = priv;
502 priv->rfk[dev] = rfkill_alloc(ideapad_rfk_data[dev].name,
503 &priv->platform_device->dev,
504 ideapad_rfk_data[dev].type,
506 &priv->rfk_priv[dev]);
510 if (read_ec_data(priv->adev->handle, ideapad_rfk_data[dev].opcode-1,
512 rfkill_init_sw_state(priv->rfk[dev], 0);
514 sw_blocked = !sw_blocked;
515 rfkill_init_sw_state(priv->rfk[dev], sw_blocked);
518 ret = rfkill_register(priv->rfk[dev]);
520 rfkill_destroy(priv->rfk[dev]);
526 static void ideapad_unregister_rfkill(struct ideapad_private *priv, int dev)
531 rfkill_unregister(priv->rfk[dev]);
532 rfkill_destroy(priv->rfk[dev]);
538 static int ideapad_sysfs_init(struct ideapad_private *priv)
540 return sysfs_create_group(&priv->platform_device->dev.kobj,
541 &ideapad_attribute_group);
544 static void ideapad_sysfs_exit(struct ideapad_private *priv)
546 sysfs_remove_group(&priv->platform_device->dev.kobj,
547 &ideapad_attribute_group);
553 static const struct key_entry ideapad_keymap[] = {
554 { KE_KEY, 6, { KEY_SWITCHVIDEOMODE } },
555 { KE_KEY, 7, { KEY_CAMERA } },
556 { KE_KEY, 11, { KEY_F16 } },
557 { KE_KEY, 13, { KEY_WLAN } },
558 { KE_KEY, 16, { KEY_PROG1 } },
559 { KE_KEY, 17, { KEY_PROG2 } },
560 { KE_KEY, 64, { KEY_PROG3 } },
561 { KE_KEY, 65, { KEY_PROG4 } },
562 { KE_KEY, 66, { KEY_TOUCHPAD_OFF } },
563 { KE_KEY, 67, { KEY_TOUCHPAD_ON } },
567 static int ideapad_input_init(struct ideapad_private *priv)
569 struct input_dev *inputdev;
572 inputdev = input_allocate_device();
576 inputdev->name = "Ideapad extra buttons";
577 inputdev->phys = "ideapad/input0";
578 inputdev->id.bustype = BUS_HOST;
579 inputdev->dev.parent = &priv->platform_device->dev;
581 error = sparse_keymap_setup(inputdev, ideapad_keymap, NULL);
583 pr_err("Unable to setup input device keymap\n");
587 error = input_register_device(inputdev);
589 pr_err("Unable to register input device\n");
590 goto err_free_keymap;
593 priv->inputdev = inputdev;
597 sparse_keymap_free(inputdev);
599 input_free_device(inputdev);
603 static void ideapad_input_exit(struct ideapad_private *priv)
605 sparse_keymap_free(priv->inputdev);
606 input_unregister_device(priv->inputdev);
607 priv->inputdev = NULL;
610 static void ideapad_input_report(struct ideapad_private *priv,
611 unsigned long scancode)
613 sparse_keymap_report_event(priv->inputdev, scancode, 1, true);
616 static void ideapad_input_novokey(struct ideapad_private *priv)
618 unsigned long long_pressed;
620 if (read_ec_data(priv->adev->handle, VPCCMD_R_NOVO, &long_pressed))
623 ideapad_input_report(priv, 17);
625 ideapad_input_report(priv, 16);
628 static void ideapad_check_special_buttons(struct ideapad_private *priv)
630 unsigned long bit, value;
632 read_ec_data(priv->adev->handle, VPCCMD_R_SPECIAL_BUTTONS, &value);
634 for (bit = 0; bit < 16; bit++) {
635 if (test_bit(bit, &value)) {
639 /* Thermal Management button */
640 ideapad_input_report(priv, 65);
643 /* OneKey Theater button */
644 ideapad_input_report(priv, 64);
647 pr_info("Unknown special button: %lu\n", bit);
657 static int ideapad_backlight_get_brightness(struct backlight_device *blightdev)
659 struct ideapad_private *priv = bl_get_data(blightdev);
665 if (read_ec_data(priv->adev->handle, VPCCMD_R_BL, &now))
670 static int ideapad_backlight_update_status(struct backlight_device *blightdev)
672 struct ideapad_private *priv = bl_get_data(blightdev);
677 if (write_ec_cmd(priv->adev->handle, VPCCMD_W_BL,
678 blightdev->props.brightness))
680 if (write_ec_cmd(priv->adev->handle, VPCCMD_W_BL_POWER,
681 blightdev->props.power == FB_BLANK_POWERDOWN ? 0 : 1))
687 static const struct backlight_ops ideapad_backlight_ops = {
688 .get_brightness = ideapad_backlight_get_brightness,
689 .update_status = ideapad_backlight_update_status,
692 static int ideapad_backlight_init(struct ideapad_private *priv)
694 struct backlight_device *blightdev;
695 struct backlight_properties props;
696 unsigned long max, now, power;
698 if (read_ec_data(priv->adev->handle, VPCCMD_R_BL_MAX, &max))
700 if (read_ec_data(priv->adev->handle, VPCCMD_R_BL, &now))
702 if (read_ec_data(priv->adev->handle, VPCCMD_R_BL_POWER, &power))
705 memset(&props, 0, sizeof(struct backlight_properties));
706 props.max_brightness = max;
707 props.type = BACKLIGHT_PLATFORM;
708 blightdev = backlight_device_register("ideapad",
709 &priv->platform_device->dev,
711 &ideapad_backlight_ops,
713 if (IS_ERR(blightdev)) {
714 pr_err("Could not register backlight device\n");
715 return PTR_ERR(blightdev);
718 priv->blightdev = blightdev;
719 blightdev->props.brightness = now;
720 blightdev->props.power = power ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN;
721 backlight_update_status(blightdev);
726 static void ideapad_backlight_exit(struct ideapad_private *priv)
729 backlight_device_unregister(priv->blightdev);
730 priv->blightdev = NULL;
733 static void ideapad_backlight_notify_power(struct ideapad_private *priv)
736 struct backlight_device *blightdev = priv->blightdev;
740 if (read_ec_data(priv->adev->handle, VPCCMD_R_BL_POWER, &power))
742 blightdev->props.power = power ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN;
745 static void ideapad_backlight_notify_brightness(struct ideapad_private *priv)
749 /* if we control brightness via acpi video driver */
750 if (priv->blightdev == NULL) {
751 read_ec_data(priv->adev->handle, VPCCMD_R_BL, &now);
755 backlight_force_update(priv->blightdev, BACKLIGHT_UPDATE_HOTKEY);
761 static void ideapad_sync_touchpad_state(struct ideapad_private *priv)
765 /* Without reading from EC touchpad LED doesn't switch state */
766 if (!read_ec_data(priv->adev->handle, VPCCMD_R_TOUCHPAD, &value)) {
767 /* Some IdeaPads don't really turn off touchpad - they only
768 * switch the LED state. We (de)activate KBC AUX port to turn
769 * touchpad off and on. We send KEY_TOUCHPAD_OFF and
770 * KEY_TOUCHPAD_ON to not to get out of sync with LED */
772 i8042_command(¶m, value ? I8042_CMD_AUX_ENABLE :
773 I8042_CMD_AUX_DISABLE);
774 ideapad_input_report(priv, value ? 67 : 66);
778 static void ideapad_acpi_notify(acpi_handle handle, u32 event, void *data)
780 struct ideapad_private *priv = data;
781 unsigned long vpc1, vpc2, vpc_bit;
783 if (read_ec_data(handle, VPCCMD_R_VPC1, &vpc1))
785 if (read_ec_data(handle, VPCCMD_R_VPC2, &vpc2))
788 vpc1 = (vpc2 << 8) | vpc1;
789 for (vpc_bit = 0; vpc_bit < 16; vpc_bit++) {
790 if (test_bit(vpc_bit, &vpc1)) {
793 ideapad_sync_rfk_state(priv);
799 ideapad_input_report(priv, vpc_bit);
802 ideapad_sync_touchpad_state(priv);
805 ideapad_backlight_notify_brightness(priv);
808 ideapad_input_novokey(priv);
811 ideapad_backlight_notify_power(priv);
814 ideapad_check_special_buttons(priv);
817 pr_info("Unknown event: %lu\n", vpc_bit);
823 static int ideapad_acpi_add(struct platform_device *pdev)
827 struct ideapad_private *priv;
828 struct acpi_device *adev;
830 ret = acpi_bus_get_device(ACPI_HANDLE(&pdev->dev), &adev);
834 if (read_method_int(adev->handle, "_CFG", &cfg))
837 priv = kzalloc(sizeof(*priv), GFP_KERNEL);
841 dev_set_drvdata(&pdev->dev, priv);
844 priv->platform_device = pdev;
846 ret = ideapad_sysfs_init(priv);
850 ret = ideapad_debugfs_init(priv);
854 ret = ideapad_input_init(priv);
858 for (i = 0; i < IDEAPAD_RFKILL_DEV_NUM; i++) {
859 if (test_bit(ideapad_rfk_data[i].cfgbit, &priv->cfg))
860 ideapad_register_rfkill(priv, i);
864 ideapad_sync_rfk_state(priv);
865 ideapad_sync_touchpad_state(priv);
867 if (!acpi_video_backlight_support()) {
868 ret = ideapad_backlight_init(priv);
869 if (ret && ret != -ENODEV)
870 goto backlight_failed;
872 ret = acpi_install_notify_handler(adev->handle,
873 ACPI_DEVICE_NOTIFY, ideapad_acpi_notify, priv);
875 goto notification_failed;
879 ideapad_backlight_exit(priv);
881 for (i = 0; i < IDEAPAD_RFKILL_DEV_NUM; i++)
882 ideapad_unregister_rfkill(priv, i);
883 ideapad_input_exit(priv);
885 ideapad_debugfs_exit(priv);
887 ideapad_sysfs_exit(priv);
893 static int ideapad_acpi_remove(struct platform_device *pdev)
895 struct ideapad_private *priv = dev_get_drvdata(&pdev->dev);
898 acpi_remove_notify_handler(priv->adev->handle,
899 ACPI_DEVICE_NOTIFY, ideapad_acpi_notify);
900 ideapad_backlight_exit(priv);
901 for (i = 0; i < IDEAPAD_RFKILL_DEV_NUM; i++)
902 ideapad_unregister_rfkill(priv, i);
903 ideapad_input_exit(priv);
904 ideapad_debugfs_exit(priv);
905 ideapad_sysfs_exit(priv);
906 dev_set_drvdata(&pdev->dev, NULL);
912 #ifdef CONFIG_PM_SLEEP
913 static int ideapad_acpi_resume(struct device *device)
915 struct ideapad_private *priv;
919 priv = dev_get_drvdata(device);
921 ideapad_sync_rfk_state(priv);
922 ideapad_sync_touchpad_state(priv);
926 static SIMPLE_DEV_PM_OPS(ideapad_pm, NULL, ideapad_acpi_resume);
928 static const struct acpi_device_id ideapad_device_ids[] = {
932 MODULE_DEVICE_TABLE(acpi, ideapad_device_ids);
934 static struct platform_driver ideapad_acpi_driver = {
935 .probe = ideapad_acpi_add,
936 .remove = ideapad_acpi_remove,
938 .name = "ideapad_acpi",
939 .owner = THIS_MODULE,
941 .acpi_match_table = ACPI_PTR(ideapad_device_ids),
945 module_platform_driver(ideapad_acpi_driver);
947 MODULE_AUTHOR("David Woodhouse <dwmw2@infradead.org>");
948 MODULE_DESCRIPTION("IdeaPad ACPI Extras");
949 MODULE_LICENSE("GPL");