]> git.dujemihanovic.xyz Git - u-boot.git/commit
remove struct uclass_driver::ops
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Wed, 19 May 2021 16:08:11 +0000 (18:08 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 6 Jul 2021 16:38:03 +0000 (10:38 -0600)
commit98c14ff019515ffcb1b40b550e56fe1dfbede51b
tree6b6bdcde50aeab5058d6a4f389df8aa49d0ba4e8
parent3c9fc23c44317be82be94e461ff260ec7f083523
remove struct uclass_driver::ops

Each _device_ belonging to a given uclass of course has its own ->ops,
of a type determined by and known to the uclass.

However, no instance of a uclass_driver seems to populate ->ops, and
the only reference to it in code is this relocation.

Moreover, it's not really clear what could sensibly be assigned; it
would have to be some "struct uclass_ops *" providing a set of methods
for the core to call on that particular uclass, but should the need
for that ever arise, it would be better to have a member of that
particular type instead of void*.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/root.c
include/dm/uclass.h