diff options
author | James Clark <james.clark@arm.com> | 2023-05-09 10:49:40 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-05-30 21:07:15 +0100 |
commit | 7c054b2cbac388a86ed6a85b831c044a0325e150 (patch) | |
tree | 165edc97c2c2983dc8f87b0a98695e071f2c32e8 /drivers/iio/magnetometer | |
parent | c5f7548445b6adc48c9076073a6f20b8806e9a87 (diff) | |
download | linux-7c054b2cbac388a86ed6a85b831c044a0325e150.tar.gz linux-7c054b2cbac388a86ed6a85b831c044a0325e150.tar.bz2 linux-7c054b2cbac388a86ed6a85b831c044a0325e150.zip |
iio: adc: Use devm_krealloc_array
Now that it exists, use it instead of doing the multiplication and
checking for overflow manually.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: James Clark <james.clark@arm.com>
Link: https://lore.kernel.org/r/20230509094942.396150-4-james.clark@arm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/magnetometer')
0 files changed, 0 insertions, 0 deletions