kernel-fxtec-pro1x/drivers/platform/x86
Damien Thébault 2502e5a025 platform/x86: dell-laptop: Fix backlight detection
Fix return code check for "max brightness" ACPI call.

The Dell laptop ACPI video brightness control is not present on dell
laptops anymore, but was present in older kernel versions.

The code that checks the return value is incorrect since the SMM
refactoring.

The old code was:
  if (buffer->output[0] == 0)

Which was changed to:
  ret = dell_send_request(...)
  if (ret)

However, dell_send_request() will return 0 if buffer->output[0] == 0,
so we must change the check to:
  if (ret == 0)

This issue was found on a Dell M4800 laptop, and the fix tested on it
as well.

Fixes: 549b4930f0 ("dell-smbios: Introduce dispatcher for SMM calls")
Signed-off-by: Damien Thébault <damien@dtbo.net>
Tested-by: Damien Thébault <damien@dtbo.net>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Reviewed-by: Mario Limonciello <mario.limonciello@dell.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
2018-07-20 15:29:59 +03:00
..
acer-wireless.c
acer-wmi.c platform/x86: acer-wmi: add another KEY_POWER keycode 2018-05-22 12:24:12 +03:00
acerhdf.c
alienware-wmi.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
amilo-rfkill.c
apple-gmux.c platform/x86: apple-gmux: fix gmux_get_client_id()'s return type 2018-04-24 19:55:33 +03:00
asus-laptop.c platform/x86: Simplify getting .drvdata 2018-04-23 08:52:59 -07:00
asus-nb-wmi.c
asus-wireless.c platform/x86: asus-wireless: Fix format specifier 2018-05-31 17:16:59 +03:00
asus-wmi.c platform/x86: asus-wmi: Fix NULL pointer dereference 2018-05-31 15:19:16 +03:00
asus-wmi.h
classmate-laptop.c
compal-laptop.c treewide: Use DEVICE_ATTR_RW 2018-01-09 16:33:31 +01:00
dell-laptop.c platform/x86: dell-laptop: Fix backlight detection 2018-07-20 15:29:59 +03:00
dell-rbtn.c
dell-rbtn.h
dell-smbios-base.c platform/x86: dell-smbios: Match on www.dell.com in OEM strings too 2018-04-23 08:52:59 -07:00
dell-smbios-smm.c platform/x86: dell-smbios: Link all dell-smbios-* modules together 2018-03-09 09:35:42 -08:00
dell-smbios-wmi.c platform/x86: dell-smbios: Link all dell-smbios-* modules together 2018-03-09 09:35:42 -08:00
dell-smbios.h platform/x86: dell-smbios: Link all dell-smbios-* modules together 2018-03-09 09:35:42 -08:00
dell-smo8800.c
dell-wmi-aio.c
dell-wmi-descriptor.c
dell-wmi-descriptor.h
dell-wmi-led.c
dell-wmi.c platform/x86: dell-wmi: Ignore new rfkill and fn-lock events 2018-06-04 12:20:22 +03:00
eeepc-laptop.c treewide: Align function definition open/close braces 2018-03-26 11:13:09 +02:00
eeepc-wmi.c
fujitsu-laptop.c platform/x86: fujitsu-laptop: Simplify soft key handling 2018-04-19 16:25:54 -07:00
fujitsu-tablet.c
gpd-pocket-fan.c platform/x86: GPD pocket fan: fix spelling mistake: "Mill-celcius" -> "millicelsius" 2018-02-15 12:21:48 +02:00
hdaps.c
hp-wireless.c
hp-wmi.c
hp_accel.c
ibm_rtl.c
ideapad-laptop.c platform/x86: ideapad-laptop: Add E42-80 to no_hw_rfkill 2018-06-01 17:49:09 +03:00
intel-hid.c intel-hid: support KEY_ROTATE_LOCK_TOGGLE 2018-04-02 18:26:59 +03:00
intel-rst.c
intel-smartconnect.c
intel-vbtn.c platform/x86: intel-vbtn: Reset wakeup capable flag on removal 2018-03-01 13:08:25 +02:00
intel-wmi-thunderbolt.c
intel_bxtwc_tmu.c
intel_cht_int33fe.c platform/x86: intel_cht_int33fe: Add device connections for the Type-C port 2018-03-22 13:49:28 +01:00
intel_chtdc_ti_pwrbtn.c
intel_int0002_vgpio.c
intel_ips.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
intel_ips.h
intel_menlow.c
intel_mid_powerbtn.c
intel_mid_thermal.c
intel_oaktrail.c
intel_pmc_core.c platform/x86: intel_pmc_core: Special case for Coffeelake 2018-02-04 15:55:53 +02:00
intel_pmc_core.h platform/x86: intel_pmc_core: Special case for Coffeelake 2018-02-04 15:55:53 +02:00
intel_pmc_ipc.c
intel_punit_ipc.c
intel_scu_ipc.c platform: x86: intel_scu_ipc: Replace mdelay with usleep_range in intel_scu_ipc_i2c_cntrl 2018-04-23 17:24:23 +03:00
intel_scu_ipcutil.c
intel_telemetry_core.c
intel_telemetry_debugfs.c
intel_telemetry_pltdrv.c
intel_turbo_max_3.c platform/x86: intel_turbo_max_3: Remove restriction for HWP platforms 2018-02-15 12:21:48 +02:00
Kconfig fix a series of Documentation/ broken file name references 2018-06-15 18:10:01 -03:00
Makefile platform/x86: dell-smbios: Link all dell-smbios-* modules together 2018-03-09 09:35:42 -08:00
mlx-platform.c platform/x86: mlx-platform: Add LED platform driver activation 2018-06-01 09:54:34 -07:00
msi-laptop.c
msi-wmi.c
mxm-wmi.c
panasonic-laptop.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
peaq-wmi.c
pmc_atom.c seq_file: Introduce DEFINE_SHOW_ATTRIBUTE() helper macro 2018-02-07 12:50:21 +02:00
pvpanic.c
samsung-laptop.c platform/x86: Simplify getting .drvdata 2018-04-23 08:52:59 -07:00
samsung-q10.c
silead_dmi.c platform/x86: silead_dmi: Add entry for Chuwi Hi8 tablet touchscreen 2018-06-08 14:22:15 +03:00
sony-laptop.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
surface3-wmi.c
surface3_button.c
surfacepro3_button.c platform/x86: surfacepro3: Support for wakeup from suspend-to-idle 2018-01-11 18:54:50 +01:00
tc1100-wmi.c
thinkpad_acpi.c platform-drivers-x86 for v4.18-1 2018-06-14 16:30:30 +09:00
topstar-laptop.c platform/x86: topstar-laptop: replace licence text with SPDX tag 2018-02-23 18:43:42 +02:00
toshiba-wmi.c
toshiba_acpi.c proc: introduce proc_create_single{,_data} 2018-05-16 07:23:35 +02:00
toshiba_bluetooth.c
toshiba_haps.c
wmi-bmof.c
wmi.c platform/x86: wmi: Fix misuse of vsprintf extension %pULL 2018-03-01 10:01:39 -08:00
xo1-rfkill.c
xo15-ebook.c