platform/chrome: Use kstrtobool() instead of strtobool()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 1 Nov 2022 21:14:01 +0000 (22:14 +0100)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 2 Nov 2022 04:22:55 +0000 (12:22 +0800)
commit58f23a6795a6c165b8c04041bacb999119f9dbc9
tree23abc9a103420e5b07307919d7d62c02cf7950f7
parent9888feb9c68b799e758a654aae0a032871e493c2
platform/chrome: Use kstrtobool() instead of strtobool()

strtobool() is the same as kstrtobool().
However, the latter is more used within the kernel.

In order to remove strtobool() and slightly simplify kstrtox.h, switch to
the other function name.

While at it, include the corresponding header file (<linux/kstrtox.h>)

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/8d66b4688c05a44b592a4d20e2660e9067163276.1667336095.git.christophe.jaillet@wanadoo.fr
drivers/platform/chrome/cros_ec_lightbar.c