From e095a1f0e30773dfe9690c6f12194b2f32a2d31d Mon Sep 17 00:00:00 2001 From: kettenis Date: Mon, 14 Feb 2022 14:57:00 +0000 Subject: [PATCH] Use iic_is_compatible(9) and use the more generic compatible string to match the device. ok visa@ --- sys/dev/fdt/tascodec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/fdt/tascodec.c b/sys/dev/fdt/tascodec.c index 481e763f233..83f0faaf85c 100644 --- a/sys/dev/fdt/tascodec.c +++ b/sys/dev/fdt/tascodec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tascodec.c,v 1.1 2022/01/30 21:40:50 kettenis Exp $ */ +/* $OpenBSD: tascodec.c,v 1.2 2022/02/14 14:57:00 kettenis Exp $ */ /* * Copyright (c) 2022 Mark Kettenis * @@ -98,7 +98,7 @@ tascodec_match(struct device *parent, void *match, void *aux) { struct i2c_attach_args *ia = aux; - return (strcmp(ia->ia_name, "ti,tas5770l") == 0); + return iic_is_compatible(ia, "ti,tas2770"); } void -- 2.20.1