From patchwork Tue Mar 5 05:55:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13581669 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2107.outbound.protection.outlook.com [40.107.247.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 204C42AE95; Tue, 5 Mar 2024 05:55:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.107 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709618115; cv=fail; b=NFiCUCOfuwDnixrRbF4d3bwdu4HV1G/xk+T24Jh4HTXHDv9Al3ChBRZEdQ6IxbtP8/NKWWPxM+BJKKIeqHNAmCuPhPaN/jemk2t3u7NhtSL/IBmlBWtGcsOv46gu4Wr9B58BGjsWWm4HHrFbZsnxkWDDKFe1h0f8MUUvKJAOyPc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709618115; c=relaxed/simple; bh=H+bl57O6VNAflIAl80jQtpYIhodjo8aKPSeOFhW8uQI=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Ajn/APx5NVYRKmsLIGtGn6joh1K0OaFYl7mdA4aBcWeUNvp4IjKxjmmXMCzhA05J2W4as9ndJyDSClm7v9W6I86K7EKzcH77/tgN8dkOEQyLfoxyTsPMV00mhdlvH805jae0DdG81CP/WYmxge+Q0Z3Ww2hKoI6o3yJLR2QNK+0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wolfvision.net; spf=pass smtp.mailfrom=wolfvision.net; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b=YMxW3KUy; arc=fail smtp.client-ip=40.107.247.107 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wolfvision.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wolfvision.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b="YMxW3KUy" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CY3Nv7LTloaJcgFEzWf9Tp/2quB6vQ70W71U6tJCqEPXj61hGaFYe7di4SB1vw2S5tIOcvFDIJNnfnVXaGhvGXe3nAy34KqQAY3l0FCOnqDhssHLfIwWgdvxrOSBIFD6urQA0MEBO0lslJUtVLcakd6XfoygDFWAL8Um2banFOmi6HehFmQnCWBURDiNtdrSzspFibQbK5wASg9XW1u30u6Zsrq9d06Lc4e9ZvYwo85VBqRrf90pZbqQyvj7ZnL8gnu2tFR94IK8JdCfUHe/FaG994YC5aTZ8LAInT7sCQpcdzVGqNI6r7a5Mgvo5RD4GyJ/wRB0M1yZAmNMuaHbzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ndGWV20JFR2FToBa55DUZBTb1fCr/cpmTlYE5JToOjk=; b=gCVcNntQJrEYla8eXcS724Kg8bA+bOb6sNd5tmuM4r+NBB5NtA1BS22D9untbUxZ4LbAjtmyG05L+XAlS1hHAE7TbgwP5UGlSoUNtxMGA3wl812l23u9KAxzJoZa9gD7A0nJXsyGhvXNSXtQoq0f5aaSatOuJMxSzNHOiOrc9GnGLAdR2c8ebm+7DxQUJzijRviNpTSqe+d+sg+HeifpqLBnhpRyKayUigL+EbOPcG9HwnMu6W2K3qC77SfHkZc9IkYg+NJPG0TFzAlOAoqvJ+4LqVvXq8dz5x7AFyWui6somoStwuoqJvR6U7nVCIjuA/DbrbOz4rCuAN/wtmgUfQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ndGWV20JFR2FToBa55DUZBTb1fCr/cpmTlYE5JToOjk=; b=YMxW3KUyL4rcohXzNVy/Tl1xqNOFzUGu9Dsd3PANgcAawgrVQ4A2khNyRwwsMGtzb32uax71khc4xmcj0q8Y3Cfd7cCJS+sPa3kZSLABVOHffg/lObaqqMTMhEYtPWsSHF2mg3kZN4zzTqtEQC9YZgWUWwaox9///1YR4o1jNt8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by DB9PR08MB8385.eurprd08.prod.outlook.com (2603:10a6:10:3da::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.38; Tue, 5 Mar 2024 05:55:11 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f%7]) with mapi id 15.20.7339.035; Tue, 5 Mar 2024 05:55:11 +0000 From: Javier Carrasco Date: Tue, 05 Mar 2024 06:55:01 +0100 Subject: [PATCH v7 1/9] usb: misc: onboard_hub: use pointer consistently in the probe function Message-Id: <20240305-onboard_xvf3500-v7-1-ad3fb50e593b@wolfvision.net> References: <20240305-onboard_xvf3500-v7-0-ad3fb50e593b@wolfvision.net> In-Reply-To: <20240305-onboard_xvf3500-v7-0-ad3fb50e593b@wolfvision.net> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Kaehlcke , Greg Kroah-Hartman , Helen Koike , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Catalin Marinas , Will Deacon , Russell King Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1709618108; l=901; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=H+bl57O6VNAflIAl80jQtpYIhodjo8aKPSeOFhW8uQI=; b=L/bwN+fxWtNMT/9ln+/ZrlexZ8gxchkg9SqBjS1KV74wiA6PyX8c13gypLcG3+E+383l0bMf5 ADbKupBmXnFDwtPUU4ZSjqnajJxQHhUemjcihyeLs6fnQV7uLnxEwgm X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: FR4P281CA0110.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:bb::18) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|DB9PR08MB8385:EE_ X-MS-Office365-Filtering-Correlation-Id: 71eb3d3e-8d9e-4697-528e-08dc3cd8d1ca X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n6xpFfFfKSdOJGp33kJFbrUlx9IfB4EgitSyCJw2yN8j84OUPrsoVjIkBd2V38PbmAwra0TTpbOOtnVfb1L0zJLFo/wBMvVeGrVFHWd7+SjXV7CrlTKDLq6Z7Wlexj9WnZOHK/tv5teu6zdtQR8zBIDkKEg0OuLJdVdnLM/yQYnFiesVlvUEV3wq/xG641ZGqnnD/Hvrwf0h3yL/bCYYjwRTyrCyN9Ccmn/3A1HaCcYQ2AcvhLyLp6F6SsRSUxiMq88wEm63Q4Bht7dlgp/ykgY+KtRUK9IHQvUY4THcLVAEsSjhLtzXobirL1Ozk1K2XrLwmBiyMHjmk/paLSLMGYuM9dN0OYncp/ldPtbHic4oIRZohx8wO4CMpUF9AjSjVR2hSH5JHOMeDyX1tZd1bDaLyqp1ESBVr01CYueOH2wAQIB2QKF6RrlaWEY/KcpEQPMr4Izr00aMZ8y263Vh9ngjPGhphLdDIlB+IN0nSgi5Vj4RKhVuf1clwCgXHAZYRNbJ9Kdl7z+bLHE/bfkxb9TCj5OaTjOJo5Z37x60naVxyrgId6W4BO1l+4yvEA+t8h4VFQA7YlkfeDru8qawBMHHJnHZwjKrzecnJocXud0sEvwLOVYnugSNKwvtFFEMqeJPmDfS2+FEQ6rGIIoQ4B8xt2NBKmgZ4AqzgkL0yhrzGeua0qpDmlZXWrHhkIDKfebUVdBeXjfzcXibkOZvH5KbUDJ7D7mgJArcEzE3oeE= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4974.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(38350700005)(921011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?cLeFLhJj8+O/+4uDdhwE304+rlZG?= =?utf-8?q?DPLzYmTyPJRk9rBAKpVH/TNz6Q/CpWgjLkZCSFGo0kG9TcGi+fSQqm6ag3qHACokz?= =?utf-8?q?xo870URlTKqjEEDbpbd/I35dKTyscx1oxZGCBYhl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UDIuiViJW3reP8vaNpJQY?= =?utf-8?q?OW/MGdVaYM1pumLWeN9GEN6AnZRecUgLAOjm4pMMekp5ea/dYXkGvB7iF5PTcToez?= =?utf-8?q?2M6fnXSc6OtAFa+u7jYq0EtbBG06xhHUgPQCrBw/6FOrAoqz0GAxh4p/ROIDyWNuz?= =?utf-8?q?YwmAkdozQdiyCyC8SCQZq/MJ27zwOdir7Q6ElbZL3NSqDlIRGM+VtJo6L2+cTNvWu?= =?utf-8?q?IGaDd11PXzgA7ZyU0gfBKnaJp+El5pLNbh9CP1t0Tf2agNFxtz5TWSgmYVp3bRGCp?= =?utf-8?q?mIXMM8eOVOt5P5E5N4a4lEw1y5YTwbwKdUHdlWMYOeVTXdLMaQUBTsR6oWkN2ivCM?= =?utf-8?q?m1HZn+YLO03T/++g2de6Jdo84CAqFNjD9MVNPoOdUY3YWJYwNct4uFbSy6y9Y4mlD?= =?utf-8?q?WwJDiVFT5XVkiLy0fB5IGGkLPfMui5gZ9SAHnM2OpQg/MBlmAIMAYPmRWSLuvoXK9?= =?utf-8?q?paeqdAgYo1z3YaJS/EfCVa2Q5iENRhkaOF5ANRy+x79wFwYVzU4jSw47aNue6FNQY?= =?utf-8?q?aw02BSJm3uQu1eD+a3G7CcWNHr/AEogQCQ=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 71eb3d3e-8d9e-4697-528e-08dc3cd8d1ca X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2024 05:55:11.1439 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZstvgW9HHFWcxe3ZRDfQvJ+LdfKoOry3Vu6kGfjmEAgAmEqAcjeGkaOqVHYq+uBZlqT+cQ1MOFK1Igvzr0Hfew4Seqkvz88dw/BdO9drqBs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB8385 Commit 14485de431b0 ("usb: Use device_get_match_data()") overlooked the already existing pointer to pdev->dev 'dev'. Use the existing pointer 'dev' in device_get_match_data() to keep code consistency. Acked-by: Matthias Kaehlcke Signed-off-by: Javier Carrasco --- drivers/usb/misc/onboard_usb_hub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/misc/onboard_usb_hub.c b/drivers/usb/misc/onboard_usb_hub.c index 0dd2b032c90b..81c001fd38c1 100644 --- a/drivers/usb/misc/onboard_usb_hub.c +++ b/drivers/usb/misc/onboard_usb_hub.c @@ -260,7 +260,7 @@ static int onboard_hub_probe(struct platform_device *pdev) if (!hub) return -ENOMEM; - hub->pdata = device_get_match_data(&pdev->dev); + hub->pdata = device_get_match_data(dev); if (!hub->pdata) return -EINVAL;