Skip to content

Commit

Permalink
[PATCH] Fix documentation of driver suspend/resume callbacks
Browse files Browse the repository at this point in the history
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
tiwai authored and gregkh committed Oct 28, 2005
1 parent c41455f commit 1a222bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Documentation/driver-model/driver.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ struct device_driver {
int (*probe) (struct device * dev);
int (*remove) (struct device * dev);

int (*suspend) (struct device * dev, pm_message_t state, u32 level);
int (*resume) (struct device * dev, u32 level);
int (*suspend) (struct device * dev, pm_message_t state);
int (*resume) (struct device * dev);
};


Expand Down Expand Up @@ -194,11 +194,11 @@ device; i.e. anything in the device's driver_data field.
If the device is still present, it should quiesce the device and place
it into a supported low-power state.

int (*suspend) (struct device * dev, pm_message_t state, u32 level);
int (*suspend) (struct device * dev, pm_message_t state);

suspend is called to put the device in a low power state.

int (*resume) (struct device * dev, u32 level);
int (*resume) (struct device * dev);

Resume is used to bring a device back from a low power state.

Expand Down

0 comments on commit 1a222bc

Please sign in to comment.