From mboxrd@z Thu Jan 1 00:00:00 1970 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 540EFC433F5 for ; Mon, 2 May 2022 14:19:53 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6F7FF83E57; Mon, 2 May 2022 16:19:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=solid-run.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=solid-run-com.20210112.gappssmtp.com header.i=@solid-run-com.20210112.gappssmtp.com header.b="eDxTaUPf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 01C9083F31; Mon, 2 May 2022 16:18:59 +0200 (CEST) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (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 EE98183EA1 for ; Mon, 2 May 2022 16:18:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=solid-run.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=josua@solid-run.com Received: by mail-wm1-x32a.google.com with SMTP id k126so4945912wme.2 for ; Mon, 02 May 2022 07:18:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solid-run-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qbO6aL6G+/vzLp7Yljhst3oH1eKkmIu+Wvi18N1cmeo=; b=eDxTaUPfHoVuEHSR6ukhS/9zkNwXHYwF+UYAwNZ/NlCbWkWBs0/iSSVDAyWwhdxIHL IHF8DIMre+gB/HWN1XhxQp8UEdVjYHijplUsYZcN9BWhzCFonDLfAKIk5pAAGqU6RRIs qMWA5eDRrjxcG56XjEnSaJchqjC77r3kbak74BhYwmwwd/X869H5FLHdK0HdMxHdlYp8 bqSDKK/aWklp2swl8aOV4a+ljftOUN0B/Lrk/oy1hx2rdVR87e12drJBG2AFkr46heh5 WYYPg3gJR8dOeLArDleNimYOsaRkPFFtcz4nBIIAag8ZbYBWsth8PfDc/WjS4C5JjgHP OkJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qbO6aL6G+/vzLp7Yljhst3oH1eKkmIu+Wvi18N1cmeo=; b=E8xU7VIOCfW0zT4FcSAMUy408YjMuK7oSwWYzZeoK6o+WETkOoMSpCg8Ed4nvOKC/s gbA0weoa5Y/nhvp0aTK6grkOk0nj3RKJ/ERiNAD7g6IG73ydspFLIq5YiSLyZwKf/mi+ y6WRVOvzFv4k1hT23vrNe7Wk909Tm8hM8jAjVlyHMJIfc4r6MPX6qjNoZiMG3weMNo3y rnXa7TJEAID69Is5JADELHelE9shIcLyfKGkCCAMowlbydH8o/Zm6XsUdaRCIfy/Qpe2 79dNG2kJWxCe3JUZSeExC5HnYsYyHdtF7v8G5eEC6C3HBJB/M9FblJPd816vfkehAtzC /GJQ== X-Gm-Message-State: AOAM531X6dfJFkIi/HX2CnwNwLqsP4yo/iSOsXHi0pCXFjusJu1vUbxt U5HgJjuwq4jDXUZlnQvWbesBCVTR+EE/Uw== X-Google-Smtp-Source: ABdhPJyyMAf4LTvEox82+2nOwzAQ0T6RnxihSm2O3CDMmfgox63Q05VrlHbgUCC2xojU+9jPlv5T+A== X-Received: by 2002:a05:600c:3494:b0:394:3fd1:2228 with SMTP id a20-20020a05600c349400b003943fd12228mr3015566wmq.65.1651501132317; Mon, 02 May 2022 07:18:52 -0700 (PDT) Received: from josua-work.lan (bzq-82-81-222-124.cablep.bezeqint.net. [82.81.222.124]) by smtp.gmail.com with ESMTPSA id t1-20020adfba41000000b0020c6fa5a797sm940035wrg.91.2022.05.02.07.18.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 07:18:51 -0700 (PDT) From: Josua Mayer To: u-boot@lists.denx.de Cc: Josua Mayer Subject: [PATCH 05/12] cmd: tlv_eeprom: remove empty function implementations from header Date: Mon, 2 May 2022 17:18:31 +0300 Message-Id: <20220502141838.15912-6-josua@solid-run.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220502141838.15912-1-josua@solid-run.com> References: <20220502141838.15912-1-josua@solid-run.com> 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.5 at phobos.denx.de X-Virus-Status: Clean tlv_eeprom exposed functions are independent from platforms, hence no stubs are required. Signed-off-by: Josua Mayer --- include/tlv_eeprom.h | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/include/tlv_eeprom.h b/include/tlv_eeprom.h index 30626a1067..55fd72d6d2 100644 --- a/include/tlv_eeprom.h +++ b/include/tlv_eeprom.h @@ -65,7 +65,8 @@ struct __attribute__ ((__packed__)) tlvinfo_tlv { #define TLV_CODE_VENDOR_EXT 0xFD #define TLV_CODE_CRC_32 0xFE -#if CONFIG_IS_ENABLED(CMD_TLV_EEPROM) +/* how many EEPROMs can be used */ +#define TLV_MAX_DEVICES 2 /** * read_tlv_eeprom - Read the EEPROM binary data from the hardware @@ -156,27 +157,6 @@ void tlvinfo_update_crc(u8 *eeprom); */ bool tlvinfo_check_crc(u8 *eeprom); -#else /* !CONFIG_IS_ENABLED(CMD_TLV_EEPROM) */ - -static inline int read_tlv_eeprom(void *eeprom, int offset, int len, int dev) -{ - return -ENOSYS; -} - -static inline int write_tlv_eeprom(void *eeprom, int len) -{ - return -ENOSYS; -} - -static inline int -read_tlvinfo_tlv_eeprom(void *eeprom, struct tlvinfo_header **hdr, - struct tlvinfo_tlv **first_entry, int dev) -{ - return -ENOSYS; -} - -#endif /* CONFIG_IS_ENABLED(CMD_TLV_EEPROM) */ - /** * is_valid_tlvinfo_header * -- 2.34.1