[PATCH 1/2] misc: vexpress_config: Use member .priv_auto to set the private data

Tom Rini trini at konsulko.com
Sat Oct 28 15:27:24 CEST 2023


On Wed, Oct 18, 2023 at 02:27:44PM +0800, Qi Feng wrote:

> From: Wei Chen <wei.chen at arm.com>
> 
> In current vexpress_config_probe code, it sets the uclass private data
> directly. This will cause one compilation error:
> drivers/misc/vexpress_config.c:114:27: error: lvalue required as left operand of assignment
>   114 |  dev_get_uclass_priv(dev) = priv;
>       |                           ^
> 
> In this patch we set the uclass private data through struct member
> .priv_auto, and this compilation error disappears.
> 
> Signed-off-by: Wei Chen <wei.chen at arm.com>
> Signed-off-by: Qi Feng <qi.feng at arm.com>
> Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20231028/9ac6d96c/attachment.sig>


More information about the U-Boot mailing list