Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1944273ybt; Mon, 15 Jun 2020 13:39:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1fvtdMejCJr89oeHcxmDWxsz+agVA2tKXTWakLPOYKwWai787x7ZrXJtSDFrGTSvWk6iA X-Received: by 2002:aa7:c756:: with SMTP id c22mr25876655eds.239.1592253569408; Mon, 15 Jun 2020 13:39:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592253569; cv=none; d=google.com; s=arc-20160816; b=o2qjZsHX8fsZIJGkD834nKTdAQgqR1gh+HB29ObZBAX6A6Q8Yes12YRwOg5jWyVGVX xkC3RlZv9DikGJeMeMFJ+GZMhkvs5sXSzQFkz9DpHMj10m1lniYyofwltV3xcfBSY7bL pWc5NE1uNXjHCH1Ltchq+bBDk/f6swxnBNI9Zush9mqc61j4JpHWR2gLZ8tgUBB1jz9e Y7CrdEVgWr9Gmm6fWgsGYovwcM+AJKaxy5YgEHWAAeQeouova35kBem/2PilAe23yy46 FKDN7qQPlePNlFDOLYNMYmAcj3hQbB+qjEwhVlNm2V82/WSFFT2hWUxjnPEH2/THnP30 sohw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=KBEgRzIadfrnN0IAw0Zj2cYYOMavlT/NHLXLF8G3LWM=; b=c02VjlX/8ibfvnL3Y3c0hREVIJd+UIymIVN+1ZKM0q14TiN2c7RDfB29ClYol4/gjA vst692t/YcLPai2dTHaB0xf/YQ3r1Byop+js7jHXYiFDQF1OO+kPjjkUV9f6o/wU/kPm NR/dzuCxMcCncYxFnu1LtGbYWSDTRSvWJwUU/9Lyt7Sc/VHKF5KcMW/eVjrZoreUq7AE f4yXdep5X9JTHYhxbcPeecq0DYGldAjZAJ3CxaC1yfdsxcuq09HhHlL8SJyMtlRhq9i6 exhtdt4ymadVsAaTFKcY32dFWMeXD3bhl/Yv0puTVyQaKuF3wpJfowIzTgHMK0FYwo2N CY/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp4si11907028ejc.258.2020.06.15.13.39.07; Mon, 15 Jun 2020 13:39:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731017AbgFOUfa (ORCPT + 99 others); Mon, 15 Jun 2020 16:35:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728346AbgFOUfa (ORCPT ); Mon, 15 Jun 2020 16:35:30 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3444C061A0E for ; Mon, 15 Jun 2020 13:35:29 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 1BC2D2A2CF6 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: Collabora Kernel ML , Andy Shevchenko , Benson Leung , Evan Green , Guenter Roeck , Gwendal Grignou , Jonathan Cameron , Lee Jones , Pi-Hsun Shih , Yicheng Li Subject: [PATCH] platform/chrome: cros_ec_proto: Do not export cros_ec_cmd_xfer() Date: Mon, 15 Jun 2020 22:35:21 +0200 Message-Id: <20200615203521.787132-1-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that all the remaining users of cros_ec_cmd_xfer() has been removed, make this function private to the cros_ec_proto module. Signed-off-by: Enric Balletbo i Serra --- drivers/platform/chrome/cros_ec_proto.c | 5 ++--- include/linux/platform_data/cros_ec_proto.h | 3 --- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/platform/chrome/cros_ec_proto.c b/drivers/platform/chrome/cros_ec_proto.c index 3e745e0fe092c..11a2db7cd0f76 100644 --- a/drivers/platform/chrome/cros_ec_proto.c +++ b/drivers/platform/chrome/cros_ec_proto.c @@ -496,8 +496,8 @@ EXPORT_SYMBOL(cros_ec_query_all); * * Return: 0 on success or negative error code. */ -int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev, - struct cros_ec_command *msg) +static int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev, + struct cros_ec_command *msg) { int ret; @@ -541,7 +541,6 @@ int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev, return ret; } -EXPORT_SYMBOL(cros_ec_cmd_xfer); /** * cros_ec_cmd_xfer_status() - Send a command to the ChromeOS EC. diff --git a/include/linux/platform_data/cros_ec_proto.h b/include/linux/platform_data/cros_ec_proto.h index 3832433266762..4a415ae851ef0 100644 --- a/include/linux/platform_data/cros_ec_proto.h +++ b/include/linux/platform_data/cros_ec_proto.h @@ -216,9 +216,6 @@ int cros_ec_prepare_tx(struct cros_ec_device *ec_dev, int cros_ec_check_result(struct cros_ec_device *ec_dev, struct cros_ec_command *msg); -int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev, - struct cros_ec_command *msg); - int cros_ec_cmd_xfer_status(struct cros_ec_device *ec_dev, struct cros_ec_command *msg); -- 2.27.0