wacom_sys.c (5b779fc52020ac6f5beea31c5eafc3d25cf70dc1) wacom_sys.c (c0265a9488c2a3aea315b61a9239d5494997fa71)
1/*
2 * drivers/input/tablet/wacom_sys.c
3 *
4 * USB Wacom tablet support - system specific code
5 */
6
7/*
8 * This program is free software; you can redistribute it and/or modify

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

752
753static int wacom_led_control(struct wacom *wacom)
754{
755 unsigned char *buf;
756 int retval;
757 unsigned char report_id = WAC_CMD_LED_CONTROL;
758 int buf_size = 9;
759
1/*
2 * drivers/input/tablet/wacom_sys.c
3 *
4 * USB Wacom tablet support - system specific code
5 */
6
7/*
8 * This program is free software; you can redistribute it and/or modify

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

752
753static int wacom_led_control(struct wacom *wacom)
754{
755 unsigned char *buf;
756 int retval;
757 unsigned char report_id = WAC_CMD_LED_CONTROL;
758 int buf_size = 9;
759
760 if (!hid_get_drvdata(wacom->hdev))
761 return -ENODEV;
762
763 if (!wacom->led.groups)
764 return -ENOTSUPP;
765
766 if (wacom->wacom_wac.pid) { /* wireless connected */
767 report_id = WAC_CMD_WL_LED_CONTROL;
768 buf_size = 13;
769 }
770 buf = kzalloc(buf_size, GFP_KERNEL);

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

2492 hid_hw_stop(hdev);
2493
2494 cancel_work_sync(&wacom->wireless_work);
2495 cancel_work_sync(&wacom->battery_work);
2496 cancel_work_sync(&wacom->remote_work);
2497 if (hdev->bus == BUS_BLUETOOTH)
2498 device_remove_file(&hdev->dev, &dev_attr_speed);
2499
760 if (!wacom->led.groups)
761 return -ENOTSUPP;
762
763 if (wacom->wacom_wac.pid) { /* wireless connected */
764 report_id = WAC_CMD_WL_LED_CONTROL;
765 buf_size = 13;
766 }
767 buf = kzalloc(buf_size, GFP_KERNEL);

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

2489 hid_hw_stop(hdev);
2490
2491 cancel_work_sync(&wacom->wireless_work);
2492 cancel_work_sync(&wacom->battery_work);
2493 cancel_work_sync(&wacom->remote_work);
2494 if (hdev->bus == BUS_BLUETOOTH)
2495 device_remove_file(&hdev->dev, &dev_attr_speed);
2496
2497 /* make sure we don't trigger the LEDs */
2498 wacom_led_groups_release(wacom);
2500 wacom_release_resources(wacom);
2501
2502 hid_set_drvdata(hdev, NULL);
2503}
2504
2505#ifdef CONFIG_PM
2506static int wacom_resume(struct hid_device *hdev)
2507{

--- 38 unchanged lines hidden ---
2499 wacom_release_resources(wacom);
2500
2501 hid_set_drvdata(hdev, NULL);
2502}
2503
2504#ifdef CONFIG_PM
2505static int wacom_resume(struct hid_device *hdev)
2506{

--- 38 unchanged lines hidden ---