From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751179AbaAEKoG (ORCPT ); Sun, 5 Jan 2014 05:44:06 -0500 Received: from cantor2.suse.de ([195.135.220.15]:53341 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750992AbaAEKoE (ORCPT ); Sun, 5 Jan 2014 05:44:04 -0500 Date: Sun, 05 Jan 2014 11:44:03 +0100 Message-ID: From: Takashi Iwai To: Julia Lawall Cc: Jaya Kumar , kernel-janitors@vger.kernel.org, Jaroslav Kysela , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] ALSA: cs5535audio: use named constants for pci_power_t values In-Reply-To: <1388706031-22180-3-git-send-email-Julia.Lawall@lip6.fr> References: <1388706031-22180-1-git-send-email-Julia.Lawall@lip6.fr> <1388706031-22180-3-git-send-email-Julia.Lawall@lip6.fr> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Fri, 3 Jan 2014 00:40:30 +0100, Julia Lawall wrote: > > From: Julia Lawall > > 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 Thanks, applied. Takashi > > --- > sound/pci/cs5535audio/cs5535audio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/pci/cs5535audio/cs5535audio.c b/sound/pci/cs5535audio/cs5535audio.c > index 902bebd..c0d2835 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); >