diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-08-26 19:29:04 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-08-26 19:29:04 -0400 |
commit | 0c581415b522267138d807814e526aa7534b9a61 (patch) | |
tree | b41d215210f59ace2ae62b3ee3db1ccf90599a0a /drivers/platform | |
parent | afdca01c9821134e71011029a194dd8fcb88c97e (diff) | |
parent | 7702ae0dd9b40930931914866999a2ac9734d3eb (diff) |
Merge branch 'acpi-assorted'
* acpi-assorted:
ACPI / osl: Kill macro INVALID_TABLE().
earlycpio.c: Fix the confusing comment of find_cpio_data().
ACPI / x86: Print Hot-Pluggable Field in SRAT.
ACPI / thermal: Use THERMAL_TRIPS_NONE macro to replace number
ACPI / thermal: Remove unused macros in the driver/acpi/thermal.c
ACPI / thermal: Remove the unused lock of struct acpi_thermal
ACPI / osl: Fix osi_setup_entries[] __initdata attribute location
ACPI / numa: Fix __init attribute location in slit_valid()
ACPI / dock: Fix __init attribute location in find_dock_and_bay()
ACPI / Sleep: Fix incorrect placement of __initdata
ACPI / processor: Fix incorrect placement of __initdata
ACPI / EC: Fix incorrect placement of __initdata
ACPI / scan: Drop unnecessary label from acpi_create_platform_device()
ACPI: Move acpi_bus_get_device() from bus.c to scan.c
ACPI / scan: Allow platform device creation without any IO resources
ACPI: Cleanup sparse warning on acpi_os_initialize1()
platform / thinkpad: Remove deprecated hotkey_report_mode parameter
ACPI: Remove the old /proc/acpi/event interface
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/asus-laptop.c | 1 | ||||
-rw-r--r-- | drivers/platform/x86/eeepc-laptop.c | 1 | ||||
-rw-r--r-- | drivers/platform/x86/fujitsu-laptop.c | 4 | ||||
-rw-r--r-- | drivers/platform/x86/panasonic-laptop.c | 3 | ||||
-rw-r--r-- | drivers/platform/x86/sony-laptop.c | 4 | ||||
-rw-r--r-- | drivers/platform/x86/thinkpad_acpi.c | 40 |
6 files changed, 0 insertions, 53 deletions
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index 8e268da6fdbd..0e9c169b42f8 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c | |||
@@ -1543,7 +1543,6 @@ static void asus_acpi_notify(struct acpi_device *device, u32 event) | |||
1543 | 1543 | ||
1544 | /* TODO Find a better way to handle events count. */ | 1544 | /* TODO Find a better way to handle events count. */ |
1545 | count = asus->event_count[event % 128]++; | 1545 | count = asus->event_count[event % 128]++; |
1546 | acpi_bus_generate_proc_event(asus->device, event, count); | ||
1547 | acpi_bus_generate_netlink_event(asus->device->pnp.device_class, | 1546 | acpi_bus_generate_netlink_event(asus->device->pnp.device_class, |
1548 | dev_name(&asus->device->dev), event, | 1547 | dev_name(&asus->device->dev), event, |
1549 | count); | 1548 | count); |
diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c index 5d26e70bed6c..a6afd4108beb 100644 --- a/drivers/platform/x86/eeepc-laptop.c +++ b/drivers/platform/x86/eeepc-laptop.c | |||
@@ -1269,7 +1269,6 @@ static void eeepc_acpi_notify(struct acpi_device *device, u32 event) | |||
1269 | if (event > ACPI_MAX_SYS_NOTIFY) | 1269 | if (event > ACPI_MAX_SYS_NOTIFY) |
1270 | return; | 1270 | return; |
1271 | count = eeepc->event_count[event % 128]++; | 1271 | count = eeepc->event_count[event % 128]++; |
1272 | acpi_bus_generate_proc_event(device, event, count); | ||
1273 | acpi_bus_generate_netlink_event(device->pnp.device_class, | 1272 | acpi_bus_generate_netlink_event(device->pnp.device_class, |
1274 | dev_name(&device->dev), event, | 1273 | dev_name(&device->dev), event, |
1275 | count); | 1274 | count); |
diff --git a/drivers/platform/x86/fujitsu-laptop.c b/drivers/platform/x86/fujitsu-laptop.c index 1c9386e7c58c..52b8a97efde1 100644 --- a/drivers/platform/x86/fujitsu-laptop.c +++ b/drivers/platform/x86/fujitsu-laptop.c | |||
@@ -773,8 +773,6 @@ static void acpi_fujitsu_notify(struct acpi_device *device, u32 event) | |||
773 | else | 773 | else |
774 | set_lcd_level(newb); | 774 | set_lcd_level(newb); |
775 | } | 775 | } |
776 | acpi_bus_generate_proc_event(fujitsu->dev, | ||
777 | ACPI_VIDEO_NOTIFY_INC_BRIGHTNESS, 0); | ||
778 | keycode = KEY_BRIGHTNESSUP; | 776 | keycode = KEY_BRIGHTNESSUP; |
779 | } else if (oldb > newb) { | 777 | } else if (oldb > newb) { |
780 | if (disable_brightness_adjust != 1) { | 778 | if (disable_brightness_adjust != 1) { |
@@ -783,8 +781,6 @@ static void acpi_fujitsu_notify(struct acpi_device *device, u32 event) | |||
783 | else | 781 | else |
784 | set_lcd_level(newb); | 782 | set_lcd_level(newb); |
785 | } | 783 | } |
786 | acpi_bus_generate_proc_event(fujitsu->dev, | ||
787 | ACPI_VIDEO_NOTIFY_DEC_BRIGHTNESS, 0); | ||
788 | keycode = KEY_BRIGHTNESSDOWN; | 784 | keycode = KEY_BRIGHTNESSDOWN; |
789 | } | 785 | } |
790 | break; | 786 | break; |
diff --git a/drivers/platform/x86/panasonic-laptop.c b/drivers/platform/x86/panasonic-laptop.c index 4add9a31bf60..984253da365d 100644 --- a/drivers/platform/x86/panasonic-laptop.c +++ b/drivers/platform/x86/panasonic-laptop.c | |||
@@ -464,9 +464,6 @@ static void acpi_pcc_generate_keyinput(struct pcc_acpi *pcc) | |||
464 | "error getting hotkey status\n")); | 464 | "error getting hotkey status\n")); |
465 | return; | 465 | return; |
466 | } | 466 | } |
467 | |||
468 | acpi_bus_generate_proc_event(pcc->device, HKEY_NOTIFY, result); | ||
469 | |||
470 | if (!sparse_keymap_report_event(hotk_input_dev, | 467 | if (!sparse_keymap_report_event(hotk_input_dev, |
471 | result & 0xf, result & 0x80, false)) | 468 | result & 0xf, result & 0x80, false)) |
472 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 469 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, |
diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index 3a1b6bf326a8..d3fd52036fd6 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/drivers/platform/x86/sony-laptop.c | |||
@@ -1275,9 +1275,6 @@ static void sony_nc_notify(struct acpi_device *device, u32 event) | |||
1275 | ev_type = HOTKEY; | 1275 | ev_type = HOTKEY; |
1276 | sony_laptop_report_input_event(real_ev); | 1276 | sony_laptop_report_input_event(real_ev); |
1277 | } | 1277 | } |
1278 | |||
1279 | acpi_bus_generate_proc_event(sony_nc_acpi_device, ev_type, real_ev); | ||
1280 | |||
1281 | acpi_bus_generate_netlink_event(sony_nc_acpi_device->pnp.device_class, | 1278 | acpi_bus_generate_netlink_event(sony_nc_acpi_device->pnp.device_class, |
1282 | dev_name(&sony_nc_acpi_device->dev), ev_type, real_ev); | 1279 | dev_name(&sony_nc_acpi_device->dev), ev_type, real_ev); |
1283 | } | 1280 | } |
@@ -4246,7 +4243,6 @@ static irqreturn_t sony_pic_irq(int irq, void *dev_id) | |||
4246 | 4243 | ||
4247 | found: | 4244 | found: |
4248 | sony_laptop_report_input_event(device_event); | 4245 | sony_laptop_report_input_event(device_event); |
4249 | acpi_bus_generate_proc_event(dev->acpi_dev, 1, device_event); | ||
4250 | sonypi_compat_report_event(device_event); | 4246 | sonypi_compat_report_event(device_event); |
4251 | return IRQ_HANDLED; | 4247 | return IRQ_HANDLED; |
4252 | } | 4248 | } |
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 54d31c0a9840..be67e5e28d18 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c | |||
@@ -2022,8 +2022,6 @@ static u32 hotkey_driver_mask; /* events needed by the driver */ | |||
2022 | static u32 hotkey_user_mask; /* events visible to userspace */ | 2022 | static u32 hotkey_user_mask; /* events visible to userspace */ |
2023 | static u32 hotkey_acpi_mask; /* events enabled in firmware */ | 2023 | static u32 hotkey_acpi_mask; /* events enabled in firmware */ |
2024 | 2024 | ||
2025 | static unsigned int hotkey_report_mode; | ||
2026 | |||
2027 | static u16 *hotkey_keycode_map; | 2025 | static u16 *hotkey_keycode_map; |
2028 | 2026 | ||
2029 | static struct attribute_set *hotkey_dev_attributes; | 2027 | static struct attribute_set *hotkey_dev_attributes; |
@@ -2282,10 +2280,6 @@ static struct tp_acpi_drv_struct ibm_hotkey_acpidriver; | |||
2282 | static void tpacpi_hotkey_send_key(unsigned int scancode) | 2280 | static void tpacpi_hotkey_send_key(unsigned int scancode) |
2283 | { | 2281 | { |
2284 | tpacpi_input_send_key_masked(scancode); | 2282 | tpacpi_input_send_key_masked(scancode); |
2285 | if (hotkey_report_mode < 2) { | ||
2286 | acpi_bus_generate_proc_event(ibm_hotkey_acpidriver.device, | ||
2287 | 0x80, TP_HKEY_EV_HOTKEY_BASE + scancode); | ||
2288 | } | ||
2289 | } | 2283 | } |
2290 | 2284 | ||
2291 | static void hotkey_read_nvram(struct tp_nvram_state *n, const u32 m) | 2285 | static void hotkey_read_nvram(struct tp_nvram_state *n, const u32 m) |
@@ -2882,18 +2876,6 @@ static void hotkey_tablet_mode_notify_change(void) | |||
2882 | "hotkey_tablet_mode"); | 2876 | "hotkey_tablet_mode"); |
2883 | } | 2877 | } |
2884 | 2878 | ||
2885 | /* sysfs hotkey report_mode -------------------------------------------- */ | ||
2886 | static ssize_t hotkey_report_mode_show(struct device *dev, | ||
2887 | struct device_attribute *attr, | ||
2888 | char *buf) | ||
2889 | { | ||
2890 | return snprintf(buf, PAGE_SIZE, "%d\n", | ||
2891 | (hotkey_report_mode != 0) ? hotkey_report_mode : 1); | ||
2892 | } | ||
2893 | |||
2894 | static struct device_attribute dev_attr_hotkey_report_mode = | ||
2895 | __ATTR(hotkey_report_mode, S_IRUGO, hotkey_report_mode_show, NULL); | ||
2896 | |||
2897 | /* sysfs wakeup reason (pollable) -------------------------------------- */ | 2879 | /* sysfs wakeup reason (pollable) -------------------------------------- */ |
2898 | static ssize_t hotkey_wakeup_reason_show(struct device *dev, | 2880 | static ssize_t hotkey_wakeup_reason_show(struct device *dev, |
2899 | struct device_attribute *attr, | 2881 | struct device_attribute *attr, |
@@ -2935,7 +2917,6 @@ static struct attribute *hotkey_attributes[] __initdata = { | |||
2935 | &dev_attr_hotkey_enable.attr, | 2917 | &dev_attr_hotkey_enable.attr, |
2936 | &dev_attr_hotkey_bios_enabled.attr, | 2918 | &dev_attr_hotkey_bios_enabled.attr, |
2937 | &dev_attr_hotkey_bios_mask.attr, | 2919 | &dev_attr_hotkey_bios_mask.attr, |
2938 | &dev_attr_hotkey_report_mode.attr, | ||
2939 | &dev_attr_hotkey_wakeup_reason.attr, | 2920 | &dev_attr_hotkey_wakeup_reason.attr, |
2940 | &dev_attr_hotkey_wakeup_hotunplug_complete.attr, | 2921 | &dev_attr_hotkey_wakeup_hotunplug_complete.attr, |
2941 | &dev_attr_hotkey_mask.attr, | 2922 | &dev_attr_hotkey_mask.attr, |
@@ -3439,11 +3420,6 @@ static int __init hotkey_init(struct ibm_init_struct *iibm) | |||
3439 | "initial masks: user=0x%08x, fw=0x%08x, poll=0x%08x\n", | 3420 | "initial masks: user=0x%08x, fw=0x%08x, poll=0x%08x\n", |
3440 | hotkey_user_mask, hotkey_acpi_mask, hotkey_source_mask); | 3421 | hotkey_user_mask, hotkey_acpi_mask, hotkey_source_mask); |
3441 | 3422 | ||
3442 | dbg_printk(TPACPI_DBG_INIT | TPACPI_DBG_HKEY, | ||
3443 | "legacy ibm/hotkey event reporting over procfs %s\n", | ||
3444 | (hotkey_report_mode < 2) ? | ||
3445 | "enabled" : "disabled"); | ||
3446 | |||
3447 | tpacpi_inputdev->open = &hotkey_inputdev_open; | 3423 | tpacpi_inputdev->open = &hotkey_inputdev_open; |
3448 | tpacpi_inputdev->close = &hotkey_inputdev_close; | 3424 | tpacpi_inputdev->close = &hotkey_inputdev_close; |
3449 | 3425 | ||
@@ -3737,13 +3713,6 @@ static void hotkey_notify(struct ibm_struct *ibm, u32 event) | |||
3737 | "event happened to %s\n", TPACPI_MAIL); | 3713 | "event happened to %s\n", TPACPI_MAIL); |
3738 | } | 3714 | } |
3739 | 3715 | ||
3740 | /* Legacy events */ | ||
3741 | if (!ignore_acpi_ev && | ||
3742 | (send_acpi_ev || hotkey_report_mode < 2)) { | ||
3743 | acpi_bus_generate_proc_event(ibm->acpi->device, | ||
3744 | event, hkey); | ||
3745 | } | ||
3746 | |||
3747 | /* netlink events */ | 3716 | /* netlink events */ |
3748 | if (!ignore_acpi_ev && send_acpi_ev) { | 3717 | if (!ignore_acpi_ev && send_acpi_ev) { |
3749 | acpi_bus_generate_netlink_event( | 3718 | acpi_bus_generate_netlink_event( |
@@ -8840,11 +8809,6 @@ module_param(brightness_enable, uint, 0444); | |||
8840 | MODULE_PARM_DESC(brightness_enable, | 8809 | MODULE_PARM_DESC(brightness_enable, |
8841 | "Enables backlight control when 1, disables when 0"); | 8810 | "Enables backlight control when 1, disables when 0"); |
8842 | 8811 | ||
8843 | module_param(hotkey_report_mode, uint, 0444); | ||
8844 | MODULE_PARM_DESC(hotkey_report_mode, | ||
8845 | "used for backwards compatibility with userspace, " | ||
8846 | "see documentation"); | ||
8847 | |||
8848 | #ifdef CONFIG_THINKPAD_ACPI_ALSA_SUPPORT | 8812 | #ifdef CONFIG_THINKPAD_ACPI_ALSA_SUPPORT |
8849 | module_param_named(volume_mode, volume_mode, uint, 0444); | 8813 | module_param_named(volume_mode, volume_mode, uint, 0444); |
8850 | MODULE_PARM_DESC(volume_mode, | 8814 | MODULE_PARM_DESC(volume_mode, |
@@ -8975,10 +8939,6 @@ static int __init thinkpad_acpi_module_init(void) | |||
8975 | 8939 | ||
8976 | tpacpi_lifecycle = TPACPI_LIFE_INIT; | 8940 | tpacpi_lifecycle = TPACPI_LIFE_INIT; |
8977 | 8941 | ||
8978 | /* Parameter checking */ | ||
8979 | if (hotkey_report_mode > 2) | ||
8980 | return -EINVAL; | ||
8981 | |||
8982 | /* Driver-level probe */ | 8942 | /* Driver-level probe */ |
8983 | 8943 | ||
8984 | ret = get_thinkpad_model_data(&thinkpad_id); | 8944 | ret = get_thinkpad_model_data(&thinkpad_id); |