From patchwork Mon Aug 13 15:31:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 176983 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6CC362C007A for ; Tue, 14 Aug 2012 01:56:59 +1000 (EST) Received: from localhost ([::1]:40751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0x0j-0007rf-AH for incoming@patchwork.ozlabs.org; Mon, 13 Aug 2012 11:56:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0x0S-0007kC-0O for qemu-devel@nongnu.org; Mon, 13 Aug 2012 11:56:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0x0P-000763-Q9 for qemu-devel@nongnu.org; Mon, 13 Aug 2012 11:56:39 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:40944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0x0P-00075x-JP for qemu-devel@nongnu.org; Mon, 13 Aug 2012 11:56:37 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1T0wcZ-0008Di-K8; Mon, 13 Aug 2012 16:31:59 +0100 From: Peter Maydell To: Anthony Liguori , Blue Swirl Date: Mon, 13 Aug 2012 16:31:56 +0100 Message-Id: <1344871919-31559-8-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1344871919-31559-1-git-send-email-peter.maydell@linaro.org> References: <1344871919-31559-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 81.2.115.146 Cc: qemu-devel@nongnu.org, Paul Brook Subject: [Qemu-devel] [PATCH 07/10] hw/sd.c: make sd_dataready() return bool X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Mitsyanko Igor For the sake of code clarity Signed-off-by: Igor Mitsyanko Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/sd.c | 2 +- hw/sd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/sd.c b/hw/sd.c index ebc4e7c..209bc19 100644 --- a/hw/sd.c +++ b/hw/sd.c @@ -1703,7 +1703,7 @@ uint8_t sd_read_data(SDState *sd) return ret; } -int sd_data_ready(SDState *sd) +bool sd_data_ready(SDState *sd) { return sd->state == sd_sendingdata_state; } diff --git a/hw/sd.h b/hw/sd.h index d25342f..4eb9679 100644 --- a/hw/sd.h +++ b/hw/sd.h @@ -73,7 +73,7 @@ int sd_do_command(SDState *sd, SDRequest *req, void sd_write_data(SDState *sd, uint8_t value); uint8_t sd_read_data(SDState *sd); void sd_set_cb(SDState *sd, qemu_irq readonly, qemu_irq insert); -int sd_data_ready(SDState *sd); +bool sd_data_ready(SDState *sd); void sd_enable(SDState *sd, bool enable); #endif /* __hw_sd_h */