From patchwork Thu Feb 29 08:34:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13576858 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CB375C54E55 for ; Thu, 29 Feb 2024 08:35:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=5mMPQMWFeWAc2423CM/c3QfDGF1t/paMpYB/ayjVN/E=; b=lmuOR7ruuK+OqQzlP9Y8QLg/7p C2tlF1hB1W0FD7Wxufkpo5LK2BUPN5KCbdaTqbIYvJYLqCKLweIC5boAoOZtoy7OSYxJyVd4Q25yD FG+PPLFboMTpJ75SDkJAwLH+BF0cMtblV/CCGkE+xX3sNA67R1alNdm53FKoLK4lUXS+4rL4gWumb Rvh4lA9FGnohWCLtEgDmCWZdMlAp1eystWTS1gwbAKqbTrfIAI9sQqM8Brd6KimaiiMlz/i5Cp6Gi izYgqp3tIdwJvnEjzXUV6B0suj6kYcP9FdVUDWBmVuXn0WKpNr4SIAG5170gbPU7L5gnDqctTySfS hqWWmpyg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfbsd-0000000CfZ7-46oX; Thu, 29 Feb 2024 08:35:03 +0000 Received: from mail-am6eur05on20700.outbound.protection.outlook.com ([2a01:111:f403:2612::700] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfbsa-0000000CfVl-3xTt for linux-arm-kernel@lists.infradead.org; Thu, 29 Feb 2024 08:35:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JvKDmjGUw1yvjg5mr4VZK9c200CwVLDy8+Xarro8rQWDR13GHKmEqzbnB3SQmrq1Y2kE6G2gjJ8ZuYuIMCyVA0Qd0199VwafC7Q2yzqzig/7auROwpZA8rdUnMDtbRUFtm0PZyxFFCfG/fdOZCO2XAoR6d0+r3sFPDLkj+qAkouPdUYFjlyCtHxmkemyOfHHQpvHZ/PxwdGUYbiiMOLFy8O+JnTePnHqU6mha9aIZXeUzru2/75/BIfA7vcwswXFd3/4pVVUPUU/Vkmnl3b5FwoopMGBYiOKlwAhOyyvDjtrJ86xjYBkp6JryuYIpyW0glV7DwXSpYTeFQ1IEIvOAA== 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=oZ/pSS/SvY4eruNxrTINDd0ELQdqtnODz0ZyyM7YC4k=; b=OCHoXjB/VpKoZbVDwLPAUyveyIsEp6amYFu2s3MAz9fV9Cui/kohoYacN8O5HLq8hXmoDL1KS3/BVE4vtJSTSZlTqqx2aq5PGkCU2t3I7NRC4hYbUjx3sWhgZC5bZ65R54Sqcd4AnQlGvaMWX07RXeYKM4KHHymo1/aT9KZ3i3yugepcKYGZj2Mc+7gVquJZ7OILnC0gGEjCyAx/+SSzNtXf2iZHISsY/L5QO1E0Vj/2RQbemDau2U6Fq2wvcFA8joZDvGMgsArDIvG3z8cmQUAFzqT3PKCFm3oUqtyI2bXKy736vY89nF6r8zh9OkIh7FDuktL+vLiX16t2j1cW5Q== 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=oZ/pSS/SvY4eruNxrTINDd0ELQdqtnODz0ZyyM7YC4k=; b=Rq7KXKmDWmLPLGQ3ggUkdw/eqH2TjvZmh3cv6WQ4kVoxRVpGKr/yw/peHqobpifWoO/dyfzPyOQrL+pm4/btVy0HL/ybP77fxpJ+8d4ClCTN4QSVqJKh0UKvyvbJzLT6ZCFC4vCn+A5oXEbFygDIfOqQCp9OMBBWTTHxFsIIgG8= 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 DU0PR08MB9727.eurprd08.prod.outlook.com (2603:10a6:10:445::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.41; Thu, 29 Feb 2024 08:34:53 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::9e35:6de9:e4fc:843f%6]) with mapi id 15.20.7316.035; Thu, 29 Feb 2024 08:34:53 +0000 From: Javier Carrasco Date: Thu, 29 Feb 2024 09:34:44 +0100 Subject: [PATCH v6 1/9] usb: misc: onboard_hub: use pointer consistently in the probe function Message-Id: <20240229-onboard_xvf3500-v6-1-a0aff2947040@wolfvision.net> References: <20240229-onboard_xvf3500-v6-0-a0aff2947040@wolfvision.net> In-Reply-To: <20240229-onboard_xvf3500-v6-0-a0aff2947040@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=1709195691; l=853; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=SFVrdbQBKp6w6iOi3+cJln+dSXaq8fghc4J0yWNMHNw=; b=xGSVI4zRSKyb+ceH8aCwoSZAZaOEt7JmR6WYz4swE1/h1zNBi2AhuPBawrl/kg95eNJAkGERS 0yK3obd4WnDAjEU680G3EdZqu7XkB6NVxVZiu1Qt1ckn1gfylO04hZH X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: FR3P281CA0020.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1c::21) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|DU0PR08MB9727:EE_ X-MS-Office365-Filtering-Correlation-Id: 069d09f9-4aef-440e-8ab4-08dc39014d73 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OA5kImIKOl7+LZWEPE2IMBItBOiV1bY7jLa5uRB9P8JfOT8PItETRNh9JQ7a/aAAzcCVPe95XIVQH6RzDmQ4iARZn2gc10bkNTfGnmZXvKhcZi7HGh3GgbSZ0V7ci0F4M1D0gas3CABJnvoG7d1ZQQ5eX4XSLHxIHeGUqgxCaRyThVc2Vy1QF1jJPPElWi3NvpJN9FEbQanHx0hgW3NS+BO7ZA9rh1TluA0PSKficXnZU0aOy4vI2c2bi3/FhnCEZ2wFC32B7j1mEY68zhPVkeyTo7G5bYH0efpfQRXxTjB2IUXXeu/8hyTEkUPKT86GyVw22Czeot+ClTBP0KLUvf9eAgHKkvHNhyCPf9KJZCXvd89044pVisjTwfegwNbmOoUWMSP8h4D264It5dTiV8pbSoVnamUut4B3k/C3UU2aUdVs1yrUJsm+GPc8XFlwMXKtLzCNb832/PBvHlTxQmxL3nB3fX3MHWeXZ2VpX4uMwWANIdzTDBQNXJ4sXlC7L6YX38rjFUhIHXruDvVYbcTEQszn39+QuKMEgc672H5ip3wHBeAjoMgicvKn3SxrPTt+bYqp56Qgta3CvKT3K993DtnrkXfao9ze3nDENw52gj2+yl9mi95ulecMlBbFSuYFQzas9yhB2Jjoa57aST4jx2be9GCtn/ab0wfVcPiW4n4EIIgtcMHEng26iwK0Z0J6U02CzcxmhN4S6ofV7hB7ritjxURl9J+NaTYQInU= 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)(921011)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?qbCXjXO4TqCmZxzIBiMdaRr7iUBR?= =?utf-8?q?JvcY+q/knpOz+jYbS1/USJCNCY7GcTj7ONFzm5UPiti58YMTKA8VREzw2FgMJ5Lgc?= =?utf-8?q?yUXCfZJZIwXyO+e63myxpAfTeJfNptxBu0RxXi7Lcsr4acvCmLFccijAvr0/ruDVh?= =?utf-8?q?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IWDQvgYyhPyKt+ipdyoyCMuqRMi7baJl1v71w0mWsZHzEjzInHlksVmy/MSAR?= =?utf-8?q?+1B3jkWFbcHV2hNcKAOBMNDp4XSqoYCcXU6Y9UBBRrJgH8crVcQSWbIJk3jlEicwr?= =?utf-8?q?1VK8H8q8om2dBej0flWeZlGb7StjCwHDsjFHS2DnK40enG6LFs6xIiwvlHzOb94li?= =?utf-8?q?3tlDSoRwtp2Q8oh8lidH00uG8r0yM3wFjbqeXPBrefLREnz7aAHkN4ab6mBwILq9O?= =?utf-8?q?1A+amO1olFHShc8JW6RqTZfWTt/bfKHKfkUQFZVAxDCUN8MAvuQE/3ra3hpFTl66i?= =?utf-8?q?+baK1Y9884ZwsedHNyovyBJsG8c6pV8bokBP8puWjDg+oLR42gQVh9pRE1qOfSaxa?= =?utf-8?q?8k+UUg/iryivDwqtBBCdW7SL7RpLAF8C+gK3SEnTVbhfnRUiIHWfGQFEJwidHOqFH?= =?utf-8?q?sLlQVHc7L7AzMKn4S3MU4YWHS7x5Xcjj1+9wSPIofySRaYDx7NUEceO+H8KylEh0F?= =?utf-8?q?F/lumkwERbEpqPvO58ezaR1I+ukugTtiVZAzmLvJ5qDrxEpOl4lXQvo=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 069d09f9-4aef-440e-8ab4-08dc39014d73 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Feb 2024 08:34:53.8064 (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: bpBikqnE4IqF5pJSSCe8q0Mvj7KpBw8Cg0dMAkL8WP6dy8RIrdcAwvu64vLC2ICp5HftCaoqlOFufxbD+4HFzoncCr20s27u7ImarDNFNj8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9727 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240229_003501_092728_8EAD589A X-CRM114-Status: GOOD ( 13.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. Signed-off-by: Javier Carrasco Acked-by: Matthias Kaehlcke --- 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;