]> git.baikalelectronics.ru Git - kernel.git/commit
Input: twl6040-vibra - update for device tree support
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 12 Jun 2012 08:10:02 +0000 (01:10 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 12 Jun 2012 08:10:50 +0000 (01:10 -0700)
commite5df857355d34250b94200dfb425bf8251924126
tree690a7a48f965c35a78a7dc4d3c24fa2bd303c759
parent1aa5f67d4559662b4c10e4d068a2d30241d698ce
Input: twl6040-vibra - update for device tree support

The twl6040 DT support implementation has been changed from the
originally planned.  None of the child devices going to have
compatible_of property which means that the child devices of twl6040
will be created as traditional MFD devices.  The mfd core driver will
decide (based on the DT blob) to create a device for the twl6040-vibra
or not. If the DT blob has 'vibra' section the device will be created
without pdata.  In this case the vibra driver will reach up to the
parent node to get the needed properties.

With DT booted kernel we no longer be able to link the regulators to
the vibra driver, they can be only linked to the MFD device (probed
via DT). From the vibra driver we ned to use pdev->dev.parent to get
the regulators.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Documentation/devicetree/bindings/input/twl6040-vibra.txt [deleted file]
drivers/input/misc/twl6040-vibra.c