Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5353776pxj; Wed, 26 May 2021 08:38:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwww6JITUzT6b3FpbvLYGUbk/YM9ewntMdFnQkgfb7cb61I/n1QBqb3m5PmvqIvWpflkSdb X-Received: by 2002:a92:d844:: with SMTP id h4mr24627962ilq.215.1622043512483; Wed, 26 May 2021 08:38:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622043512; cv=none; d=google.com; s=arc-20160816; b=i+tO50lUOTrpk+EVLsxX0uPILcyDt1qWn2qliaXh10mpyxExMYeVP9w/OwBQ7k+Frd LMfLgL/wJYQ6+xt9diWPVmvfQoHBiW+2e4ACVYLTvkLC9xC4CmdANhaPMOZffE+B4ESv PlOfLLyYCEVjpolsebml0iCqXyqx5t8sefYyZ2CxfJWw87vPYwbGuTKC5g7mVML9fTid H5Cq6t+iGuoz+9UYfVUgCftDXFKuzyTEQZk/oFzR3myXj+i3fMs6tXbZB9nXsN8teto7 NkU1vI8eIGWNGdKpK5qj2qcL9J0H08WF5aT48oECcudXVpYGA0W6BfEiYOXHBxmljZnl dd4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=/52vPVvatLfuuRad8LYLAIZ3QY42e7aPQhh7+xYWRVU=; b=r4CVJHQNytcPfpm2o7sRaaMw02jLs27/gh1ZNhQ6rvYe8P9T+EEmhI98+mzYoPRvt6 pakIOSkGtSEKm2bvlzQdFFjM05MytzRu7pGQV1NfHFnFhwsvrvfD7yuE5RB85zAD0wBv NY5q2BBvsYN0rJLNiSxJfwjEdo5KrVWLVyHHKbmALk1ZgNOzFSiLyhuW6INjcSR8mEIB 3iU3n3aHY1zuTS+QIhbRw1TWdtZr/6UnE0J/+FJjF+wWueijnSShwslna4mC2XqjZiT3 iij38lEgbSCXPSqSyyGjEzG6+HIe8gF4OzEguq9hE+qmkMocHSD1Pas1HllefoGTjRET RNbQ== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q4si21873568ilv.82.2021.05.26.08.38.19; Wed, 26 May 2021 08:38:32 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235451AbhEZPhS (ORCPT + 99 others); Wed, 26 May 2021 11:37:18 -0400 Received: from mga03.intel.com ([134.134.136.65]:51469 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235296AbhEZPhD (ORCPT ); Wed, 26 May 2021 11:37:03 -0400 IronPort-SDR: vaE8ZH5GmMUAtI4q27qMm+UWSoGuEEvzviHQsWMedUualxolKROwe3sPEbSfQeJu2qlXKlzBFd QusG+TuGhaoA== X-IronPort-AV: E=McAfee;i="6200,9189,9996"; a="202529825" X-IronPort-AV: E=Sophos;i="5.82,331,1613462400"; d="scan'208";a="202529825" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2021 08:35:31 -0700 IronPort-SDR: KMQ/U1VUnap67JZlgyALdvRU736CADvj4LQ4nREOf6IfOIOINY1JLn/vtRrD9kfeTlgoid2QEn x8EkCumttniQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,331,1613462400"; d="scan'208";a="547236505" Received: from black.fi.intel.com (HELO black.fi.intel.com.) ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 26 May 2021 08:35:30 -0700 From: Heikki Krogerus To: Greg Kroah-Hartman , Hans de Goede , Li Jun Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] usb: typec: mux: Remove requirement for the "orientation-switch" device property Date: Wed, 26 May 2021 18:35:48 +0300 Message-Id: <20210526153548.61276-3-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210526153548.61276-1-heikki.krogerus@linux.intel.com> References: <20210526153548.61276-1-heikki.krogerus@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The additional boolean device property "orientation-switch" is not needed when the connection is described with device graph, so removing the check and the requirement for it. Signed-off-by: Heikki Krogerus --- drivers/usb/typec/mux.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/typec/mux.c b/drivers/usb/typec/mux.c index e40a555724fb6..603f3e698cc0b 100644 --- a/drivers/usb/typec/mux.c +++ b/drivers/usb/typec/mux.c @@ -30,9 +30,6 @@ static void *typec_switch_match(struct fwnode_handle *fwnode, const char *id, { struct device *dev; - if (id && !fwnode_property_present(fwnode, id)) - return NULL; - dev = class_find_device(&typec_mux_class, NULL, fwnode, switch_fwnode_match); -- 2.30.2