diff options
| author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2025-12-12 11:09:06 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-12-17 17:08:18 +0300 |
| commit | 6d71c62b13c33ea858ab298fe20beaec5736edc7 (patch) | |
| tree | f3c152da3ee77e06a5dc38ab8ba943e9d5c7aee4 /include/linux/serdev.h | |
| parent | 42eeed6d9f31e6063bf98d71212a6de3aac8cdd3 (diff) | |
| download | linux-6d71c62b13c33ea858ab298fe20beaec5736edc7.tar.xz | |
serdev: Provide a bustype shutdown function
To prepare serdev driver to migrate away from struct device_driver::shutdown
(and then eventually remove that callback) create a serdev driver shutdown
callback and migration code to keep the existing behaviour. Note this
introduces a warning for each driver at register time that isn't converted
yet to that callback.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/ab518883e3ed0976a19cb5b5b5faf42bd3a655b7.1765526117.git.u.kleine-koenig@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/serdev.h')
| -rw-r--r-- | include/linux/serdev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/serdev.h b/include/linux/serdev.h index 34562eb99931..5654c58eb73c 100644 --- a/include/linux/serdev.h +++ b/include/linux/serdev.h @@ -65,6 +65,7 @@ struct serdev_device_driver { struct device_driver driver; int (*probe)(struct serdev_device *); void (*remove)(struct serdev_device *); + void (*shutdown)(struct serdev_device *); }; static inline struct serdev_device_driver *to_serdev_device_driver(struct device_driver *d) |
