]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: hp-wmi: Refactor postcode_store() to follow standard patterns
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 15 May 2020 13:22:37 +0000 (16:22 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 30 May 2020 14:43:31 +0000 (17:43 +0300)
commitf339820320c6855aed8bf616c478f9cafc77b6a9
tree770afb86e7ae1b07ad524d201fac7aaab3d75a63
parentbc2ddac9216ed1be19ca30f2f3086ddc6319d86e
platform/x86: hp-wmi: Refactor postcode_store() to follow standard patterns

Refactor postcode_store() to follow standard patterns of error handling.

While at it, switch to use kstrtobool().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/hp-wmi.c