commit | ec116a97ccbc9e77db40b09e022f23eee4aeccaf | [log] [tgz] |
---|---|---|
author | Marcin Niestroj <m.niestroj@emb.dev> | Fri Jul 01 21:32:43 2022 +0200 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Mon Jul 04 09:49:40 2022 +0200 |
tree | f916d0c438f4c41a8ae9932d29f88c2a96c2a068 | |
parent | 75f44cf9910bdf9d6481d36c0fa07bd1a014426e [diff] |
drivers: adc: stm32: suppress stm32h7 build warning There is a build warning of unused `adc_stm32_oversampling_ratioshift` function: [-Werror=unused-function]. This makes twister fail, as all warnings are treated as errors. Fix that by ifndef'ing adc_stm32_oversampling_ratioshift(). Fixes: c57a41c5d2e4 ("drivers/adc: stm32: do not disable the ADC if resolution is unchanged") Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>