driver core: devres: introduce devres_for_each_res
authorMing Lei <ming.lei@canonical.com>
Sat, 4 Aug 2012 04:01:26 +0000 (12:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Aug 2012 20:30:29 +0000 (13:30 -0700)
commitbddb1b9078505bb0e430c87c5015c0963f7a594f
treeef3d3a201dd23633d5c2dad8fb00be82a35f3023
parentf531f05ae9437df5ba1ebd90017e4dd5526048e9
driver core: devres: introduce devres_for_each_res

This patch introduces one devres API of devres_for_each_res
so that the device's driver can iterate each resource it has
interest in.

The firmware loader will use the API to get each firmware name
from the device instance.

Signed-off-by: Ming Lei <ming.lei@canonical.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/devres.c
include/linux/device.h