diff options
| author | Tom Rini <[email protected]> | 2025-09-26 09:31:48 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-10-08 16:13:11 -0600 |
| commit | 7781f1d832bbf9461b82d48301091b15fcf1be14 (patch) | |
| tree | 8b9d8d6b11f177e517534f1ca18c7a782b9846be | |
| parent | 7c2e4487e449b4396531789f1df49ccb8c911952 (diff) | |
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 <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
| -rw-r--r-- | drivers/w1-eeprom/ds24xxx.c | 2 | ||||
| -rw-r--r-- | drivers/w1-eeprom/ds2502.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/w1-eeprom/ds24xxx.c b/drivers/w1-eeprom/ds24xxx.c index 413d8bc5881..801fade6f49 100644 --- a/drivers/w1-eeprom/ds24xxx.c +++ b/drivers/w1-eeprom/ds24xxx.c @@ -53,7 +53,7 @@ U_BOOT_DRIVER(ds24xxx) = { .probe = ds24xxx_probe, }; -u8 family_supported[] = { +static u8 family_supported[] = { W1_FAMILY_DS24B33, W1_FAMILY_DS2431, }; diff --git a/drivers/w1-eeprom/ds2502.c b/drivers/w1-eeprom/ds2502.c index db9f41e9726..981b41a34b2 100644 --- a/drivers/w1-eeprom/ds2502.c +++ b/drivers/w1-eeprom/ds2502.c @@ -243,7 +243,7 @@ U_BOOT_DRIVER(ds2502) = { .probe = ds2502_probe, }; -u8 family_supported[] = { +static u8 family_supported[] = { W1_FAMILY_DS2502, }; |
