aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib/kdoc/kdoc_output.py
diff options
context:
space:
mode:
authorRob Herring (Arm) <robh@kernel.org>2024-09-13 15:08:26 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2024-09-13 23:16:23 -0700
commitc7c878ff329239e28d7ab9fae7f7f49f114b12ff (patch)
treeb5b0b170db75ee8894a35e5dcb67a035716f8fbd /scripts/lib/kdoc/kdoc_output.py
parentInput: ps2-gpio - use IRQF_NO_AUTOEN flag in request_irq() (diff)
downloadlinux-rng-c7c878ff329239e28d7ab9fae7f7f49f114b12ff.tar.xz
linux-rng-c7c878ff329239e28d7ab9fae7f7f49f114b12ff.zip
Input: tegra-kbc - use of_property_read_variable_u32_array() and of_property_present()
There's no need to get the length of an DT array property before parsing the array. of_property_read_variable_u32_array() takes a minimum and maximum length and returns the actual length (or error code). This is part of a larger effort to remove callers of of_get_property() and similar functions. of_get_property() leaks the DT property data pointer which is a problem for dynamically allocated nodes which may be freed. Acked-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20240913200827.546649-1-robh@kernel.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions