From: Patrick Delaunay Date: Thu, 3 Dec 2020 10:20:27 +0100 Subject: [PATCH 0/4] console: remove #ifdef CONFIG when it is possible Message-ID: <20201203092032.8124-1-patrick.delaunay@st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Use 'if (IS_ENABLED(CONFIG...))' instead of '#if or #ifdef' where possible This patchset can applied on master branch after the serie [1] (for the new order of test in function putc() and puts() done in "console: allow to record console output before ready" ) I will push a separate serie to remove the remaining #ifdef CONFIG_VIDCONSOLE_AS_LCD And I remove the sandox code in [2] (with the associated tests #ifdef CONFIG_SANDBOX) [1] http://patchwork.ozlabs.org/project/uboot/list/?series=217079 "log: don't build the trace buffer when log is not ready" [2] http://patchwork.ozlabs.org/project/uboot/patch/20201127114927.2.Ida70f4fb1524187703e9240d63e436f8ae5adaab at changeid/ "[2/2] console: sandbox: remove unnecessary sandbox code" Patrick Delaunay (4): console: remove #ifdef CONFIG when it is possible console: add function console_devices_set console: remove #ifdef CONFIG_CONSOLE_RECORD console: add console_tstc_check helper function for CONSOLE_MUX common/console.c | 291 ++++++++++++++++++++++++++--------------------- 1 file changed, 164 insertions(+), 127 deletions(-) -- 2.17.1