]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: cros_ec_dev - Add a platform device ID table
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Mon, 22 Jun 2015 06:27:20 +0000 (08:27 +0200)
committerOlof Johansson <olof@lixom.net>
Wed, 7 Oct 2015 21:34:26 +0000 (14:34 -0700)
commit4d5b6092db3f92794033bad908bf416b8668b125
tree8161e3c12b05f913b80faedec672ac2e49ea6d94
parentc0c75fddc3cd490104f61128587406ae38fc4ac9
platform/chrome: cros_ec_dev - Add a platform device ID table

If the cros_ec_dev driver is built as a module, modalias information is
not filled so the module is not autoloaded. Add a platform device table
and use the MODULE_DEVICE_TABLE() macro to export that information in
the module so user-space can match the modalias uevent and autoload it.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/platform/chrome/cros_ec_dev.c