aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86
diff options
context:
space:
mode:
authorThomas Renninger <trenn@suse.de>2013-07-03 08:48:39 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-07-15 07:57:00 -0400
commit8b5301c5ff2568236c6e3b3d0c93a3e4194ec3f5 (patch)
treea6db532020f53f2689e6e583a5d3f5f17a80913a /drivers/platform/x86
parent1696d9dc57e062ce5200f6a42a6aaada15b434bb (diff)
platform / thinkpad: Remove deprecated hotkey_report_mode parameter
It is somewhat strange that the default value to support the depracated interface is set (1). Anyway this has existed for years. The previous patch already removed the functionality to still export events through /proc. Now this param is useless and should vanish too. Signed-off-by: Thomas Renninger <trenn@suse.de> Acked-by: Matthew Garrett <matthew.garrett@nebula.com> Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r--drivers/platform/x86/thinkpad_acpi.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index e946c0d58a97..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 */
2022static u32 hotkey_user_mask; /* events visible to userspace */ 2022static u32 hotkey_user_mask; /* events visible to userspace */
2023static u32 hotkey_acpi_mask; /* events enabled in firmware */ 2023static u32 hotkey_acpi_mask; /* events enabled in firmware */
2024 2024
2025static unsigned int hotkey_report_mode;
2026
2027static u16 *hotkey_keycode_map; 2025static u16 *hotkey_keycode_map;
2028 2026
2029static struct attribute_set *hotkey_dev_attributes; 2027static struct attribute_set *hotkey_dev_attributes;
@@ -2878,18 +2876,6 @@ static void hotkey_tablet_mode_notify_change(void)
2878 "hotkey_tablet_mode"); 2876 "hotkey_tablet_mode");
2879} 2877}
2880 2878
2881/* sysfs hotkey report_mode -------------------------------------------- */
2882static ssize_t hotkey_report_mode_show(struct device *dev,
2883 struct device_attribute *attr,
2884 char *buf)
2885{
2886 return snprintf(buf, PAGE_SIZE, "%d\n",
2887 (hotkey_report_mode != 0) ? hotkey_report_mode : 1);
2888}
2889
2890static struct device_attribute dev_attr_hotkey_report_mode =
2891 __ATTR(hotkey_report_mode, S_IRUGO, hotkey_report_mode_show, NULL);
2892
2893/* sysfs wakeup reason (pollable) -------------------------------------- */ 2879/* sysfs wakeup reason (pollable) -------------------------------------- */
2894static ssize_t hotkey_wakeup_reason_show(struct device *dev, 2880static ssize_t hotkey_wakeup_reason_show(struct device *dev,
2895 struct device_attribute *attr, 2881 struct device_attribute *attr,
@@ -2931,7 +2917,6 @@ static struct attribute *hotkey_attributes[] __initdata = {
2931 &dev_attr_hotkey_enable.attr, 2917 &dev_attr_hotkey_enable.attr,
2932 &dev_attr_hotkey_bios_enabled.attr, 2918 &dev_attr_hotkey_bios_enabled.attr,
2933 &dev_attr_hotkey_bios_mask.attr, 2919 &dev_attr_hotkey_bios_mask.attr,
2934 &dev_attr_hotkey_report_mode.attr,
2935 &dev_attr_hotkey_wakeup_reason.attr, 2920 &dev_attr_hotkey_wakeup_reason.attr,
2936 &dev_attr_hotkey_wakeup_hotunplug_complete.attr, 2921 &dev_attr_hotkey_wakeup_hotunplug_complete.attr,
2937 &dev_attr_hotkey_mask.attr, 2922 &dev_attr_hotkey_mask.attr,
@@ -3435,11 +3420,6 @@ static int __init hotkey_init(struct ibm_init_struct *iibm)
3435 "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",
3436 hotkey_user_mask, hotkey_acpi_mask, hotkey_source_mask); 3421 hotkey_user_mask, hotkey_acpi_mask, hotkey_source_mask);
3437 3422
3438 dbg_printk(TPACPI_DBG_INIT | TPACPI_DBG_HKEY,
3439 "legacy ibm/hotkey event reporting over procfs %s\n",
3440 (hotkey_report_mode < 2) ?
3441 "enabled" : "disabled");
3442
3443 tpacpi_inputdev->open = &hotkey_inputdev_open; 3423 tpacpi_inputdev->open = &hotkey_inputdev_open;
3444 tpacpi_inputdev->close = &hotkey_inputdev_close; 3424 tpacpi_inputdev->close = &hotkey_inputdev_close;
3445 3425
@@ -8829,11 +8809,6 @@ module_param(brightness_enable, uint, 0444);
8829MODULE_PARM_DESC(brightness_enable, 8809MODULE_PARM_DESC(brightness_enable,
8830 "Enables backlight control when 1, disables when 0"); 8810 "Enables backlight control when 1, disables when 0");
8831 8811
8832module_param(hotkey_report_mode, uint, 0444);
8833MODULE_PARM_DESC(hotkey_report_mode,
8834 "used for backwards compatibility with userspace, "
8835 "see documentation");
8836
8837#ifdef CONFIG_THINKPAD_ACPI_ALSA_SUPPORT 8812#ifdef CONFIG_THINKPAD_ACPI_ALSA_SUPPORT
8838module_param_named(volume_mode, volume_mode, uint, 0444); 8813module_param_named(volume_mode, volume_mode, uint, 0444);
8839MODULE_PARM_DESC(volume_mode, 8814MODULE_PARM_DESC(volume_mode,
@@ -8964,10 +8939,6 @@ static int __init thinkpad_acpi_module_init(void)
8964 8939
8965 tpacpi_lifecycle = TPACPI_LIFE_INIT; 8940 tpacpi_lifecycle = TPACPI_LIFE_INIT;
8966 8941
8967 /* Parameter checking */
8968 if (hotkey_report_mode > 2)
8969 return -EINVAL;
8970
8971 /* Driver-level probe */ 8942 /* Driver-level probe */
8972 8943
8973 ret = get_thinkpad_model_data(&thinkpad_id); 8944 ret = get_thinkpad_model_data(&thinkpad_id);