Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp477825pxj; Thu, 10 Jun 2021 05:35:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJD2j5Slln6cMOBZmgMuO8dTAXyvzY8LGPHJuOpvxEH5VrrLTy2+1MsUvYF1kQkrDwNmSu X-Received: by 2002:aa7:ccc1:: with SMTP id y1mr4487511edt.333.1623328501626; Thu, 10 Jun 2021 05:35:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623328501; cv=none; d=google.com; s=arc-20160816; b=QAJqopCT3hdCs9EYsm7JdAwxLc32EgafVEai405Ha3LXXwGJuNAyMHdYZBfUdcS1gD asdWPdy4wvFWfdrHpUk1g+r6Ff9CU/8HVZiD7Xd+hqPopQsWmL6tDVrlWysP1hw28lxy Lf0knzrqoE6HqOI2PQ/EWYXwI7jnly9EvFQaeMe82Pkv66I7SCLoLt8MeDlYwNkN+7Ov 9cmCH9JWhff344YuHCL1tdchlJbslu8o9/C7g3x3z1MK1cAxu0ehMa6Z6JtjaaKM+yS5 iih19VcGMUojv+s5TJIQaFLP8hJxwvAEcQZoCteGFwULahlWFZhKnho1ZEIsTNKj4VFQ TZIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=2Xu083wVZjz+XPKbcGcLG2ISvhtJXKoIclqdth28tQw=; b=SHWpBwDAfpWxDcjfB+MyKKJwc7X/EeX7uOnUfrs92ND5cS/tGI8adLCFRI30g1PAMl f1I8tU5u/aGLBNDD/K8iNHm8GvWOUDZG8Et0J4H2F3sWth/IsQmarqqYqE+hnA3t38f4 DGcAu+2mf1FOqA2SMkmaPO5TRDKGZu3UgJeg0k0lWT2OGoQxjFrE4FVusbhYgLF0PR3Q D92dRTHJlw+EVeivUfkiN5nLyT4K3aMw2jowjzLLR0nKIIeeeZJGZd20zDZKfT22Luc3 I4nxbDJBL45jmpRT/gQEWEGPe+yegx/Jcw+rGrnlnuAguRAsR/M+jilf+SZp7VjadiJH JeJw== 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 a14si2061656edy.464.2021.06.10.05.34.38; Thu, 10 Jun 2021 05:35:01 -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 S230247AbhFJMfI (ORCPT + 99 others); Thu, 10 Jun 2021 08:35:08 -0400 Received: from mga18.intel.com ([134.134.136.126]:26823 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229937AbhFJMfH (ORCPT ); Thu, 10 Jun 2021 08:35:07 -0400 IronPort-SDR: UNxD5yM9qPNkwKyhPjoPzsMJ6L9MRP22ku5imiXs7Y4oZpPhbO0JB2UpMox2NNcoKHUg2MfrXQ atY+z8J+Z6vg== X-IronPort-AV: E=McAfee;i="6200,9189,10010"; a="192603373" X-IronPort-AV: E=Sophos;i="5.83,263,1616482800"; d="scan'208";a="192603373" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2021 05:33:08 -0700 IronPort-SDR: U8b+ipgi7ha5iwopJ6dXgIEYNDRUmtBHaIpSwrlpi9pNy4R6aMuSVS7xVbwpnDXV8oGSU0LiZB yiydpmRsr1nA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,263,1616482800"; d="scan'208";a="553051116" Received: from kuha.fi.intel.com ([10.237.72.162]) by fmsmga001.fm.intel.com with SMTP; 10 Jun 2021 05:33:05 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Thu, 10 Jun 2021 15:33:04 +0300 Date: Thu, 10 Jun 2021 15:33:04 +0300 From: Heikki Krogerus To: Bjorn Andersson Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Andy Shevchenko , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] usb: typec: mux: Fix copy-paste mistake in typec_mux_match Message-ID: References: <20210610002132.3088083-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210610002132.3088083-1-bjorn.andersson@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 09, 2021 at 05:21:32PM -0700, Bjorn Andersson wrote: > Fix the copy-paste mistake in the return path of typec_mux_match(), > where dev is considered a member of struct typec_switch rather than > struct typec_mux. > > The two structs are identical in regards to having the struct device as > the first entry, so this provides no functional change. > > Fixes: 3370db35193b ("usb: typec: Registering real device entries for the muxes") > Signed-off-by: Bjorn Andersson Reviewed-by: Heikki Krogerus > --- > > Changes since v1: > - Don't touch the typec_switch part of mux.c... > > drivers/usb/typec/mux.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/typec/mux.c b/drivers/usb/typec/mux.c > index 664fb3513f48..c8340de0ed49 100644 > --- a/drivers/usb/typec/mux.c > +++ b/drivers/usb/typec/mux.c > @@ -246,7 +246,7 @@ static void *typec_mux_match(struct fwnode_handle *fwnode, const char *id, > dev = class_find_device(&typec_mux_class, NULL, fwnode, > mux_fwnode_match); > > - return dev ? to_typec_switch(dev) : ERR_PTR(-EPROBE_DEFER); > + return dev ? to_typec_mux(dev) : ERR_PTR(-EPROBE_DEFER); > } > > /** -- heikki