On Wed, Dec 10, 2025 at 06:59:39PM +0100, Uwe Kleine-König wrote:
These are nearly identical to the respective driver callbacks. The only difference is that .remove() returns void instead of int.
The objective is to get rid of users of struct device_driver callbacks .probe() and .remove() to eventually remove these.
Signed-off-by: Uwe Kleine-König u.kleine-koenig@baylibre.com
-const struct bus_type greybus_bus_type = {
- .name = "greybus",
- .match = greybus_match_device,
- .uevent = greybus_uevent,
- .shutdown = greybus_shutdown,
-};
+const struct bus_type greybus_bus_type = {
- .name = "greybus",
- .match = greybus_match_device,
- .uevent = greybus_uevent,
- .probe = greybus_probe,
- .remove = greybus_remove,
- .shutdown = greybus_shutdown,
+};
Please keep the indentation style when moving the struct.
With that addressed:
Acked-by: Johan Hovold johan@kernel.org
Johan