]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: sta2x11-mfd: Use named constants for pci_power_t values
authorJulia Lawall <Julia.Lawall@lip6.fr>
Thu, 2 Jan 2014 23:40:29 +0000 (00:40 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 21 Jan 2014 08:29:00 +0000 (08:29 +0000)
commit41cef3d6c296d2507ed2f0c99a49d6c545ee6ea3
treed970238dd9f97c91d80e8a6252f29b4248393301
parent89b28b76ff66b83db6da7c759d91e19b10029ca4
mfd: sta2x11-mfd: Use named constants for pci_power_t values

If nothing more than to improve code readability.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression pdev;
@@

pci_set_power_state(pdev,
- 0
+ PCI_D0
 )
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/sta2x11-mfd.c