hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/input/matrix-keymap.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Helpers for matrix keyboard bindings
34 *
....@@ -5,15 +6,6 @@
56 *
67 * Author:
78 * Olof Johansson <olof@lixom.net>
8
- *
9
- * This software is licensed under the terms of the GNU General Public
10
- * License version 2, as published by the Free Software Foundation, and
11
- * may be copied, distributed, and modified under those terms.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
179 */
1810
1911 #include <linux/device.h>
....@@ -89,7 +81,7 @@
8981 if (!propname)
9082 propname = "linux,keymap";
9183
92
- size = device_property_read_u32_array(dev, propname, NULL, 0);
84
+ size = device_property_count_u32(dev, propname);
9385 if (size <= 0) {
9486 dev_err(dev, "missing or malformed property %s: %d\n",
9587 propname, size);