]> git.baikalelectronics.ru Git - kernel.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)
commit5b7be3fd24a1b1181c48a1dd7e59791a68dbac02
tree189ac5c14e40bad116528c110d6c0251cbcb7168
parent6a138ab910cb008c9ba7a2eee33139ddfcb8be62
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