aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2024-07-11 13:04:21 -0700
committerJonathan Corbet <corbet@lwn.net>2024-07-12 14:46:36 -0600
commitbd5b61d8b16494c408eeb637ccacd3bf9f39114f (patch)
tree115c6c1db254564e60c387b11b12a82ba3d6fae8
parentdocs/sp_SP: Add translation for scheduler/sched-design-CFS.rst (diff)
downloadwireguard-linux-bd5b61d8b16494c408eeb637ccacd3bf9f39114f.tar.xz
wireguard-linux-bd5b61d8b16494c408eeb637ccacd3bf9f39114f.zip
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 <ebiggers@google.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20240711200421.11428-1-ebiggers@kernel.org
Diffstat (limited to '')
-rw-r--r--Documentation/driver-api/driver-model/platform.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/driver-api/driver-model/platform.rst b/Documentation/driver-api/driver-model/platform.rst
index 1fe5c6c6199c..7beb8a9648c5 100644
--- a/Documentation/driver-api/driver-model/platform.rst
+++ b/Documentation/driver-api/driver-model/platform.rst
@@ -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