Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1307435

[PATCH 11/14] dell-smbios: remove find_token_{id,location}()

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Michał Kępień <kernel@kempniu.pl>
Newsgroups linux.kernel
Subject [PATCH 11/14] dell-smbios: remove find_token_{id,location}()
Date Tue, 12 Jan 2016 15:10:02 +0100
Message-ID <qQ7O2-1Z5-27@gated-at.bofh.it> (permalink)
References <qQ7O1-1Z5-3@gated-at.bofh.it>
X-Original-To Darren Hart <dvhart@infradead.org>, Matthew Garrett <mjg59@srcf.ucam.org>, Pali Rohár <pali.rohar@gmail.com>, Richard Purdie <rpurdie@rpsys.net>, Jacek Anaszewski <j.anaszewski@samsung.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=kempniu.pl; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=lpV7MGHm0UrHRGqcL3NS7TP2ZgYqCIGQiD4ZH9/oV44=; b=jmm168iSJuRszEvPtNOkuxevmtL0/EtHabT+AT9vn/VfRmn5/abgU6ra2cb19deXUs y4bcKJa8YeIJd6GoXfbuRmekoThhPMvBa+u8Fw0NEsr08G1G0o8qHKSTYHWmgRwSVbve 2vZVhFDuY1xx4c4bhFQ45famFye33f1HiCx6U=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=lpV7MGHm0UrHRGqcL3NS7TP2ZgYqCIGQiD4ZH9/oV44=; b=b3dxAb2Ln1MysUPf6bcZhPKsaw9609wZvPTdo43YThdaTQA5cducsea34JRW+Qmh+A jtYGbsuNt8dsMdx650ZqSt4Xlt3MDQzqHn8KKMCIhnKm/9IRYE2hZCrVeSyMmDghwMx7 h0iwjPH8OmWK5cwg9zmKefT0/dwo8dkTosODAgpj1nK6Vg34IONGBnA2i/7ENba7HuTs VQ7LUvSPlqk+3G7j4jerZqqnZ0EiPIxBOehxW79SbuHBtMQcULD/h8d2v3/VQjNeXR+8 GMleoheqDj5aQbK+kUAn0443LZT8mjs30/mU5ncgYYkHH+2dwxZSg7VWcOw5CQTOTUAp TXXw==
X-Gm-Message-State ALoCoQmqeOWWIXJxI8hQjXQekM2zho845/4W4dAnZclMSDrEaVkVwevsUJgT7dq+UAo9XHU3DOlZl5ubqby9fNZbi5ouqfrRIw==
X-Received by 10.25.64.5 with SMTP id n5mr44156918lfa.89.1452607411785; Tue, 12 Jan 2016 06:03:31 -0800 (PST)
X-Mailer git-send-email 1.7.10.4
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 62
Organization linux.* mail to news gateway
X-Original-Cc Alex Hung <alex.hung@canonical.com>, platform-driver-x86@vger.kernel.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org
X-Original-Date Tue, 12 Jan 2016 15:02:57 +0100
X-Original-Message-ID <1452607380-20861-12-git-send-email-kernel@kempniu.pl>
X-Original-References <1452607380-20861-1-git-send-email-kernel@kempniu.pl>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1307435

Show key headers only | View raw


As find_token_id() and find_token_location() were only used in
dell-laptop, which has been changed to use dell_smbios_find_token()
instead, the old functions can be safely removed.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
---
 drivers/platform/x86/dell-smbios.c |   25 -------------------------
 drivers/platform/x86/dell-smbios.h |    3 ---
 2 files changed, 28 deletions(-)

diff --git a/drivers/platform/x86/dell-smbios.c b/drivers/platform/x86/dell-smbios.c
index 83e35ed..f506a20 100644
--- a/drivers/platform/x86/dell-smbios.c
+++ b/drivers/platform/x86/dell-smbios.c
@@ -72,31 +72,6 @@ struct calling_interface_token *dell_smbios_find_token(int tokenid)
 }
 EXPORT_SYMBOL_GPL(dell_smbios_find_token);
 
-int find_token_id(int tokenid)
-{
-	int i;
-
-	for (i = 0; i < da_num_tokens; i++) {
-		if (da_tokens[i].tokenID == tokenid)
-			return i;
-	}
-
-	return -1;
-}
-EXPORT_SYMBOL_GPL(find_token_id);
-
-int find_token_location(int tokenid)
-{
-	int id;
-
-	id = find_token_id(tokenid);
-	if (id == -1)
-		return -1;
-
-	return da_tokens[id].location;
-}
-EXPORT_SYMBOL_GPL(find_token_location);
-
 struct calling_interface_buffer *dell_smbios_send_request(int class,
 							  int select)
 {
diff --git a/drivers/platform/x86/dell-smbios.h b/drivers/platform/x86/dell-smbios.h
index 23f6e95..3e39e13 100644
--- a/drivers/platform/x86/dell-smbios.h
+++ b/drivers/platform/x86/dell-smbios.h
@@ -44,9 +44,6 @@ void dell_smbios_release_buffer(void);
 
 struct calling_interface_token *dell_smbios_find_token(int tokenid);
 
-int find_token_id(int tokenid);
-int find_token_location(int tokenid);
-
 struct calling_interface_buffer *dell_smbios_send_request(int class,
 							  int select);
 #endif
-- 
1.7.10.4

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 11/14] dell-smbios: remove find_token_{id,location}() Michał Kępień <kernel@kempniu.pl> - 2016-01-12 15:10 +0100

csiph-web