]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: adc: rockchip_saradc: use = { } instead of memset()
authorDavid Lechner <dlechner@baylibre.com>
Wed, 11 Jun 2025 22:38:57 +0000 (17:38 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 26 Jun 2025 18:32:55 +0000 (19:32 +0100)
commitdfa806ce04f92aa0834744808817d15a65a49d42
tree1e0f4b9962c94beed4959ad70689b2e2cc8e60d8
parentb8f008100a34eb282dc0cf6c13383ff0d177a533
iio: adc: rockchip_saradc: use = { } instead of memset()

Use { } instead of memset() to zero-initialize stack memory to simplify
the code.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250611-iio-zero-init-stack-with-instead-of-memset-v1-5-ebb2d0a24302@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/rockchip_saradc.c