From patchwork Thu Mar 9 16:22:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1754713 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=HB78R8oD; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PXZGz5qKjz2469 for ; Fri, 10 Mar 2023 03:23:07 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2C9DF85E8E; Thu, 9 Mar 2023 17:22:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com 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=konsulko.com header.i=@konsulko.com header.b="HB78R8oD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 07FB385AB0; Thu, 9 Mar 2023 17:22:23 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) (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 C4FDC85B84 for ; Thu, 9 Mar 2023 17:22:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf32.google.com with SMTP id nv15so1755945qvb.7 for ; Thu, 09 Mar 2023 08:22:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1678378936; 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=inRi1LEWJJ1q6M+OzG8GaiRT/CYCzlsGklO6nI/riiw=; b=HB78R8oDT6yT9wvlIPTSlR5SnAiwNsUmDF42xkudW84p2Q4hLMKZWfKQD0Rsq/Q42W YmezkJtp5wONfUP0a9pLtkd/bKe1Vp3DyBYtR15EHNt1ocUETmGaAEymouGztpWRRaU/ SaB5BDnqCcwcIynhs4jJazLYi7/czqMRkj074= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678378936; 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=inRi1LEWJJ1q6M+OzG8GaiRT/CYCzlsGklO6nI/riiw=; b=GtTs2nCObwqSRyOGq+kkQQorkSmG0lNbw41eGhU12ZZuPAf/Slyomcgm01wpUEDkbr ji4EpXkjpwULPHr17gKimN/h4yqzgPD5LAKm3dSfQsospTDS0wYamUZ4k3lgwGJEWZDT QmM9snBibHvDcVf4NAAyZMnFZOJcv9BikEja4PqS7ILpWbRmYHgh6G0yBfKOdBglU4JP 1v6TobvMZWfgaDLvCN3pNTfAjxH5QfxY8NszVBP4xMiwyGTFjhaBwhWMdjczi3YlftrK Q0kLNcDPyKMHRLL8KvR4Vx7hHKng3demFAq7fnA36RcKqdXF/Gn6E8bV/uV++Zv+k4oa UcYQ== X-Gm-Message-State: AO0yUKX7rnbLYH/a9N2S5cPqO7lDCfUKzh/+55jLQPfvUP0h/eE+QALn M2n8xXqP2xZFpnz7/nhVkswqUD6NZGwemjQ82b0aUQ== X-Google-Smtp-Source: AK7set+6qxEn/JJ4ML0OOymW2CIAsiGpsY83OKWLo/GQ+tTJSJSaS5pLyLPAJYGHOKTYt4K77Hc+7g== X-Received: by 2002:a05:6214:258a:b0:569:abb6:f09 with SMTP id fq10-20020a056214258a00b00569abb60f09mr40957645qvb.40.1678378936377; Thu, 09 Mar 2023 08:22:16 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-0000-0000-0000-036b.res6.spectrum.com. [2603:6081:7b00:6400::36b]) by smtp.gmail.com with ESMTPSA id r145-20020a37a897000000b0073b69922cfesm13828287qke.85.2023.03.09.08.22.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 08:22:16 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Cc: "Ying-Chun Liu (PaulLiu)" Subject: [PATCH 4/6] compulab: imx8mm-cl-iot-gate: Fix some function declarations in eeprom_spl.c Date: Thu, 9 Mar 2023 11:22:10 -0500 Message-Id: <20230309162212.2096573-4-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230309162212.2096573-1-trini@konsulko.com> References: <20230309162212.2096573-1-trini@konsulko.com> MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean We have a few places here we the function declarations do not match their prototypes in another header, correct them. Signed-off-by: Tom Rini --- Cc: "Ying-Chun Liu (PaulLiu)" --- board/compulab/imx8mm-cl-iot-gate/eeprom_spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/compulab/imx8mm-cl-iot-gate/eeprom_spl.c b/board/compulab/imx8mm-cl-iot-gate/eeprom_spl.c index 90cc33a6e460..b8573aaac283 100644 --- a/board/compulab/imx8mm-cl-iot-gate/eeprom_spl.c +++ b/board/compulab/imx8mm-cl-iot-gate/eeprom_spl.c @@ -101,7 +101,7 @@ u32 cl_eeprom_set_ddrinfo(u32 ddrinfo) return board_ddrinfo; }; -u8 cl_eeprom_get_subind(void) +u32 cl_eeprom_get_subind(void) { if (cl_eeprom_read(BOARD_DDRSUBIND_OFFSET, (uchar *)&board_ddrsubind, BOARD_DDRSUBIND_SIZE)) return 0xff; @@ -109,7 +109,7 @@ u8 cl_eeprom_get_subind(void) return board_ddrsubind; }; -u8 cl_eeprom_set_subind(u8 ddrsubind) +u32 cl_eeprom_set_subind(u32 ddrsubind) { if (cl_eeprom_write(BOARD_DDRSUBIND_OFFSET, (uchar *)&ddrsubind, BOARD_DDRSUBIND_SIZE)) return 0xff;