artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0163115
)
Use iic_is_compatible(9) and use the more generic compatible string to
author
kettenis
<kettenis@openbsd.org>
Mon, 14 Feb 2022 14:57:00 +0000
(14:57 +0000)
committer
kettenis
<kettenis@openbsd.org>
Mon, 14 Feb 2022 14:57:00 +0000
(14:57 +0000)
match the device.
ok visa@
sys/dev/fdt/tascodec.c
patch
|
blob
|
history
diff --git
a/sys/dev/fdt/tascodec.c
b/sys/dev/fdt/tascodec.c
index
481e763
..
83f0faa
100644
(file)
--- 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:5
0 kettenis Exp $ */
+/* $OpenBSD: tascodec.c,v 1.
2 2022/02/14 14:57:0
0 kettenis Exp $ */
/*
* Copyright (c) 2022 Mark Kettenis <kettenis@openbsd.org>
*
@@
-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