From patchwork Thu Jun 10 00:21:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 457517 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp5782105jae; Wed, 9 Jun 2021 17:24:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznxmvvIVB0pF6dWh8yafPgOS0X54DZRJNflpSfh8S2Qcjn2Lag5l6FZBKEzNoqjuGYz6Dj X-Received: by 2002:a17:907:1112:: with SMTP id qu18mr1970424ejb.511.1623284647301; Wed, 09 Jun 2021 17:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623284647; cv=none; d=google.com; s=arc-20160816; b=d8VHGDcSpNtPwg6jTnNjU47sYMfNu9qe2r8qe0fh4BU7vvLEtoz+r4JcTkFBLKqff2 B4Nnu+0FS/lQO/NSmSXwKkSIgqvI31ZV85GawGKzsKYwNw3OXroUYPyMyUjFhQMTje2C zBRheX3vPas28JkTZkQKFgxRNSWvUYwKSZezqfKFwkl2PghgyBbp0coCU6tiZ11aYYYR vRiyPg9pGRPfG+TeZVUJOPZXLMfCO1WqhAy+M7FucO/XFliduoaiat60Z9yt9xhaQojp nXvhQawBuqZDDr9Z4B+luw1L6v5JAGDNN4iJy04qmSSYTbWguC7iGuvN5hyVj234Rlu+ 7edw== 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:dkim-signature; bh=wqda7Y7VY751qiHwi67sa4oN0nY0qPs95IMKdq6kzvM=; b=D1ZMbfRN01tngkLsStrmuSauIJhBkX65Q5y7mdz1TX8PqOaNtsDM+EVPGGaabaKREV n8v9Bb9O+YI5my2CSIXb6l7hvUuxB1h7iTLEh13I5tJtyswZgl7idpT5ZbELu5JcWHby PM6R0GXqjNT5g+DlOg4iyt5mW/sX+0cGpPHHfi0nq6gTeeRpvkZwRTWMrZ9M6H1WCssk 4K3GdlqyxieSILp9XkCPe0q5+CC44J2w3zqzeYqiWye9IKdV7T8vxqJp93Nkh6wkJQwk lJfRX1wfSQooYNNYxTH3016bnDlWcpdA8Wt9oAEte7+uSRJTMovw/SZi92LVoOgdc3YF /C+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="hyD8x/fW"; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 5si881063ejh.625.2021.06.09.17.24.07; Wed, 09 Jun 2021 17:24:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="hyD8x/fW"; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230314AbhFJAZ3 (ORCPT + 4 others); Wed, 9 Jun 2021 20:25:29 -0400 Received: from mail-oi1-f180.google.com ([209.85.167.180]:40781 "EHLO mail-oi1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230250AbhFJAZ2 (ORCPT ); Wed, 9 Jun 2021 20:25:28 -0400 Received: by mail-oi1-f180.google.com with SMTP id r17so173253oic.7 for ; Wed, 09 Jun 2021 17:23:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wqda7Y7VY751qiHwi67sa4oN0nY0qPs95IMKdq6kzvM=; b=hyD8x/fW6GsldHTArxMhnA3R2kAL+eRuDK38kF7nsv5rweEFUVlvRsFIq6YnB/7G7U uCY0EuD3R3D/Sq/7xCriTow2Z7n/EMAG1FrdVT/hthzlVPFZxKrrzzhzsNaBqqtrudiY OcE1q4nf7JwnnYlB0lO2frXfbpbs52WiGebqGZXaM8Q6i7iL/naSM8D6ZgJ+un3L+sfS WM1ETk/18IMXsa/7NKdO6HtTIBrljKQCE4WngS4rmUhG67CpTvNK22OnCkOu02jXjJxu pvkwKHxYTTVj/0YMDyz1cJxj4tS9qWJswwXS24ml9AurGJXhCX2qRUlNQHyUmtYdTHNk sFKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wqda7Y7VY751qiHwi67sa4oN0nY0qPs95IMKdq6kzvM=; b=pjJeemXqm8z42JlQZ6YF7cc2g1Z6LrjupR8srH4ffyMXJI/xGeT/QLQ+XlHKzZL174 tDnliXucjAXurESgMKWcjry+/xofU1qOskK3PHPe1FBszyDMioDzGnCfebajj9pyl6sh 16qbrQGUdZnVQ0zEivVZ46AbWOE+/qL0oC3oCInzR1vaGxZBThZdqaPxcWOkRXT7xMKh 5EsmghuMx/SJ+GmSyn1VLbHZL5svHHbOeXlmWAkozNsETUkjDbs8P/KBkmYYS84ThvwY lmX3TC0IImxxG2u8Chm1AvPhYhpdjpx4AA32OCMIkWo3uNo00a+mPuOqSS3QTiM5AkZl KPRA== X-Gm-Message-State: AOAM5302pDavh5oaYho0YTYdJwXHYPp3o3EX4asEAOXX0YfWnQjgdMrW mE7jZ7ZusfSbwzCIkrxsvwkHZg== X-Received: by 2002:aca:3e06:: with SMTP id l6mr1521121oia.147.1623284541085; Wed, 09 Jun 2021 17:22:21 -0700 (PDT) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id z19sm319048oth.20.2021.06.09.17.22.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Jun 2021 17:22:20 -0700 (PDT) From: Bjorn Andersson To: Heikki Krogerus , Greg Kroah-Hartman Cc: "Rafael J. Wysocki" , Andy Shevchenko , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] usb: typec: mux: Fix copy-paste mistake in typec_mux_match Date: Wed, 9 Jun 2021 17:21:32 -0700 Message-Id: <20210610002132.3088083-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org 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 --- 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(-) -- 2.29.2 Reviewed-by: Heikki Krogerus 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); } /**