diff options
author | Witold Szczeponik | 2012-12-15 01:00:14 +0100 |
---|---|---|
committer | Rafael J. Wysocki | 2013-01-03 13:10:52 +0100 |
commit | c9377667e6cdf4ac910b0932868275eb0dbfcfeb (patch) | |
tree | 189ac5c14e40bad116528c110d6c0251cbcb7168 /drivers/tty | |
parent | d1c3ed669a2d452cacfb48c2d171a1f364dae2ed (diff) |
PNP: Simplify setting of resources
This patch factors out the setting of PNP resources into one function which is
then reused for all PNP resource types. This makes the code more concise and
avoids duplication. The parameters "type" and "flags" are not used at the
moment but may be used by follow-up patches. Placeholders for these patches
can be found in the comment lines that contain the "TBD" marker.
As the code does not make any changes to the ABI, no regressions are expected.
NB: While at it, support for bus type resources is added.
Signed-off-by: Witold Szczeponik <Witold.Szczeponik@gmx.net>
Reviewed-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/tty')
0 files changed, 0 insertions, 0 deletions