2 # SPDX-License-Identifier: GPL-2.0-or-later
4 # DESCR: Check that no touchpad uses the "probed" flag
8 TESTFILE1
="src/mainboard/google/eve/devicetree.cb"
11 # Configure to make sure tests fail
12 if [ "$1" = "--test" ]; then
13 sed -i.bak
"/^.*register \"generic.desc\" = \"\"Touchpad\"\"/a \t\t\t\tregister \"generic.probed\" = \"1\"" "${TESTFILE1}"
14 echo "Expect ${EXPECTED_FAILURES} failures."
16 elif [ "$1" = "--reset" ]; then
17 mv "${TESTFILE1}.bak" "${TESTFILE1}"
21 for f
in `find src/mainboard/ -name *tree.cb`; do
22 if grep -B8 "probed\" = \"1\"" $f |
grep -q "Touchpad"; then
24 echo " Use of the 'probed' flag for touchpads is deprecated; use 'detect' instead"