w1-eeprom: Make use of static keyword in drivers

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>
This commit is contained in:
Tom Rini
2025-09-26 09:31:48 -06:00
parent 7c2e4487e4
commit 7781f1d832
2 changed files with 2 additions and 2 deletions

View 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,
};

View File

@@ -243,7 +243,7 @@ U_BOOT_DRIVER(ds2502) = {
.probe = ds2502_probe,
};
u8 family_supported[] = {
static u8 family_supported[] = {
W1_FAMILY_DS2502,
};