]> asedeno.scripts.mit.edu Git - linux.git/commit
regulator: mt6397: Add platform device ID table
authorJavier Martinez Canillas <javier@osg.samsung.com>
Mon, 25 Jan 2016 14:37:15 +0000 (11:37 -0300)
committerMark Brown <broonie@kernel.org>
Wed, 27 Jan 2016 15:29:07 +0000 (15:29 +0000)
commit288a89bf436fa3682742d41b2bc1b243ff2ded85
tree7ba25f317cda7091bb5f0dafbc55ef14ee810c4e
parent92e963f50fc74041b5e9e744c330dca48e04f08d
regulator: mt6397: Add platform device ID table

The platform bus_type .match callback attempts to match the platform device
name with an entry on the .id_table if provided and fallbacks to match with
the driver's name if a table is not provided.

Using a platform device ID to match is more explicit, allows the driver to
support more than one device and also the MODULE_DEVICE_TABLE macro can be
used to export the module aliases information instead of the MODULE_ALIAS.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mt6397-regulator.c