Skip to content
Commit 6eb35784 authored by Nathan Chancellor's avatar Nathan Chancellor Committed by Lee Jones
Browse files

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: default avatarNathan Chancellor <natechancellor@gmail.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 697894b9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment