Re: [patch] enums to clear suspend-state confusion

Takashi Iwai
2004-08-16T14:10:21Z

At Thu, 12 Aug 2004 14:02:21 +0200,
Pavel Machek wrote:
>
> Hi!
>
> This patch should clear up some confusion between driver model and
> drivers people, and also prepares way to add runtime power managment
> later. Please apply,
(snip)
> --- linux-mm/include/linux/pci.h 2004-07-28 22:43:31.000000000 +0200
> +++ linux-delme/include/linux/pci.h 2004-08-12 13:41:12.000000000 +0200
> @@ -637,7 +637,7 @@
> const struct pci_device_id *id_table; /* must be non-NULL for probe to be called */
> int (*probe) (struct pci_dev *dev, const struct pci_device_id *id); /* New device inserted */
> void (*remove) (struct pci_dev *dev); /* Device removed (NULL if not a hot-plug capable driver) */
> - int (*suspend) (struct pci_dev *dev, u32 state); /* Device suspended */
> + int (*suspend) (struct pci_dev *dev, suspend_state_t reason); /* Device suspended */

Does this mean that each driver needs rewrite of suspend callback?

Takashi