]> git.karo-electronics.de Git - karo-tx-linux.git/commit
platform/x86: acer-wmi: Using zero as first WMI instance number
authorLee, Chun-Yi <joeyli.kernel@gmail.com>
Tue, 20 Jun 2017 09:06:23 +0000 (17:06 +0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 20 Jun 2017 17:23:17 +0000 (20:23 +0300)
commit62fc743cafd07e134292d510827a80b3c01df784
tree2d8a96d0c5b346eb100ae7a6966f4244804f1a6e
parentb2f2fe205c3b9b595dc50ee431230a45d03f9c2c
platform/x86: acer-wmi: Using zero as first WMI instance number

Pali Rohár found that there have some wmi query/evaluation
code that they used 'one' as the first WMI instance number.
But the number is indexed from zero that it's must less than
the instance_count in _WDG.

This patch changes those instance number from one to zero.

Cc: Darren Hart <dvhart@infradead.org>
Cc: Andy Shevchenko <andy@infradead.org>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: "Lee, Chun-Yi" <jlee@suse.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/acer-wmi.c