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();
574 pr_info("Unable to allocate input device\n");
578 inputdev->name = "Ideapad extra buttons";
579 inputdev->phys = "ideapad/input0";
580 inputdev->id.bustype = BUS_HOST;
581 inputdev->dev.parent = &priv->platform_device->dev;
583 error = sparse_keymap_setup(inputdev, ideapad_keymap, NULL);
585 pr_err("Unable to setup input device keymap\n");
589 error = input_register_device(inputdev);
591 pr_err("Unable to register input device\n");
592 goto err_free_keymap;
595 priv->inputdev = inputdev;
599 sparse_keymap_free(inputdev);
601 input_free_device(inputdev);
605 static void ideapad_input_exit(struct ideapad_private *priv)
607 sparse_keymap_free(priv->inputdev);
608 input_unregister_device(priv->inputdev);
609 priv->inputdev = NULL;
612 static void ideapad_input_report(struct ideapad_private *priv,
613 unsigned long scancode)
615 sparse_keymap_report_event(priv->inputdev, scancode, 1, true);
618 static void ideapad_input_novokey(struct ideapad_private *priv)
620 unsigned long long_pressed;
622 if (read_ec_data(priv->adev->handle, VPCCMD_R_NOVO, &long_pressed))
625 ideapad_input_report(priv, 17);
627 ideapad_input_report(priv, 16);
630 static void ideapad_check_special_buttons(struct ideapad_private *priv)
632 unsigned long bit, value;
634 read_ec_data(priv->adev->handle, VPCCMD_R_SPECIAL_BUTTONS, &value);
636 for (bit = 0; bit < 16; bit++) {
637 if (test_bit(bit, &value)) {
641 /* Thermal Management button */
642 ideapad_input_report(priv, 65);
645 /* OneKey Theater button */
646 ideapad_input_report(priv, 64);
649 pr_info("Unknown special button: %lu\n", bit);
659 static int ideapad_backlight_get_brightness(struct backlight_device *blightdev)
661 struct ideapad_private *priv = bl_get_data(blightdev);
667 if (read_ec_data(priv->adev->handle, VPCCMD_R_BL, &now))
672 static int ideapad_backlight_update_status(struct backlight_device *blightdev)
674 struct ideapad_private *priv = bl_get_data(blightdev);
679 if (write_ec_cmd(priv->adev->handle, VPCCMD_W_BL,
680 blightdev->props.brightness))
682 if (write_ec_cmd(priv->adev->handle, VPCCMD_W_BL_POWER,
683 blightdev->props.power == FB_BLANK_POWERDOWN ? 0 : 1))
689 static const struct backlight_ops ideapad_backlight_ops = {
690 .get_brightness = ideapad_backlight_get_brightness,
691 .update_status = ideapad_backlight_update_status,
694 static int ideapad_backlight_init(struct ideapad_private *priv)
696 struct backlight_device *blightdev;
697 struct backlight_properties props;
698 unsigned long max, now, power;
700 if (read_ec_data(priv->adev->handle, VPCCMD_R_BL_MAX, &max))
702 if (read_ec_data(priv->adev->handle, VPCCMD_R_BL, &now))
704 if (read_ec_data(priv->adev->handle, VPCCMD_R_BL_POWER, &power))
707 memset(&props, 0, sizeof(struct backlight_properties));
708 props.max_brightness = max;
709 props.type = BACKLIGHT_PLATFORM;
710 blightdev = backlight_device_register("ideapad",
711 &priv->platform_device->dev,
713 &ideapad_backlight_ops,
715 if (IS_ERR(blightdev)) {
716 pr_err("Could not register backlight device\n");
717 return PTR_ERR(blightdev);
720 priv->blightdev = blightdev;
721 blightdev->props.brightness = now;
722 blightdev->props.power = power ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN;
723 backlight_update_status(blightdev);
728 static void ideapad_backlight_exit(struct ideapad_private *priv)
731 backlight_device_unregister(priv->blightdev);
732 priv->blightdev = NULL;
735 static void ideapad_backlight_notify_power(struct ideapad_private *priv)
738 struct backlight_device *blightdev = priv->blightdev;
742 if (read_ec_data(priv->adev->handle, VPCCMD_R_BL_POWER, &power))
744 blightdev->props.power = power ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN;
747 static void ideapad_backlight_notify_brightness(struct ideapad_private *priv)
751 /* if we control brightness via acpi video driver */
752 if (priv->blightdev == NULL) {
753 read_ec_data(priv->adev->handle, VPCCMD_R_BL, &now);
757 backlight_force_update(priv->blightdev, BACKLIGHT_UPDATE_HOTKEY);
763 static void ideapad_sync_touchpad_state(struct ideapad_private *priv)
767 /* Without reading from EC touchpad LED doesn't switch state */
768 if (!read_ec_data(priv->adev->handle, VPCCMD_R_TOUCHPAD, &value)) {
769 /* Some IdeaPads don't really turn off touchpad - they only
770 * switch the LED state. We (de)activate KBC AUX port to turn
771 * touchpad off and on. We send KEY_TOUCHPAD_OFF and
772 * KEY_TOUCHPAD_ON to not to get out of sync with LED */
774 i8042_command(¶m, value ? I8042_CMD_AUX_ENABLE :
775 I8042_CMD_AUX_DISABLE);
776 ideapad_input_report(priv, value ? 67 : 66);
780 static void ideapad_acpi_notify(acpi_handle handle, u32 event, void *data)
782 struct ideapad_private *priv = data;
783 unsigned long vpc1, vpc2, vpc_bit;
785 if (read_ec_data(handle, VPCCMD_R_VPC1, &vpc1))
787 if (read_ec_data(handle, VPCCMD_R_VPC2, &vpc2))
790 vpc1 = (vpc2 << 8) | vpc1;
791 for (vpc_bit = 0; vpc_bit < 16; vpc_bit++) {
792 if (test_bit(vpc_bit, &vpc1)) {
795 ideapad_sync_rfk_state(priv);
801 ideapad_input_report(priv, vpc_bit);
804 ideapad_sync_touchpad_state(priv);
807 ideapad_backlight_notify_brightness(priv);
810 ideapad_input_novokey(priv);
813 ideapad_backlight_notify_power(priv);
816 ideapad_check_special_buttons(priv);
819 pr_info("Unknown event: %lu\n", vpc_bit);
825 static int ideapad_acpi_add(struct platform_device *pdev)
829 struct ideapad_private *priv;
830 struct acpi_device *adev;
832 ret = acpi_bus_get_device(ACPI_HANDLE(&pdev->dev), &adev);
836 if (read_method_int(adev->handle, "_CFG", &cfg))
839 priv = kzalloc(sizeof(*priv), GFP_KERNEL);
843 dev_set_drvdata(&pdev->dev, priv);
846 priv->platform_device = pdev;
848 ret = ideapad_sysfs_init(priv);
852 ret = ideapad_debugfs_init(priv);
856 ret = ideapad_input_init(priv);
860 for (i = 0; i < IDEAPAD_RFKILL_DEV_NUM; i++) {
861 if (test_bit(ideapad_rfk_data[i].cfgbit, &priv->cfg))
862 ideapad_register_rfkill(priv, i);
866 ideapad_sync_rfk_state(priv);
867 ideapad_sync_touchpad_state(priv);
869 if (!acpi_video_backlight_support()) {
870 ret = ideapad_backlight_init(priv);
871 if (ret && ret != -ENODEV)
872 goto backlight_failed;
874 ret = acpi_install_notify_handler(adev->handle,
875 ACPI_DEVICE_NOTIFY, ideapad_acpi_notify, priv);
877 goto notification_failed;
881 ideapad_backlight_exit(priv);
883 for (i = 0; i < IDEAPAD_RFKILL_DEV_NUM; i++)
884 ideapad_unregister_rfkill(priv, i);
885 ideapad_input_exit(priv);
887 ideapad_debugfs_exit(priv);
889 ideapad_sysfs_exit(priv);
895 static int ideapad_acpi_remove(struct platform_device *pdev)
897 struct ideapad_private *priv = dev_get_drvdata(&pdev->dev);
900 acpi_remove_notify_handler(priv->adev->handle,
901 ACPI_DEVICE_NOTIFY, ideapad_acpi_notify);
902 ideapad_backlight_exit(priv);
903 for (i = 0; i < IDEAPAD_RFKILL_DEV_NUM; i++)
904 ideapad_unregister_rfkill(priv, i);
905 ideapad_input_exit(priv);
906 ideapad_debugfs_exit(priv);
907 ideapad_sysfs_exit(priv);
908 dev_set_drvdata(&pdev->dev, NULL);
914 #ifdef CONFIG_PM_SLEEP
915 static int ideapad_acpi_resume(struct device *device)
917 struct ideapad_private *priv;
921 priv = dev_get_drvdata(device);
923 ideapad_sync_rfk_state(priv);
924 ideapad_sync_touchpad_state(priv);
928 static SIMPLE_DEV_PM_OPS(ideapad_pm, NULL, ideapad_acpi_resume);
930 static const struct acpi_device_id ideapad_device_ids[] = {
934 MODULE_DEVICE_TABLE(acpi, ideapad_device_ids);
936 static struct platform_driver ideapad_acpi_driver = {
937 .probe = ideapad_acpi_add,
938 .remove = ideapad_acpi_remove,
940 .name = "ideapad_acpi",
941 .owner = THIS_MODULE,
943 .acpi_match_table = ACPI_PTR(ideapad_device_ids),
947 module_platform_driver(ideapad_acpi_driver);
949 MODULE_AUTHOR("David Woodhouse <dwmw2@infradead.org>");
950 MODULE_DESCRIPTION("IdeaPad ACPI Extras");
951 MODULE_LICENSE("GPL");