]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
w1-eeprom: Make use of static keyword in drivers
authorTom Rini <trini@konsulko.com>
Fri, 26 Sep 2025 15:31:48 +0000 (09:31 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 8 Oct 2025 22:13:11 +0000 (16:13 -0600)
Both the ds24xxx and ds2502 have a family_supported array which is local
to the driver but was not marked as static. Mark this as static as both
best practice and to allow both to be built in "allyesconfig" for
example.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/w1-eeprom/ds24xxx.c
drivers/w1-eeprom/ds2502.c

index 413d8bc58814514178b53a29541a53562ad8bbbd..801fade6f495dc4da9a31d0b4a3431f1fcfcfa06 100644 (file)
@@ -53,7 +53,7 @@ U_BOOT_DRIVER(ds24xxx) = {
        .probe          = ds24xxx_probe,
 };
 
-u8 family_supported[] = {
+static u8 family_supported[] = {
        W1_FAMILY_DS24B33,
        W1_FAMILY_DS2431,
 };
index db9f41e972692ef6eccb700da5c93149046c8da0..981b41a34b2b0cf1ebe93f19c9c19bdb7f0bf391 100644 (file)
@@ -243,7 +243,7 @@ U_BOOT_DRIVER(ds2502) = {
        .probe          = ds2502_probe,
 };
 
-u8 family_supported[] = {
+static u8 family_supported[] = {
        W1_FAMILY_DS2502,
 };