Skip to content

Commit

Permalink
docs: driver-model: platform: update the definition of platform_driver
Browse files Browse the repository at this point in the history
Update the documented struct platform_driver to match the code.

Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
ebiggers authored and Jonathan Corbet committed Jul 12, 2024
1 parent 0a0d5f3 commit bd5b61d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Documentation/driver-api/driver-model/platform.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ and shutdown notifications using the standard conventions::

struct platform_driver {
int (*probe)(struct platform_device *);
int (*remove)(struct platform_device *);
void (*remove)(struct platform_device *);
void (*shutdown)(struct platform_device *);
int (*suspend)(struct platform_device *, pm_message_t state);
int (*suspend_late)(struct platform_device *, pm_message_t state);
int (*resume_early)(struct platform_device *);
int (*resume)(struct platform_device *);
struct device_driver driver;
const struct platform_device_id *id_table;
bool prevent_deferred_probe;
bool driver_managed_dma;
};

Note that probe() should in general verify that the specified device hardware
Expand Down

0 comments on commit bd5b61d

Please sign in to comment.