Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp826874ybv; Thu, 20 Feb 2020 08:00:52 -0800 (PST) X-Google-Smtp-Source: APXvYqwMFmtW+Hdihqsb0xbKNJ7aXH6Z8rgz3U1ZaA5dnT+rRR+AIcx7aZ6F8BkoiEmgWeB50VSn X-Received: by 2002:aca:d507:: with SMTP id m7mr2462206oig.48.1582214452278; Thu, 20 Feb 2020 08:00:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582214452; cv=none; d=google.com; s=arc-20160816; b=UNYIEo2HEccFamkgYPKQy+NQxmo0PYkjGEaxM+f59MI7bG/UZ/0sqxm8ge0m2477Vu uBtxTA9VaIAtX82HB4cUnbccPDikFMAd4a+Vrwcumsvv4GDlXhqYbrVXpGYmJqyfGw60 T6yzJLyH5xf1s90NGwgYXQyIfe3sYIhJ9WN9NWCKyT/YfX5lLkZ4P/GrfmSofrZ9i9S0 AzKSwgaWMwtMbZ96QKdNlnSKYlZKsKQ73r3ogqRZTjmG8VHLIJC19VLTgu+g385cCf+y bXc8WldRLUNXuTUvhO2thknPbuqfrrizzYyibTSOsnTZfa8vFhiirjsc5Y8DAAeCQ9UI zOUg== 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=Ug7WwoG870PcvKt31IN5vVNEGW6SVewO9LJr9dX/Ulk=; b=CeBSvttWiqnzHUmSijnE/aZXK9NYC6ZKXXV2FIIRy1oeSI620AvSUIe7UkpuWmWjrZ TMGTAM0iVaK6UgTxeB8WG+VbFykl4k7iZXWb3AnYG0K1eBsEjP21WfqzXiXvJj+WC2Vn ziPVT144feElynF3jlNfC4kH0VUc18DzjXa80yff3qrlP+l4iBigDEOReSYSA/wGfFxW r6vq8wA2TEn4aoEWJxpeiYUy5xpXGHW1xmCZ7ia9oSmOC5S696bli0c/4G4HXt/N3FFD PoPG/vzQcz7bodfZ7TZEkO6SZKCmcxWXgGRNzH4rgCpz6ItFkLsRZ17q+HnD2k3egE07 X+YA== 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 m11si11044619oim.223.2020.02.20.08.00.40; Thu, 20 Feb 2020 08:00:52 -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 S1728726AbgBTP70 (ORCPT + 99 others); Thu, 20 Feb 2020 10:59:26 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:47606 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728699AbgBTP7Y (ORCPT ); Thu, 20 Feb 2020 10:59:24 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 122CC29519F 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 Subject: [PATCH 7/8] platform/chrome: cros_ec: Use cros_ec_cmd_xfer_status helper Date: Thu, 20 Feb 2020 16:58:58 +0100 Message-Id: <20200220155859.906647-8-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 This patch makes use of cros_ec_cmd_xfer_status() instead of cros_ec_cmd_xfer(). In this case the change is trivial and the only reason to do it is because we want to make cros_ec_cmd_xfer() a private function for the EC protocol and let people only use the cros_ec_cmd_xfer_status() to return Linux standard error codes. Signed-off-by: Enric Balletbo i Serra --- drivers/platform/chrome/cros_ec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/chrome/cros_ec.c b/drivers/platform/chrome/cros_ec.c index 6fc8f2c3ac51..e179411bdfbe 100644 --- a/drivers/platform/chrome/cros_ec.c +++ b/drivers/platform/chrome/cros_ec.c @@ -120,7 +120,7 @@ static int cros_ec_sleep_event(struct cros_ec_device *ec_dev, u8 sleep_event) buf.msg.command = EC_CMD_HOST_SLEEP_EVENT; - ret = cros_ec_cmd_xfer(ec_dev, &buf.msg); + ret = cros_ec_cmd_xfer_status(ec_dev, &buf.msg); /* For now, report failure to transition to S0ix with a warning. */ if (ret >= 0 && ec_dev->host_sleep_v1 && -- 2.25.0