Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: adp5588-keys - use more obvious i2c_device_id name string

KBUILD_MODNAME normalizes "-" to "_". This is non-obvious and results in
the id name for ADP5588 being "adp5588_keys" while the other supported id
is "adp5587-keys". So avoid this define and use an explicit string as the
id name.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Michael Hennerich and committed by
Dmitry Torokhov
d537155a b534422b

+1 -1
+1 -1
drivers/input/keyboard/adp5588-keys.c
··· 660 660 #endif 661 661 662 662 static const struct i2c_device_id adp5588_id[] = { 663 - { KBUILD_MODNAME, 0 }, 663 + { "adp5588-keys", 0 }, 664 664 { "adp5587-keys", 0 }, 665 665 { } 666 666 };