Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5508099img; Wed, 27 Mar 2019 09:44:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXDHSF+oaq5g7sArdj/cIpBOIw3NqPnLdGHkC0qcw9f5S4IoVihS+bJWVJT4ieu6OYMQI5 X-Received: by 2002:aa7:8c8b:: with SMTP id p11mr37046340pfd.171.1553705082560; Wed, 27 Mar 2019 09:44:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553705082; cv=none; d=google.com; s=arc-20160816; b=ZVnCuUPO+3SuLbiMCxkB0tjYGcp0FcC9HLYeYfUKvB4tLfdJi00rL4DH3f3z49YvHs BHPCdrniQ+tkOtsZ1qdXGrco5aepxDukZO7cVkesT3t1EIXl8bwGlekOfEFT2N8EPzyd Vf/yJrgg6ibxiZz6NEV8PpooPUUz7dVbFY8dO01BMoaT0UI2rj1KtGpy7GOqLkGLpUAs Wf1tjhwjmz6otr4HeqPS35CQ4ZPUPEyUkoXKqSh3WmBy0vSHMP8JgriKSXuDv1gcp2vG ay/fu1NlxlVuLgZHwLBywcgVnVL7aOkGCQ+pAB5I0rNPpgGf2VP7F8I3vUGgHdKWpIcY ZnzA== 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=uC3ICwESUG3NBrNGk4idA7B6jw5Rhs8WR/h8e7MLTNQ=; b=yNF69iHk1JBANU3EKkct6z7WrPwsfFbtBvT45gFVLUGeO3vPEki8tBxIgepvLxWXOV AQ7pYxxhMecJ0Wo9ZQQkqGAPNQOLJ1tidTvcCzNob0GR6cvRN2ahMkIaAlNa4Sl2U6Kw Cc0+vsDjTs5GaFlE6zgOGZsioZgeiwXgcMVXmUFTCj8vCX9nLp0vQAPoPdXShH0erLXo duwuYHkITcFYDK/ShS75WFwOPnCsYzVBYPsujHmvQFCBWEH5Iw1hr9Ad69So6gDgxgAi AGvV1BMdehkJDgMV5ZSaQxuGjjegoOaTmlmudckKUivdpPzCkL6RntIr2YroNlvdBoFC ps6Q== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t11si19066035plo.92.2019.03.27.09.44.25; Wed, 27 Mar 2019 09:44:42 -0700 (PDT) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727837AbfC0Qno (ORCPT + 99 others); Wed, 27 Mar 2019 12:43:44 -0400 Received: from mga12.intel.com ([192.55.52.136]:62434 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727172AbfC0Qno (ORCPT ); Wed, 27 Mar 2019 12:43:44 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Mar 2019 09:43:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,277,1549958400"; d="scan'208";a="158912680" Received: from black.fi.intel.com (HELO black.fi.intel.com.) ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 27 Mar 2019 09:43:38 -0700 From: Heikki Krogerus To: "Rafael J. Wysocki" Cc: Greg Kroah-Hartman , Andy Shevchenko , Chunfeng Yun , Biju Das , Hans de Goede , linux-acpi@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] device property: fwnode_is_compatible() helper Date: Wed, 27 Mar 2019 19:43:36 +0300 Message-Id: <20190327164339.31205-1-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.20.1 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 Hi, Basically the helper is just a generic version of the function of_device_is_compatible() that should work also with ACPI and software nodes. As the first user for the helper, I'm converting in this series the USB role switch code to expect the "compatible" property to have the value "usb-role-switch" instead of expecting a boolean property named "usb-role-switch". I'm doing the same for the USB Type-C mux code. thanks, Heikki Krogerus (3): device property: Add fwnode_is_compatible() and device_is_compatible() helpers usb: roles: Use the "compatible" property instead of a boolean property usb: typec: mux: Use the "compatible" property instead of a boolean property drivers/base/property.c | 35 +++++++++++++++++++++++++++++++++++ drivers/usb/roles/class.c | 2 +- drivers/usb/typec/mux.c | 8 ++------ include/linux/property.h | 3 +++ 4 files changed, 41 insertions(+), 7 deletions(-) -- 2.20.1