public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ovidiu Panait <ovpanait@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2 2/3] cmd/bedbug.c: Make bedbug_init have a return value
Date: Mon, 20 Apr 2020 10:31:45 +0300	[thread overview]
Message-ID: <20200420073146.29787-2-ovpanait@gmail.com> (raw)
In-Reply-To: <20200420073146.29787-1-ovpanait@gmail.com>

Do this as a preparation for removing initr_bedbug wrapper from
common/board_r.c.

Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
v2 updates:
  - fix checkpatch warnings
  - add reviewed-by tag

 cmd/bedbug.c          | 4 ++--
 include/bedbug/type.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmd/bedbug.c b/cmd/bedbug.c
index 9fee528830..7cb6378352 100644
--- a/cmd/bedbug.c
+++ b/cmd/bedbug.c
@@ -44,10 +44,10 @@ int bedbug_puts (const char *str)
  * settings.
  * ====================================================================== */
 
-void bedbug_init (void)
+int bedbug_init(void)
 {
 	/* -------------------------------------------------- */
-	return;
+	return 0;
 }				/* bedbug_init */
 
 
diff --git a/include/bedbug/type.h b/include/bedbug/type.h
index b7b447b1fe..5008b40ca8 100644
--- a/include/bedbug/type.h
+++ b/include/bedbug/type.h
@@ -3,7 +3,7 @@
 
 /* Supporting routines */
 int bedbug_puts (const char *);
-void bedbug_init (void);
+int bedbug_init(void);
 void bedbug860_init (void);
 void do_bedbug_breakpoint (struct pt_regs *);
 void bedbug_main_loop (unsigned long, struct pt_regs *);
-- 
2.17.1

  reply	other threads:[~2020-04-20  7:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-20  7:31 [PATCH v2 1/3] common/board_r: arm: Merge initr_enable_interrupts into interrupts_init Ovidiu Panait
2020-04-20  7:31 ` Ovidiu Panait [this message]
2020-05-01 21:56   ` [PATCH v2 2/3] cmd/bedbug.c: Make bedbug_init have a return value Tom Rini
2020-04-20  7:31 ` [PATCH v2 3/3] common/board_r: Drop initr_bedbug wrapper Ovidiu Panait
2020-05-01 21:56   ` Tom Rini
2020-05-01 21:55 ` [PATCH v2 1/3] common/board_r: arm: Merge initr_enable_interrupts into interrupts_init Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200420073146.29787-2-ovpanait@gmail.com \
    --to=ovpanait@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox