Skip to content

Commit ecaaeff

Browse files
hkallweitAndi Shyti
authored andcommitted
i2c: i801: Replace magic value with constant in dmi_check_onboard_devices
Replace magic number 10 with the appropriate constant. Signed-off-by: Heiner Kallweit <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent df7cbce commit ecaaeff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-i801.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ static void dmi_check_onboard_devices(const struct dmi_header *dm, void *adap)
11171117
{
11181118
int i, count;
11191119

1120-
if (dm->type != 10)
1120+
if (dm->type != DMI_ENTRY_ONBOARD_DEVICE)
11211121
return;
11221122

11231123
count = (dm->length - sizeof(struct dmi_header)) / 2;

0 commit comments

Comments
 (0)