]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: cros_ec: Avoid unneeded internal declaration warning
authorNathan Chancellor <natechancellor@gmail.com>
Thu, 27 Sep 2018 03:33:17 +0000 (20:33 -0700)
committerLee Jones <lee.jones@linaro.org>
Tue, 23 Oct 2018 07:58:34 +0000 (08:58 +0100)
commit7ca72528b80cbf5e08cd636f9ee99a0da43c79ce
tree70ba4f7285879ffa142c57f6c192c66380ca8fa0
parentb9aa1af31c4cb51446cc21f046af45bb8ab52828
mfd: cros_ec: Avoid unneeded internal declaration warning

Clang warns:

drivers/mfd/cros_ec_dev.c:509:40: warning: variable 'cros_ec_id' is not
needed and will not be emitted [-Wunneeded-internal-declaration]
static const struct platform_device_id cros_ec_id[] = {
                                       ^
1 warning generated.

Avoid this warning by adding it to the cros_ec_dev_driver definition
under the id_table member like all other platform drivers.

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/cros_ec_dev.c