From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no 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 CD235C352AA for ; Tue, 1 Oct 2019 10:51:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AA0F921D79 for ; Tue, 1 Oct 2019 10:51:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731182AbfJAKvl (ORCPT ); Tue, 1 Oct 2019 06:51:41 -0400 Received: from mga12.intel.com ([192.55.52.136]:13738 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731030AbfJAKvl (ORCPT ); Tue, 1 Oct 2019 06:51:41 -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; 01 Oct 2019 03:51:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,570,1559545200"; d="scan'208";a="205042098" Received: from black.fi.intel.com (HELO black.fi.intel.com.) ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 01 Oct 2019 03:51:39 -0700 From: Heikki Krogerus To: Hans de Goede Cc: MyungJoo Ham , Chanwoo Choi , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH 0/2] extcon: axp288: Move to swnodes Date: Tue, 1 Oct 2019 13:51:36 +0300 Message-Id: <20191001105138.73036-1-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Hi Hans, That AXP288 extcon driver is the last that uses build-in connection description. I'm replacing it with a code that finds the role mux software node instead. I'm proposing also here a little helper usb_role_switch_find_by_fwnode() that uses class_find_device_by_fwnode() to find the role switches. thanks, Heikki Krogerus (2): usb: roles: Add usb_role_switch_find_by_fwnode() extcon: axp288: Remove the build-in connection description drivers/extcon/extcon-axp288.c | 38 ++++++++++++++++++++-------------- drivers/usb/roles/class.c | 21 +++++++++++++++++++ include/linux/usb/role.h | 3 +++ 3 files changed, 47 insertions(+), 15 deletions(-) -- 2.23.0