aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorOlivier Moysan <[email protected]>2022-10-12 16:21:58 +0200
committerJonathan Cameron <[email protected]>2022-10-17 08:51:26 +0100
commit174dac5dc800e4e2e4552baf6340846a344d01a3 (patch)
tree39ba19c7a94bc05de36fc0b7a0dd70e5821dc49e /lib/test_fortify/write_overflow-strncpy-src.c
parentaa6c77d05eb1c57ee5b95a7b83a39384c37df4d9 (diff)
iio: adc: stm32-adc: fix channel sampling time init
Fix channel init for ADC generic channel bindings. In generic channel initialization, stm32_adc_smpr_init() is called to initialize channel sampling time. The "st,min-sample-time-ns" property is an optional property. If it is not defined, stm32_adc_smpr_init() is currently skipped. However stm32_adc_smpr_init() must always be called, to force a minimum sampling time for the internal channels, as the minimum sampling time is known. Make stm32_adc_smpr_init() call unconditional. Fixes: 796e5d0b1e9b ("iio: adc: stm32-adc: use generic binding for sample-time") Signed-off-by: Olivier Moysan <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: Fabrice Gasnier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions