]> git.dujemihanovic.xyz Git - u-boot.git/commit
stm32mp1: remove the board_check_usb_power function when ADC is not activated
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 6 Apr 2021 07:57:54 +0000 (09:57 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 9 Apr 2021 09:53:00 +0000 (11:53 +0200)
commit2214d5e54c3cd55ba1d83f18985bbcb0a9dabe1a
treece50fdf428d67edd5dae8bd8b7616782af96c488
parentcbea7b3e7e7d951997392ebd62c4637de5916978
stm32mp1: remove the board_check_usb_power function when ADC is not activated

Simplify the code of the function board_check_usb_power
based in CONFIG_ADC and adc_measurement; the function is removed by the
linker when the CONFIG_ADC is not activated.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
board/st/stm32mp1/stm32mp1.c