PCI / PM: Enforce type casting for pci_power_t
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 7 Jun 2016 17:48:33 +0000 (20:48 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 13 Jun 2016 15:28:58 +0000 (10:28 -0500)
commit9661e783d830699a65f7d42e4b4a76e6923089eb
treeeba17607e26652202c1950623b05802ee7b43ecd
parentaf8c34ce6ae32addda3788d54a7e340cad22516b
PCI / PM: Enforce type casting for pci_power_t

When casting variables of type pci_power_t, a static analysis tool complains:

  include/linux/pci.h:119:37: warning: cast from restricted pci_power_t

Enforce type casting to make the static analyzer happy.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
include/linux/pci.h