]> git.ipfire.org Git - thirdparty/u-boot.git/commit
misc: vexpress_config: Use member .priv_auto to set the private data
authorWei Chen <wei.chen@arm.com>
Wed, 18 Oct 2023 06:27:44 +0000 (14:27 +0800)
committerTom Rini <trini@konsulko.com>
Sat, 28 Oct 2023 01:02:08 +0000 (21:02 -0400)
commitffdb85bfcfd79a432a9379a9a13680699eb686fb
treeeaf65ad1dbeecce020fbc5ab72c2c22d74f0ebb4
parent7093b89ab12fae697548bbc839f3966642132221
misc: vexpress_config: Use member .priv_auto to set the private data

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@arm.com>
Signed-off-by: Qi Feng <qi.feng@arm.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
drivers/misc/vexpress_config.c