OSDN Git Service

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)
commite7ec014a47e4d68fc01561d0541a50650646317c
tree690a7a48f965c35a78a7dc4d3c24fa2bd303c759
parent32edbf562cabc0fb927692c86274c3cd2ccde0d0
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