Module Name: src Committed By: riastradh Date: Tue Aug 1 19:36:46 UTC 2023
Modified Files: src/sys/dev/i2c: ihidev.c Log Message: ihidev(4): Use iic_use_direct_match as intended. This appears to have been a mistake; there's no obvious explanation in the commit history for why this is different from all other iic_use_direct_match users. Patch from Vladimir 'phcoder' Serbinenko <phco...@gmail.com>, thanks! (If it really is intended to ues I2C_MATCH_DIRECT_COMPATIBLE here, we need a clear explanation of why, written down in a nearby comment.) To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/dev/i2c/ihidev.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/i2c/ihidev.c diff -u src/sys/dev/i2c/ihidev.c:1.28 src/sys/dev/i2c/ihidev.c:1.29 --- src/sys/dev/i2c/ihidev.c:1.28 Sat Feb 12 03:24:35 2022 +++ src/sys/dev/i2c/ihidev.c Tue Aug 1 19:36:45 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: ihidev.c,v 1.28 2022/02/12 03:24:35 riastradh Exp $ */ +/* $NetBSD: ihidev.c,v 1.29 2023/08/01 19:36:45 riastradh Exp $ */ /* $OpenBSD ihidev.c,v 1.13 2017/04/08 02:57:23 deraadt Exp $ */ /*- @@ -54,7 +54,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ihidev.c,v 1.28 2022/02/12 03:24:35 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ihidev.c,v 1.29 2023/08/01 19:36:45 riastradh Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -141,7 +141,7 @@ ihidev_match(device_t parent, cfdata_t m int match_result; if (iic_use_direct_match(ia, match, compat_data, &match_result)) - return I2C_MATCH_DIRECT_COMPATIBLE; + return match_result; return 0; }