[alsa-cvslog] CVS: alsa-kernel/pci/ymfpci ymfpci_main.c,1.64,1.65
Brought to you by:
perex
From: Takashi I. <ti...@us...> - 2005-01-28 20:29:33
|
Update of /cvsroot/alsa/alsa-kernel/pci/ymfpci In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4155/pci/ymfpci Modified Files: ymfpci_main.c Log Message: Summary: driver model type fixes for ALSA Fixes by Pavel Machek <pa...@su...>: suspend() routines no longer get u32 as their parameter (they get pm_message_t, which is u32 for now, but will change in 2.6.12 or so). This fixes ALSA to notice this, and uses constants with right types where appropriate. It results in no code changes. [Best results will be when patching against latest -mm, you may get some warnings if you patch it into older kernel, but it should still do the right thing.] Please apply, Pavel [In addition, suspend callback type is changed to follow to the standard style taking no state argument -- Takashi] Index: ymfpci_main.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/pci/ymfpci/ymfpci_main.c,v retrieving revision 1.64 retrieving revision 1.65 diff -u -r1.64 -r1.65 --- ymfpci_main.c 3 Jan 2005 11:45:33 -0000 1.64 +++ ymfpci_main.c 28 Jan 2005 19:34:08 -0000 1.65 @@ -2142,7 +2142,7 @@ }; #define YDSXGR_NUM_SAVED_REGS ARRAY_SIZE(saved_regs_index) -static int snd_ymfpci_suspend(snd_card_t *card, unsigned int state) +static int snd_ymfpci_suspend(snd_card_t *card, pm_message_t state) { ymfpci_t *chip = card->pm_private_data; unsigned int i; @@ -2161,7 +2161,7 @@ return 0; } -static int snd_ymfpci_resume(snd_card_t *card, unsigned int state) +static int snd_ymfpci_resume(snd_card_t *card) { ymfpci_t *chip = card->pm_private_data; unsigned int i; |