From 004b3072063cca2e077ade22fc433fa2245450bd Mon Sep 17 00:00:00 2001 From: Benedikt Schmidt Date: Thu, 15 Feb 2024 10:19:25 +0100 Subject: [PATCH] doc: kconfig: add exemption for busses in select recommended practices Add the exemption for busses to the recommended practices for select. Signed-off-by: Benedikt Schmidt --- doc/build/kconfig/tips.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/build/kconfig/tips.rst b/doc/build/kconfig/tips.rst index 9bae4d2a1c7..2e50c6c8775 100644 --- a/doc/build/kconfig/tips.rst +++ b/doc/build/kconfig/tips.rst @@ -315,6 +315,16 @@ In summary, here are some recommended practices for ``select``: - Select simple helper symbols without prompts and dependencies however much you like. They're a great tool for simplifying Kconfig files. +- An exemption are busses like I2C and SPI, and following the same thought + process things like MFD as well. Drivers on these busses should use + ``select`` to allow the automatic activation of the necessary bus drivers + when devices on the bus are enabled in the devicetree. + +.. code-block:: kconfig + + config ADC_FOO + bool "external SPI ADC foo driver" + select SPI (Lack of) conditional includes ******************************