Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp825901ybv; Thu, 20 Feb 2020 07:59:58 -0800 (PST) X-Google-Smtp-Source: APXvYqxKKipSBvHNwu6ch2Ie6kLViZtYHaMWjBFhWvt8btpSDwGUq6cGJAvNmpVvnv7ToAXkrew9 X-Received: by 2002:a9d:68c8:: with SMTP id i8mr24848336oto.34.1582214398039; Thu, 20 Feb 2020 07:59:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582214398; cv=none; d=google.com; s=arc-20160816; b=TlwvNQkn76c3m4zpDK9R0+zTx0jfvGBITx3aNIGDBJjUMOo9Vx4JTCjZXvrPyaQ8KF voHr90eztVFBE3STsLDHNSWC57K52+VWHhzHBnl/9DzrTwRwBEVpzo9ZZe35PzBpz7rH yw2PEeLnrnB5xWvUzXd+pnNMjJBJUrtemdrV6P4AbmoSrLzSqHS34IvHIHo4l4yR7jHr zIgtnrkMGii7411D7j3meDGfxP6jowBE7KFIiSpJoYCjHrwxn2eTEyDlwkkCxH7ZkgEy xUZsqtGfgnbemx+BCPduT3cxud9zHH62keEI+IGR6eGuTG0xXrKeh8/bE9l9I2IPvXEY O+JQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=aw+mghDxOQny3dk14jk73N+lob7d0BT0dNzQDPiOuGQ=; b=cDPNQh49/1PQTvHs32cOE5pz6BYUNQ2anCHGWY/CAIWHZe5w9SxSGvJsRQPnYrk7ZL X+Lj4uszZNPQkoZJFkCMYMuWn21D7ikGhdUI9eYOtUhFiNJ9Kx12y+oYEFrNH+ZcEf6J AA8a6MDCoqWM7x5IBOgPatnXAyGhDeRcpHd+SmjXmOSGnJq+k7n2SbYQtrMocD+pxuP5 b759Ae2tn3UovxoKd0mKB1g4yYgQKb1jhFkVHK8dNcy/EL/pdriv+6zX8Y7bZAb1ahm4 Op9a2drm4j8GF5dh9txrnihlUgO2NQOrfKb3Hv7qGdfYW+Fn2sIej6zrLLV/pRcqTOM0 GX+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d23si11743230oij.270.2020.02.20.07.59.45; Thu, 20 Feb 2020 07:59:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728735AbgBTP7b (ORCPT + 99 others); Thu, 20 Feb 2020 10:59:31 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:47622 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728716AbgBTP70 (ORCPT ); Thu, 20 Feb 2020 10:59:26 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id C96B92951A0 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: Collabora Kernel ML , groeck@chromium.org, bleung@chromium.org, dtor@chromium.org, gwendal@chromium.org, pmalani@chromium.org, Jonathan Cameron , Enrico Granata , Andy Shevchenko , Lee Jones , Pi-Hsun Shih , Evan Green Subject: [PATCH 8/8] platform/chrome: cros_ec_proto: Do not export cros_ec_cmd_xfer() Date: Thu, 20 Feb 2020 16:58:59 +0100 Message-Id: <20200220155859.906647-9-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200220155859.906647-1-enric.balletbo@collabora.com> References: <20200220155859.906647-1-enric.balletbo@collabora.com> 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 3e745e0fe092..11a2db7cd0f7 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 ba5914770191..1334fedc07cb 100644 --- a/include/linux/platform_data/cros_ec_proto.h +++ b/include/linux/platform_data/cros_ec_proto.h @@ -212,9 +212,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.25.0