From: Julia Lawall Date: Thu, 2 Jan 2014 23:40:30 +0000 (+0100) Subject: ALSA: cs5535audio: use named constants for pci_power_t values X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ec06b2bea73ed0db1e400ff5143c14e31836a77c;p=linux-beck.git ALSA: cs5535audio: use named constants for pci_power_t values The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression pdev; @@ pci_set_power_state(pdev, - 3 + PCI_D3hot ) // Signed-off-by: Julia Lawall Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/cs5535audio/cs5535audio.c b/sound/pci/cs5535audio/cs5535audio.c index 902bebd3b3fb..c0d2835344da 100644 --- a/sound/pci/cs5535audio/cs5535audio.c +++ b/sound/pci/cs5535audio/cs5535audio.c @@ -253,7 +253,7 @@ static irqreturn_t snd_cs5535audio_interrupt(int irq, void *dev_id) static int snd_cs5535audio_free(struct cs5535audio *cs5535au) { synchronize_irq(cs5535au->irq); - pci_set_power_state(cs5535au->pci, 3); + pci_set_power_state(cs5535au->pci, PCI_D3hot); if (cs5535au->irq >= 0) free_irq(cs5535au->irq, cs5535au);