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 <hkallweit1@gmail.com> Reviewed-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
This commit is contained in:
parent
df7cbce47a
commit
ecaaeff900
@ -1117,7 +1117,7 @@ static void dmi_check_onboard_devices(const struct dmi_header *dm, void *adap)
|
||||
{
|
||||
int i, count;
|
||||
|
||||
if (dm->type != 10)
|
||||
if (dm->type != DMI_ENTRY_ONBOARD_DEVICE)
|
||||
return;
|
||||
|
||||
count = (dm->length - sizeof(struct dmi_header)) / 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user