spd/lp5: Add Hynix memory part
[coreboot2.git] / util / lint / lint-stable-028-touchpad-probed-warning
blob3878dfba2dd3dbc155cc77a4b252f8050a006254
1 #!/usr/bin/env sh
2 # SPDX-License-Identifier: GPL-2.0-or-later
4 # DESCR: Check that no touchpad uses the "probed" flag
6 FAIL=0
8 TESTFILE1="src/mainboard/google/eve/devicetree.cb"
9 EXPECTED_FAILURES=1
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."
15 exit 0
16 elif [ "$1" = "--reset" ]; then
17 mv "${TESTFILE1}.bak" "${TESTFILE1}"
18 exit 0
21 for f in `find src/mainboard/ -name *tree.cb`; do
22 if grep -B8 "probed\" = \"1\"" $f | grep -q "Touchpad"; then
23 echo "ERROR: in $f:"
24 echo " Use of the 'probed' flag for touchpads is deprecated; use 'detect' instead"
25 FAIL=1
27 done
29 exit $FAIL