]> 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)
commit97c50fd85e677258439edc7529caf1fc68b083b7
tree770afb86e7ae1b07ad524d201fac7aaab3d75a63
parent761da2b6566e9789635150a3967a74905763ee1b
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