From 26aebd8467a00f62f455ab4d3a18fecf48091d85 Mon Sep 17 00:00:00 2001 From: mr-liang2504 Date: Tue, 2 Jan 2024 08:56:57 +0000 Subject: [PATCH] Signed-off-by: mr-liang2504 Change-Id: I84d3c7a6182160ac5dcdbd76c2d13589e2ace3c9 --- patch/apply_patch.sh | 84 +++++++++++++++++++ patch/diff_libmtdev_mmi/mtdev/mtdev_0000.diff | 28 +++++++ 2 files changed, 112 insertions(+) create mode 100755 patch/apply_patch.sh create mode 100644 patch/diff_libmtdev_mmi/mtdev/mtdev_0000.diff diff --git a/patch/apply_patch.sh b/patch/apply_patch.sh new file mode 100755 index 0000000..e355a5d --- /dev/null +++ b/patch/apply_patch.sh @@ -0,0 +1,84 @@ +#!/bin/bash +# Copyright (c) 2021-2022 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e + +<used) { + if (state->data[slot].tracking_id != id) + continue; ++#ifdef DISABLE_FILTER ++ (void)filter_data; ++#else + filter_data(state, dev, &data[i], prop[i], slot); ++#endif + push_slot_changes(state, &data[i], prop[i], slot, syn); + SETBIT(used, slot); + id = MT_ID_NULL; -- Gitee