Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5352151pxj; Wed, 26 May 2021 08:36:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnu+BUb+k4PAcNzvv+TxS/SIz6KoOsgs9eRs7J0+LClsk/eGhduSz/PMF/WK9kAyoXG8m8 X-Received: by 2002:a05:6e02:1546:: with SMTP id j6mr9323946ilu.125.1622043391409; Wed, 26 May 2021 08:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622043391; cv=none; d=google.com; s=arc-20160816; b=TTCMsciFXnEbxgZdvfxsbuSw/aPHaiFr8Sf3ylxh6nrUHVS2g6Vd77UC0llYa+w1rK Bhpk7sjN+xYzxiNbjMJkl5bwp1NKp5oRA33T28ujSpMdSJSJB0nf28GV3WGeglUP9roI JtjDNzXAjgMhQRfJTlGjK1MlsyTgN7m8+N8aBewcrQMFo1YE+KnD5EPCSdvlBMo/ele1 gI+h1IQDqbYETO1sKMgZKhQKo806vfpx8V+lrXVu/P1Gyx00nlw/xM1hW4jdMUmwRbZ1 w3/IHB2eJS3qyeA6gQGj0xLt70ZPgqEZjPjBiiCxg/eV/wIbvQMivvkE//eUo/TXb+J2 wcQg== 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 :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=DFO/8CfCPIRajtME/ljLjMQFdWwBCg49/lLpVCYoT08=; b=sYp04P/baYfSG1pbxwYRe3+AnaSXsht8K+s1RqtKAeqlEE0eJlnctPU7q0ys/WMIr4 KRIZDj80Uo/LbFXHJVwiSzTkKnblWg+ZoTOUrcW1adP6zl7c0p4r31JXUOHEDKSthQhY CBYHLDcfxxRcfa13EL5nJB87pay8pBKdeVbOqN4Ds1VXqdhgiOiUZhcJApWP2Lj8Rd1y 7CzdKwUGLUmAmYXnkxbL1DYgHs9XxBpBSNqnLGuki3HjbfvlJY2/B9jhnDg/OGQDrUvS 7DPR/70bath7ZAtLMswivc93Mm2lx4PQP81vc6qXGlPvO2cbGyiWH/d45D9JMOY0HPGA XhYQ== 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 x99si20790312jah.122.2021.05.26.08.36.16; Wed, 26 May 2021 08:36:31 -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 S235270AbhEZPhB (ORCPT + 99 others); Wed, 26 May 2021 11:37:01 -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 S232023AbhEZPhA (ORCPT ); Wed, 26 May 2021 11:37:00 -0400 IronPort-SDR: 76/cb8AcpFxHaGYevWn1WqdOhmSv+CVW87ay8WMlyINDJ1OKYlDerFiH9YMk/js2fEZehq5LJs +Tu0Z/Iowj7g== X-IronPort-AV: E=McAfee;i="6200,9189,9996"; a="202529805" X-IronPort-AV: E=Sophos;i="5.82,331,1613462400"; d="scan'208";a="202529805" 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:28 -0700 IronPort-SDR: 1ydds1PjwrCI9xbX9aY0Xij9f0HuFGXd6BaPte1ufpb20YGsSZIyndjNUb7j9A6ZswRXlyRbeZ fh7z0fr3pvpA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,331,1613462400"; d="scan'208";a="547236490" 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:26 -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 0/2] usb: typec: mux: a few improvements Date: Wed, 26 May 2021 18:35:46 +0300 Message-Id: <20210526153548.61276-1-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, The first patch should be trivial cleanup, but in the second one I'm removing the condition that in practice forces the orientation switch to always have the device property named "orientation-switch". This change only impacts connections described with device graph since only in that case the callback function is supplied with the "id" parameter which is the first part of the condition (if the id is not supplied, the function also does not expect the device property to exist). But when the connection between the connector and the switch is described with device graph, I don't see any need for that device property. Therefore let's just remove the condition and the requirement for the device property with it. thanks, Heikki Krogerus (2): usb: typec: mux: Use device type instead of device name for matching usb: typec: mux: Remove requirement for the "orientation-switch" device property drivers/usb/typec/mux.c | 29 ++++++++++------------------- drivers/usb/typec/mux.h | 6 ++++++ 2 files changed, 16 insertions(+), 19 deletions(-) -- 2.30.2