Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 25271C433FE for ; Wed, 19 Oct 2022 11:34:08 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 806AF84FCC; Wed, 19 Oct 2022 13:33:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="XYvEHQOu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EC57D84FB5; Wed, 19 Oct 2022 13:33:14 +0200 (CEST) Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 105BB84FC2 for ; Wed, 19 Oct 2022 13:24:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x134.google.com with SMTP id h18so8980957ilh.3 for ; Wed, 19 Oct 2022 04:24:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=D7N3QN2aE5ihK3+pwJGzO8C80zMz6XLxZrDXYmxwfSw=; b=XYvEHQOuUn+zWukBsSpoCFScjUpylk1ZMuTJ+wMl4F0LTR0fpHF8RaRD59EAajRbI2 IP5PPaKxIMjOIccdVY8MJBYa+qVTEaUREtwj37LiHiFz7xgjuEG90ZD7Cz9ex6PFeWWG 89QfZu72cZXOaW412dCY7faXy+lW8O4ayHUR8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D7N3QN2aE5ihK3+pwJGzO8C80zMz6XLxZrDXYmxwfSw=; b=vhfI46MKng4qdkYHIQQk+oXORfX5Ku3+xronwqmJ4bFdMlXM+b2KmykkPYlCvdwNpT UDLwxNMHNMvVakeSQeGYrJWfIOurgd/9hbJWLjokwBQLZ7OsZzuIfkDkol7/IaPTNp1c QlAPdO4DECFK4wK6sM0R8Zb8eBphHGZR/82mM4O+1zGTiHfbBE1kxr34DXn8CrqCp/zv W3Dt8uguju/iCpucnK5cSYRMRN1EZ2QrMsMyyBdQjPUeEEVVA1BUidRVt7OqIk/7IQF/ XnqJ2NFsBps9KAO5euIfmzGI9ZLFk3rhbaBat++5WHFJgIURhKsNolQ3J7l1oxR4uIMV vZ0w== X-Gm-Message-State: ACrzQf35H7/JE7z4Mz5marxEfm2NlEhkGUL+uroqop8ye7TiSC5PxYrM zEWNoMJCQD6UWB2dNuzP3WowLuD7ein6nQ== X-Google-Smtp-Source: AMsMyM7vB0sDgbeyCaTrZjYdNS5RxzUegfSkUqNAXAJIspJkslXM+hHcxN6NbH32yaNn/s9QVojHUA== X-Received: by 2002:a05:6e02:20ea:b0:2fc:318b:a952 with SMTP id q10-20020a056e0220ea00b002fc318ba952mr5409009ilv.236.1666178687518; Wed, 19 Oct 2022 04:24:47 -0700 (PDT) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id g34-20020a022722000000b003634aa4a55asm2041156jaa.82.2022.10.19.04.24.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 04:24:47 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Anatolij Gustschin , Simon Glass , Jason Liu Subject: [PATCH 10/39] video: Move bmp_display() prototype to video.h Date: Wed, 19 Oct 2022 05:23:27 -0600 Message-Id: <20221019112356.1042065-11-sjg@chromium.org> X-Mailer: git-send-email 2.38.0.413.g74048e4d9e-goog In-Reply-To: <20221019112356.1042065-1-sjg@chromium.org> References: <20221019112356.1042065-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean The lcd.h header is about to be deleted, so move this prototype. Signed-off-by: Simon Glass --- cmd/bmp.c | 10 ---------- include/video.h | 9 +++++++++ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/cmd/bmp.c b/cmd/bmp.c index 5a3c8ddf8c8..880edad8898 100644 --- a/cmd/bmp.c +++ b/cmd/bmp.c @@ -221,16 +221,6 @@ static int bmp_info(ulong addr) return(0); } -/* - * Subroutine: bmp_display - * - * Description: Display bmp file located in memory - * - * Inputs: addr address of the bmp file - * - * Return: None - * - */ int bmp_display(ulong addr, int x, int y) { #ifdef CONFIG_DM_VIDEO diff --git a/include/video.h b/include/video.h index 43e2c899778..f062f4a63b0 100644 --- a/include/video.h +++ b/include/video.h @@ -275,4 +275,13 @@ static inline int video_sync_copy_all(struct udevice *dev) */ bool video_is_active(void); +/* + * bmp_display() - Display BMP (bitmap) data located in memory + * + * @addr: address of the bmp data + * @x: Position of bitmap from the left side, in pixels + * @y: Position of bitmap from the top, in pixels + */ +int bmp_display(ulong addr, int x, int y); + #endif -- 2.38.0.413.g74048e4d9e-goog