]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: ltc2941-battery-gauge: Add OF device ID table
authorJavier Martinez Canillas <javier@osg.samsung.com>
Wed, 29 Mar 2017 16:00:57 +0000 (12:00 -0400)
committerSebastian Reichel <sre@kernel.org>
Thu, 13 Apr 2017 23:41:34 +0000 (01:41 +0200)
commitab7e7596e133a7b17ec9010d233e68911a2f29db
tree4952448f8e33baec6e4de7727a116ca7dd290db1
parent6e907df456c00ba06314a23ce4360c87ec7f05a0
power: supply: ltc2941-battery-gauge: Add OF device ID table

The driver doesn't have a struct of_device_id table but supported devices
are registered via Device Trees. This is working on the assumption that a
I2C device registered via OF will always match a legacy I2C device ID and
that the MODALIAS reported will always be of the form i2c:<device>.

But this could change in the future so the correct approach is to have an
OF device ID table if the devices are registered via OF.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/ltc2941-battery-gauge.c