diff options
author | Michał Kępień <kernel@kempniu.pl> | 2016-03-04 14:09:06 +0100 |
---|---|---|
committer | Darren Hart <dvhart@linux.intel.com> | 2016-03-23 10:05:49 -0700 |
commit | e8edf53b198f5656d5ae99685bc6c1f616662b3d (patch) | |
tree | d17533b7dd0af9d1d35acd5ef56e928113439f46 /drivers/platform/x86/dell-laptop.c | |
parent | 4db9675d927a71faa66e5ab128d2390d6329750b (diff) | |
download | op-kernel-dev-e8edf53b198f5656d5ae99685bc6c1f616662b3d.zip op-kernel-dev-e8edf53b198f5656d5ae99685bc6c1f616662b3d.tar.gz |
dell-laptop: move dell_smi_error() to dell-smbios
The dell_smi_error() method could be used by modules other than
dell-laptop for convenient translation of SMBIOS request errors into
errno values. Thus, move it to dell-smbios.
Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/dell-laptop.c')
-rw-r--r-- | drivers/platform/x86/dell-laptop.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c index 76064c8..cbafb95 100644 --- a/drivers/platform/x86/dell-laptop.c +++ b/drivers/platform/x86/dell-laptop.c @@ -273,20 +273,6 @@ static const struct dmi_system_id dell_quirks[] __initconst = { { } }; -static inline int dell_smi_error(int value) -{ - switch (value) { - case 0: /* Completed successfully */ - return 0; - case -1: /* Completed with error */ - return -EIO; - case -2: /* Function not supported */ - return -ENXIO; - default: /* Unknown error */ - return -EINVAL; - } -} - /* * Derived from information in smbios-wireless-ctl: * |