Match hidpath with 4 hex-digits vendor id

The pattern "*:*:*.*" will match not only hid path but also other nodes
like "supplier:regulator:regulator.0", and causing the touch firmware
update to fail. Match hid path with 4 hex-digits vendor id.

BUG=b:187129179
TEST=run /opt/google/touch/scripts/chromeos-touch-update-legacy.sh on
     cherry.

Change-Id: I6652bc425c59d7e5de4784acc2dbdfa708faf7d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/touch_updater/+/3020403
Tested-by: Chen-Tsung Hsieh <chentsung@chromium.org>
Reviewed-by: Harry Cutts <hcutts@chromium.org>
Commit-Queue: Chen-Tsung Hsieh <chentsung@chromium.org>
diff --git a/scripts/chromeos-touch-update-legacy.sh b/scripts/chromeos-touch-update-legacy.sh
index 40c7282..b60d80c 100755
--- a/scripts/chromeos-touch-update-legacy.sh
+++ b/scripts/chromeos-touch-update-legacy.sh
@@ -41,7 +41,7 @@
 
   case "${driver_name}" in
   i2c_hid*)
-    local hidpath="$(echo "${dev}"/*:*:*.*)"
+    local hidpath="$(echo "${dev}"/*:[0-9A-F][0-9A-F][0-9A-F][0-9A-F]:*.*)"
     local hidname="hid-$(echo "${hidpath##*/}" | \
                          awk -F'[:.]' '{ print $2 "_" $3 }')"
     local vendor_id="${hidname#*-}"