Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/dev/ofw



Module Name:    src
Committed By:   jmcneill
Date:           Sat Dec 12 22:22:51 UTC 2015

Modified Files:
        src/sys/dev/ofw: ofw_subr.c openfirm.h

Log Message:
Change the meaning of of_compatible return values >= 0. Previously, the
function would return the index of the matching compatibility string in
the "strings" parameter on success. None of the callers in tree use this,
so instead change the function to return a reverse index of the matching
compatibility string in the phandle's "compatible" property. The result is
that the function will return a higher number for earlier "compatible"
matches.

Add a new of_match_compatible() that simply returns of_compatible() + 1,
for use in driver match functions.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/ofw/ofw_subr.c
cvs rdiff -u -r1.30 -r1.31 src/sys/dev/ofw/openfirm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index