Module Name: src Committed By: thorpej Date: Tue Jan 26 14:09:11 UTC 2021
Modified Files: src/sys/dev/ofw: ofw_subr.c Log Message: Minor comment changes. To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/sys/dev/ofw/ofw_subr.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/ofw/ofw_subr.c diff -u src/sys/dev/ofw/ofw_subr.c:1.50 src/sys/dev/ofw/ofw_subr.c:1.51 --- src/sys/dev/ofw/ofw_subr.c:1.50 Mon Jan 25 19:59:49 2021 +++ src/sys/dev/ofw/ofw_subr.c Tue Jan 26 14:09:11 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: ofw_subr.c,v 1.50 2021/01/25 19:59:49 mrg Exp $ */ +/* $NetBSD: ofw_subr.c,v 1.51 2021/01/26 14:09:11 thorpej Exp $ */ /* * Copyright 1998 @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ofw_subr.c,v 1.50 2021/01/25 19:59:49 mrg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ofw_subr.c,v 1.51 2021/01/26 14:09:11 thorpej Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -161,8 +161,11 @@ of_match_compatible(int phandle, const c /* * int of_match_compat_data(phandle, compat_data) * - * This routine searches an array of compat_data structures for a - * matching "compatible" entry matching the supplied OFW node. + * This routine searches an array of device_compatible_entry structures + * for a matching "compatible" entry matching the supplied OFW node, + * and returns a weighted match value corresponding to which string + * from the "compatible" property was matched, which more weight given + * to the first string than the last. * * It should be used when determining whether a driver can drive * a particular device. @@ -212,8 +215,8 @@ of_match_compat_data(int phandle, * const struct device_compatible_entry *of_search_compatible(phandle, * compat_data) * - * This routine searches an array of compat_data structures for a - * matching "compatible" entry matching the supplied OFW node. + * This routine searches an array of device_compatible_entry structures + * for a "compatible" entry matching the supplied OFW node. * * Arguments: * phandle OFW phandle of device to be checked for