diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-02-24 01:11:14 +0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-02-26 11:02:42 +0400 |
commit | d6b0c58048d2c8c6f4955c37f670125b2792cd14 (patch) | |
tree | a22d3680ebcaca7681f647ac0ab050ef1f51c968 /drivers/input/serio | |
parent | 7241443f67bb352183bcfd7e3b807b87f2777b5d (diff) | |
download | linux-d6b0c58048d2c8c6f4955c37f670125b2792cd14.tar.xz |
devres: allow adding custom actions to the stack
Sometimes drivers need to execute one-off actions in their error handling
or device teardown paths. An example would be toggling a GPIO line to
reset the controlled device into predefined state.
To allow performing such actions when using managed resources let's allow
adding them to stack/group of devres resources.
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/serio')
0 files changed, 0 insertions, 0 deletions