Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp828437ybv; Thu, 20 Feb 2020 08:02:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxKdZXMDRupMwZDeyGn9A3Fqs1ufxev0ZbA82Y8/jI2A4orvAkdV74PP0QWdi5GXrZyE5pW X-Received: by 2002:a9d:67c9:: with SMTP id c9mr25381405otn.144.1582214528979; Thu, 20 Feb 2020 08:02:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582214528; cv=none; d=google.com; s=arc-20160816; b=x1hWcX17YzLvnesICcnkpTO+3JRLKQSqETScGS2TAh+/BXxZeqBEWIN2h9oK8T1ead /he29sQyuKVnwgFeT/uPR6L8Rq6yTS5bPFK/X8wPQilkT2DzQgCDdE9EXZhjo9pFK1od SaGs0QrdhmHqu99P61Pzuo9Us3ve6P+EKRlpnZ9x3FF1GwfuZhmBnYu7+B3BsUkNI6cW 9pXsZbtiOoB0cD/tADZyddKjOdxwKaUezl6tyvhBd8HEoclglsNda4H0KiVSwBDRPLIC tB/32qBrYwIMcIKldnhvCzVtm/2FBUyKyaTYQI2G6Y4v7fGfMIiS7KvLriZC9nS0MxQW Nrwg== 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=KzBgxYcfn125W9sNzKhhVNZCdpJL+Sn4ou6ySj8IK8o=; b=t/1wJfyk6dTzhQWqzN6kAA6bCEYUJUsTtinjfxAcawvl24f6NPm22ATfO55nMNbh8U oxWbRrIomL7OQgDvICbHFRgaGxw/a3MReAMyo68oIfUr1R045ZL0lppaDmwRcJF8KNiz TF8/ZH+XJ3Ny6FNZ0I5liR3AXcMk/kT3DKzwgodQMmJGLEi1D0Ql6cjQG6ct7fECCgtD FXOTFYH0SENCvk0W32qEca1FHhI0G7243TydR1PBG+dWxEtrenTWB+hOHv5uuB2m93Hc mQz5bK7aTK5s73F4HiGaj7D2ZsYogGK3H6S9sg3mDzUY6wRHuiqOxlqWz8QJlVjs3a81 6mCw== 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 j20si1697425otp.147.2020.02.20.08.01.55; Thu, 20 Feb 2020 08:02:08 -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 S1728606AbgBTP7U (ORCPT + 99 others); Thu, 20 Feb 2020 10:59:20 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:47586 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728305AbgBTP7U (ORCPT ); Thu, 20 Feb 2020 10:59:20 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id EC9B428E68F 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, Enrico Granata , Andy Shevchenko , Jonathan Cameron , Ting Shen , Lee Jones , Neil Armstrong , Dmitry Torokhov , Fei Shao , Pi-Hsun Shih , Evan Green , linux-input@vger.kernel.org Subject: [PATCH 0/8] Migrate all cros_ec_cmd_xfer() calls to cros_ec_cmd_xfer_status() Date: Thu, 20 Feb 2020 16:58:51 +0100 Message-Id: <20200220155859.906647-1-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.25.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 Dear all, The purpose of this series is get rid of the remaining places where the cros_ec_cmd_xfer() function is used in favour of the cros_ec_cmd_xfer_status() helper. This allows us to make the cros_ec_cmd_xfer() function private and only expose to the users a single way to send commands to the Embedded Controller. With these changes we also want to help future improvements in the interface, like the Prashant's series (i.e [1]) to introduce a cros_ec_cmd() that will allow us to remove more duplicated code in different places. Best regards, Enric Note: Prashant, looks like you should fix your sendmail as the patches are not threaded. [1] https://lkml.org/lkml/2020/2/5/614 Enric Balletbo i Serra (8): platform/chrome: cros_ec_proto: Report command not supported Input: cros_ec_keyb: Use cros_ec_cmd_xfer_status helper platform/chrome: cros_ec_vbc: Use cros_ec_cmd_xfer_status helper platform/chrome: cros_ec_chardev: Use cros_ec_cmd_xfer_status helper platform/chrome: cros_ec_sysfs: Use cros_ec_cmd_xfer_status helper platform/chrome: cros_ec_lightbar: Use cros_ec_cmd_xfer_status helper platform/chrome: cros_ec: Use cros_ec_cmd_xfer_status helper platform/chrome: cros_ec_proto: Do not export cros_ec_cmd_xfer() drivers/input/keyboard/cros_ec_keyb.c | 14 +++--- drivers/platform/chrome/cros_ec.c | 2 +- drivers/platform/chrome/cros_ec_chardev.c | 2 +- drivers/platform/chrome/cros_ec_lightbar.c | 50 ++++++--------------- drivers/platform/chrome/cros_ec_proto.c | 14 ++++-- drivers/platform/chrome/cros_ec_sysfs.c | 36 +++++++-------- drivers/platform/chrome/cros_ec_vbc.c | 4 +- include/linux/platform_data/cros_ec_proto.h | 3 -- 8 files changed, 50 insertions(+), 75 deletions(-) -- 2.25.0