Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1026930ybt; Fri, 19 Jun 2020 22:05:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyWOldrWbQFL/Nfu5dWleDosJLJz8wRYkRmtVZAyuBUPvHrc2WqK6KQ9BqyXPMt7LGmE5C X-Received: by 2002:a17:906:af43:: with SMTP id ly3mr320788ejb.381.1592629539606; Fri, 19 Jun 2020 22:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592629539; cv=none; d=google.com; s=arc-20160816; b=SsfY+ulAZ7r7V2sprxhG9/2PRCVC4v5+eyX+nXKTbkb1QFdSYx2vI7Mon+yzrdisDU 32nbj7EF24jb4hr8RB5bpzny3NNgKIYHCS2ig/uLz35u74D7kIhiWUnsGY/I5By4Cx4J PFt1hd52FKXAHl1NUGlPqrE1VGoCy5SrgPbNvpmf+z/BKheUbBg7+NzH915GlS2XubMz 9pROeu76kRcQGv2KVL9L5m+nToupGvaH/hzVVM/4k5VFy7IkAm560ZWEVI+E/c5CO3Lf H1mv1cNKi1u1TtxHXHxVMM9JYOxrT5IfyeOlJaQPXueo3jpSQrdmJJt5MjVq+yNofBvN 8iRg== 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:dkim-signature; bh=J/PImVIlMQhUi5RdPNvX2NF2rCR7tu4NCt0FIFuo1io=; b=S2bxKWSmclAxVw+E0ZO4ZtIBj8i90bDnnrdCzHMa854eRW26K9h2Rz0eP4rlxI1XXv +rV2nMFtdX4lFpzdWr+S7HNm/fhMxVWkB9iLvFKfV0dFPlFK4dhDFbLgeSPWbytLdSav i49DmI5A/xyVbsphcwDqQNvuHDifCdNCKiyfBa7IQA+qNb2Oz9XlAs89nlLp08cX8PqO 9De1/dOqQwloxFfMTrwHjibU41W+nYPiU436W5bycJQW9WN2gPkFhfxDJqjDPn/pdpMu SMWPCpkPjf1qGasEWMuCVvBa4ghxlyJj4ahiOp8Rc/Bu95ovYRy9Ykk0MZjBuOJvj+zH kYyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=odDiYisi; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n22si4967616edy.377.2020.06.19.22.05.17; Fri, 19 Jun 2020 22:05:39 -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; dkim=pass header.i=@chromium.org header.s=google header.b=odDiYisi; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731640AbgFTCAv (ORCPT + 99 others); Fri, 19 Jun 2020 22:00:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731607AbgFTCAu (ORCPT ); Fri, 19 Jun 2020 22:00:50 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 101D7C06174E for ; Fri, 19 Jun 2020 19:00:50 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id b201so5305718pfb.0 for ; Fri, 19 Jun 2020 19:00:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=J/PImVIlMQhUi5RdPNvX2NF2rCR7tu4NCt0FIFuo1io=; b=odDiYisiF1Tysi4CDYwRedQg63AgXLx2FVYxlrTaZmeSG5K2iAq0hJiESb3E9HN8qO EksGYj4CHuJdJSY+b1/eJYA0KDtUJAS55vSdd/9eVcxHz5aYsf0G/4GU8IJZqiAyX8Aw lfexT8CW2RkzCm3O6CkAmN3iGnZmkr7xVanxg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=J/PImVIlMQhUi5RdPNvX2NF2rCR7tu4NCt0FIFuo1io=; b=h4ItUUs/NlaSll0nHf7pmGV67AwKxbabg4/LWUezP3ZW/9wNdVMK3+DSHL96cW8/Mm 9oHPTJLhE+++DMk4AITSNHga9KuRAt6VP0ydimpV2MoFarL/Y9fR5gmfaSqM8UgQwRyz 0g8x8/thp/OU5wQcP+m71d96JoA07tQLuIe54ZqmGD1zKJbBQoQGhbFF5ycmoaQDzzyP 3/bu0HJsLMG/2OgpLF4I2fQ1LhyRB2AqvSxRgNYu7xi+hyiZimSWncLAYey274N58IvV Ten6VkgtbpoUVLoJqac1qR8XKtnQadQm0gZKUrMGtE0kM4qTaBW70yLRep3KgIs0QdRC aYsA== X-Gm-Message-State: AOAM5301c8ysZzm/ULNa283TTq+WVMo/TuYQ2l4ZtvoXuncMqcsW6Fse MFQEw9snbrF/Nt7hSJx7NCAl7uxuR8g= X-Received: by 2002:a62:191:: with SMTP id 139mr10560589pfb.94.1592618449304; Fri, 19 Jun 2020 19:00:49 -0700 (PDT) Received: from pmalani2.mtv.corp.google.com ([2620:15c:202:201:476b:691:abc3:38db]) by smtp.gmail.com with ESMTPSA id i14sm6180043pju.24.2020.06.19.19.00.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2020 19:00:48 -0700 (PDT) From: Prashant Malani To: linux-kernel@vger.kernel.org Cc: heikki.krogerus@linux.intel.com, Prashant Malani , kernel test robot , Benson Leung , Enric Balletbo i Serra , Guenter Roeck Subject: [PATCH] platform/chrome: cros_ec_typec: Make configure_mux static Date: Fri, 19 Jun 2020 19:00:37 -0700 Message-Id: <20200620020038.230887-1-pmalani@chromium.org> X-Mailer: git-send-email 2.27.0.111.gc72c7da667-goog 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 Since cros_typec_configure_mux() is only used in cros-ec-typec, it should be marked static. Fixes: 7e7def15fa4b ("platform/chrome: cros_ec_typec: Add USB mux control") Reported-by: kernel test robot Signed-off-by: Prashant Malani --- drivers/platform/chrome/cros_ec_typec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/platform/chrome/cros_ec_typec.c b/drivers/platform/chrome/cros_ec_typec.c index 509fc761906b..1df1386f32e4 100644 --- a/drivers/platform/chrome/cros_ec_typec.c +++ b/drivers/platform/chrome/cros_ec_typec.c @@ -428,9 +428,9 @@ static int cros_typec_enable_dp(struct cros_typec_data *typec, return typec_mux_set(port->mux, &port->state); } -int cros_typec_configure_mux(struct cros_typec_data *typec, int port_num, - uint8_t mux_flags, - struct ec_response_usb_pd_control_v2 *pd_ctrl) +static int cros_typec_configure_mux(struct cros_typec_data *typec, int port_num, + uint8_t mux_flags, + struct ec_response_usb_pd_control_v2 *pd_ctrl) { struct cros_typec_port *port = typec->ports[port_num]; enum typec_orientation orientation; -- 2.27.0.111.gc72c7da667-goog