Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2018562ybf; Mon, 2 Mar 2020 00:02:12 -0800 (PST) X-Google-Smtp-Source: APXvYqzvPJ3fsZCtLfB38kwbmRKB8JWsqVsZBuisNxsE3773cU5j/C/87M8K8YIb5AbTuzNjIOv0 X-Received: by 2002:a54:4403:: with SMTP id k3mr5160798oiw.111.1583136132764; Mon, 02 Mar 2020 00:02:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583136132; cv=none; d=google.com; s=arc-20160816; b=dqg+2CDBI1V6c4iaFMcRuOCxh7flaTahVQXVw6HO5bM/Sd8rfL38z2he8Spd/1qJME /OpzWr2TGxjdfeDlyDz1h1vz9l131r3qouhZSF7ULsF/cjrSEYLj/eYCV68rm7PuzLwJ dQ8pyE1qiXWzCfj7FjLimx5P7e3uy7j7SeZ8WVmRbJnvaOEJAv96xXsvhRtOfB/E7vSx Sm8/LmZAeGSKAiSkDGMh/mJSgP9f1GfGmvWXS+uKvwPeRyF5v9Lr2WRAdc65GrUKCSGK 0H5v2VrP/aNF4gSH2sxVOXc5lPWoxemQdkiT/Dh3QhLLfD8cvN/pzJvevpY94/hMnsiR sUvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=CGGXK6ZZAsqA8j7dA8Anxh1NktukooIuAngqbMID9M4=; b=H9YVg9EoT4Ikmo4H+oI1mBW6YFM/AP4rd7hnAElEGaDEsGRQDLJYMa5kEwW8LiuPYB 4e/kcpVVefbBdFhir/uma4ANzwgJoeLYkICHJZ+YtESZXB720N4zi379g0kRtwT4Sq66 xEdKeAZ5yVpodJQpPATSLwu8Dg26dbWPwXjG6zIGQwhyG6e/zdsUF9OErnX5mjv0Z4FT ewXA77Opk97gk2Rd0zapVvdfFE6+4zu5lIo0k6B2lWyS8wcivI+gzQUXVdUTUD4d/8CW HgteqP02djVzn5QOLfPlyHqIeBmFZV3vFwh3xY1ChveQ8d/Yvx3x+6ZbgGsT5/kEJ7Xd otAg== 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 j1si472582otp.148.2020.03.02.00.02.00; Mon, 02 Mar 2020 00:02:12 -0800 (PST) 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 S1727196AbgCBIBu (ORCPT + 99 others); Mon, 2 Mar 2020 03:01:50 -0500 Received: from mga04.intel.com ([192.55.52.120]:12695 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725446AbgCBIBu (ORCPT ); Mon, 2 Mar 2020 03:01:50 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 00:01:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,506,1574150400"; d="scan'208";a="351486608" Received: from kuha.fi.intel.com ([10.237.72.53]) by fmsmga001.fm.intel.com with SMTP; 02 Mar 2020 00:01:46 -0800 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 02 Mar 2020 10:01:45 +0200 Date: Mon, 2 Mar 2020 10:01:45 +0200 From: Heikki Krogerus To: Peter Chen Cc: Greg Kroah-Hartman , Benson Leung , Prashant Malani , Mika Westerberg , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" , Felipe Balbi , Chunfeng Yun , Bin Liu Subject: Re: [PATCH v2 5/9] usb: roles: Provide the switch drivers handle to the switch in the API Message-ID: <20200302080145.GA22243@kuha.fi.intel.com> References: <20200224121406.2419-1-heikki.krogerus@linux.intel.com> <20200224121406.2419-6-heikki.krogerus@linux.intel.com> <20200224131442.GA5365@b29397-desktop> <20200302062302.GE3834@b29397-desktop> <20200302074303.GB27904@kuha.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200302074303.GB27904@kuha.fi.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 02, 2020 at 09:43:07AM +0200, Heikki Krogerus wrote: > > > > - cdns->role_sw = usb_role_switch_register(dev, &cdns3_switch_desc); > > > > + sw_desc.set = cdns3_role_set, > > > > + sw_desc.get = cdns3_role_get, > > > > + sw_desc.allow_userspace_control = true, > > > > Heikki, when I try to apply above, and compile, I find above issue, > > the end of code should be ";", but not ",". So it seems my compiler happily compiles the above :-) I don't know what is going on with my compiler, but I'll fix that. thanks, -- heikki