Skip to content

Commit bd5b61d

Browse files
ebiggersJonathan Corbet
authored andcommitted
docs: driver-model: platform: update the definition of platform_driver
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]
1 parent 0a0d5f3 commit bd5b61d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Documentation/driver-api/driver-model/platform.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@ and shutdown notifications using the standard conventions::
4141

4242
struct platform_driver {
4343
int (*probe)(struct platform_device *);
44-
int (*remove)(struct platform_device *);
44+
void (*remove)(struct platform_device *);
4545
void (*shutdown)(struct platform_device *);
4646
int (*suspend)(struct platform_device *, pm_message_t state);
47-
int (*suspend_late)(struct platform_device *, pm_message_t state);
48-
int (*resume_early)(struct platform_device *);
4947
int (*resume)(struct platform_device *);
5048
struct device_driver driver;
49+
const struct platform_device_id *id_table;
50+
bool prevent_deferred_probe;
51+
bool driver_managed_dma;
5152
};
5253

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

0 commit comments

Comments
 (0)