]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
stm32mp: cosmetic: Update of bsec driver
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 6 Jan 2023 12:20:14 +0000 (13:20 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 12 Jan 2023 15:37:13 +0000 (16:37 +0100)
Remove unnecessary return in stm32mp_bsec_write_lock and replace tab
by space for plat_auto opts.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/mach-stm32mp/bsec.c

index c00130b08b3630e97855753478794e67a9c122d5..51ccff9aa56088962b933899d7531e3cc434ea3d 100644 (file)
@@ -468,8 +468,6 @@ static int stm32mp_bsec_write_lock(struct udevice *dev, u32 val, u32 otp)
        plat = dev_get_plat(dev);
 
        return bsec_permanent_lock_otp(dev, plat->base, otp);
-
-       return -EINVAL;
 }
 
 static int stm32mp_bsec_read(struct udevice *dev, int offset,
@@ -608,7 +606,7 @@ U_BOOT_DRIVER(stm32mp_bsec) = {
        .id = UCLASS_MISC,
        .of_match = stm32mp_bsec_ids,
        .of_to_plat = stm32mp_bsec_of_to_plat,
-       .plat_auto      = sizeof(struct stm32mp_bsec_plat),
+       .plat_auto = sizeof(struct stm32mp_bsec_plat),
        .ops = &stm32mp_bsec_ops,
        .probe = stm32mp_bsec_probe,
 };