pwm: lp3943: Use of_property_count_u32_elems() to get property length
Rob Herring (Arm) authored

Replace of_get_property() with the type specific
of_property_count_u32_elems() to get the property length.

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.
Signed-off-by: default avatarRob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20240731201407.1838385-8-robh@kernel.org

Signed-off-by: default avatarUwe Kleine-König <ukleinek@kernel.org>
75f0cb33
Name Last commit Last update
Documentation dt-bindings: pwm: renesas,tpu: Add r8a779h0 support
LICENSES LICENSES: Add the copyleft-next-0.3.1 license
arch minmax: add a few more MIN_T/MAX_T users
block block: fix deadlock between sd_remove & sd_release
certs kbuild: use $(src) instead of $(srctree)/$(src) for source directory
crypto crypto: testmgr - generate power-of-2 lengths more often
drivers pwm: lp3943: Use of_property_count_u32_elems() to get property length
fs Merge tag 'ubifs-for-linus-6.11-rc1-take2' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs
include pwm: Don't export pwm_capture()
init Merge tag 'rust-6.11' of https://github.com/Rust-for-Linux/linux
io_uring io_uring/napi: pass ktime to io_napi_adjust_timeout
ipc sysctl: treewide: constify the ctl_table argument of proc_handlers
kernel Merge tag 'timers-urgent-2024-07-26' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
lib Merge tag 'rust-6.11' of https://github.com/Rust-for-Linux/linux
mm mm/page_alloc: fix pcp->count race between drain_pages_zone() vs __rmqueue_pcplist()
net minmax: add a few more MIN_T/MAX_T users
rust Merge tag 'rust-6.11' of https://github.com/Rust-for-Linux/linux
samples Merge tag 'driver-core-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
scripts Merge tag 'kbuild-fixes-v6.11' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
security Merge tag 'apparmor-pr-2024-07-25' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor
sound Merge tag 'devicetree-fixes-for-6.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
tools Merge tag 'v6.11-merge' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux
usr initramfs: shorten cmd_initfs in usr/Makefile
virt Merge tag 'kvm-x86-generic-6.11' of https://github.com/kvm-x86/linux into HEAD
.clang-format Docs: Move clang-format from process/ to dev-tools/
.cocciconfig
.editorconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the reStructuredText markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.