]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PNP: Simplify setting of resources
authorWitold Szczeponik <Witold.Szczeponik@gmx.net>
Sat, 15 Dec 2012 00:00:14 +0000 (01:00 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Jan 2013 12:10:52 +0000 (13:10 +0100)
commitc9377667e6cdf4ac910b0932868275eb0dbfcfeb
tree189ac5c14e40bad116528c110d6c0251cbcb7168
parentd1c3ed669a2d452cacfb48c2d171a1f364dae2ed
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>
drivers/pnp/interface.c