diff options
| author | Yasin Lee <yasin.lee.x@gmail.com> | 2026-02-13 23:14:44 +0800 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2026-02-23 08:24:38 +0000 |
| commit | a318cfc0853706f1d6ce682dba660bc455d674ef (patch) | |
| tree | 9d93570716a12f3009c3fc28c371349389fd5e48 /scripts | |
| parent | 585b90c0161ab77416fe3acdbdc55b978e33e16c (diff) | |
iio: proximity: hx9023s: Protect against division by zero in set_samp_freq
Avoid division by zero when sampling frequency is unspecified.
Fixes: 60df548277b7 ("iio: proximity: Add driver support for TYHX's HX9023S capacitive proximity sensor")
Signed-off-by: Yasin Lee <yasin.lee.x@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
