]> 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)
commiteecb025b66aad70cf02f707d808581e2d11424c1
tree189ac5c14e40bad116528c110d6c0251cbcb7168
parent3488c69bfc958da74cc1a2ebc3b69a93c80b12aa
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