From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Wed, 19 May 2021 10:36:34 -0600 Subject: [PATCH] remove struct uclass_driver::ops In-Reply-To: <20210519160811.183102-1-rasmus.villemoes@prevas.dk> References: <20210519160811.183102-1-rasmus.villemoes@prevas.dk> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 19 May 2021 at 10:08, Rasmus Villemoes wrote: > > 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 > --- > drivers/core/root.c | 3 --- > include/dm/uclass.h | 3 --- > 2 files changed, 6 deletions(-) Reviewed-by: Simon Glass