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

From: Takashi Iwai
Date: Mon Aug 16 2004 - 09:11:32 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/