Hi,
This series contains a set of small fixes and improvements for the hx9023s
proximity sensor driver.
The changes include:
- Fixing a potential out-of-bounds access when copying firmware data.
- Avoiding a division-by-zero case when the sampling frequency is unspecified.
- Allowing the firmware file name to be specified via firmware-name property,
along with the corresponding DT binding update.
- Adding ACPI device ID support to enable hx9023s on ACPI-based platforms.
All changes are independent but related to robustness and platform support,
and are grouped together for easier review.
Tested on a DT-based platform with firmware loading enabled.
Thanks for your time and review.
Best regards,
Yasin Lee
Signed-off-by: Yasin Lee <yasin.lee.x@gmail.com>
---
Yasin Lee (5):
iio: proximity: hx9023s: fix out-of-bounds access when copying firmware
iio: proximity: hx9023s: Protect against division by zero in set_samp_freq
iio: proximity: hx9023s: support firmware-name property
dt-bindings: iio: proximity: hx9023s: support firmware-name property
iio: proximity: hx9023s: add ACPI support
.../bindings/iio/proximity/tyhx,hx9023s.yaml | 7 ++++++
drivers/iio/proximity/hx9023s.c | 26 +++++++++++++++++-----
2 files changed, 28 insertions(+), 5 deletions(-)
---
base-commit: c8bfb63c902678228a0a265e22a5f55404988a43
change-id: 20260209-upstream-20260219-a7af6d9a85ad
Best regards,
--
Yasin Lee <yasin.lee.x@gmail.com>