]> git.baikalelectronics.ru Git - uboot.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)
commit9f4885a5797155417ced2d3cd2aae6d4174426fe
tree6b6bdcde50aeab5058d6a4f389df8aa49d0ba4e8
parent685b9ec26e681a81e6e27c9f42bacbcfe76dd446
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