From patchwork Wed May 26 15:35:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heikki Krogerus X-Patchwork-Id: 448646 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6094C4708A for ; Wed, 26 May 2021 15:35:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C9294613DE for ; Wed, 26 May 2021 15:35:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235274AbhEZPhM (ORCPT ); Wed, 26 May 2021 11:37:12 -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 Precedence: bulk List-ID: X-Mailing-List: linux-usb@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);