From nobody Thu Nov 14 07:13:16 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE7BAC624B4 for ; Sat, 25 Nov 2023 09:22:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231929AbjKYJWD (ORCPT ); Sat, 25 Nov 2023 04:22:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231911AbjKYJVu (ORCPT ); Sat, 25 Nov 2023 04:21:50 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2051.outbound.protection.outlook.com [40.107.92.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A8AB19B4; Sat, 25 Nov 2023 01:21:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lD69GWKku7R81ZxjkxnJi3hl5P7m53QRdob48uLFxNayvNsglUsqA8YHe3eD29pI9qHUrglrXSkfIgmz8McwU4itNJOCMoUkrVAmY63TZhd1/Cg0hPcFilhAbhZt5DNczG8P2SvKER2oTBkNsJsb85E21v631hEhccTrUkY5ulZxzfvjSbyBiaNt7B9A6vzUAF+nkOAOZNN60ycMq15794J59VLOGAuYIkqYPLGIaOvINNDemk3O5vG6jnACsu7CycXa7OIKvst0QBb3a/47FDen6f9FMCk21aqaLzC6qm9RcZEF5UoOqOPt32dUSwb6oS1CK1f2ViuV1nP/4e2K5Q== 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=z1cnvVPEmwuLBAJrJb/Voh0qKQurN7FQH/OqpGRVa70=; b=UoNjxeIISBl9VpTUdOGM+FJ5VN9MghOprodMwdKQQmIeWjgjhYtb0m4khoqI1Xes8j6+gGVa6VasU50gDZLb7outN+MvekloEGtaPefrD+5kD3Q3bEEdlqclEZagnacYe85LfqeTvlTwSSjPlOqKv8cDghZ9VJTfm4OuKyG6THMK/iNXdHzdnbmjmBHP3TWkbogITRFKM/qPF3pt4GzC8ZDYRekefHnH1kNaszypjEE+sjhOkx8x6cyOhPZS6MZoxEg30YzZfel/x2cY9cSZRDJqyNLHQe6/N6O8UNbiO1frmubi5KZGu/8CnJctGJ7ltYe6e04t7MgM7rSYokwYfA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z1cnvVPEmwuLBAJrJb/Voh0qKQurN7FQH/OqpGRVa70=; b=YcPiipi0rNfasx1Xa2yI1p8nAkn80KxZ6dVC+pSRpiKwCcOkqa5w9huT3qy6SjryMxcQP8xDL3Pj+XRapJ5byX7NpxvS0nefTuSOUfdFYtojWqLAKW97CERP+p5c6utEpADqiSlgzyjlJeeFc6kVu/M8byKTvZBzSgH5oqdd1vg= Received: from DM6PR11CA0065.namprd11.prod.outlook.com (2603:10b6:5:14c::42) by DM4PR12MB5264.namprd12.prod.outlook.com (2603:10b6:5:39c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.25; Sat, 25 Nov 2023 09:21:53 +0000 Received: from DS1PEPF00017097.namprd05.prod.outlook.com (2603:10b6:5:14c:cafe::cc) by DM6PR11CA0065.outlook.office365.com (2603:10b6:5:14c::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.21 via Frontend Transport; Sat, 25 Nov 2023 09:21:53 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DS1PEPF00017097.mail.protection.outlook.com (10.167.18.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7046.17 via Frontend Transport; Sat, 25 Nov 2023 09:21:53 +0000 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Sat, 25 Nov 2023 03:21:52 -0600 Received: from xhdakumarma40u.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.34 via Frontend Transport; Sat, 25 Nov 2023 03:21:46 -0600 From: Amit Kumar Mahapatra To: , , , , , , , , , , , , CC: , , , , , , , , , , , , , , Amit Kumar Mahapatra Subject: [PATCH v11 01/10] mfd: tps6594: Use set/get APIs to access spi->chip_select Date: Sat, 25 Nov 2023 14:51:28 +0530 Message-ID: <20231125092137.2948-2-amit.kumar-mahapatra@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231125092137.2948-1-amit.kumar-mahapatra@amd.com> References: <20231125092137.2948-1-amit.kumar-mahapatra@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF00017097:EE_|DM4PR12MB5264:EE_ X-MS-Office365-Filtering-Correlation-Id: 9204fb6e-da20-496c-6fa7-08dbed97f679 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nxjFJJoqkFIIgowpoNSusSY8AvJMKr9OKheQRsX/bGsjmEWfu5RTpUtue3Yl0HLzDGord0Pq1eg3uS0lACHyjLpoJDT+W7XibI0Vc/e4RJ/kyFc84p161WlHXzeKl3t+Gz3E+YpHp/It8BAUMafAWoo2by3ixPTo63yUlH1QY9OATMYygDzG5pjysCsBBMsvMloiogWCvJIBoxaOaRNhbhhY8u8m6hYPyH1/6kp3EqVFzJrScPlkob7aZd5GdzTrxdLtbSdbWdSbYVvSQKjCvUQ7uRcn/PvY18G5zU7KW9rRD/kHMb0nUhuvf42YFt67bY9IUr8gafyAHyJ5+iVplEYB/hnIQvoYfGMrWCmmuAw9tBcAaXk9JPiHZMAEgFJNSC7bn16AB2WDkQvSJFK6CJbhk5/f0mcZbkHacFj4/ptZfuU0iZYNgKF/6gSdkIeWOp2vHmKXUE9mdDe4mEeOcCfKGVL20FPnhzufHonc0O1u9wWYto9GOy6w58co3LlHIO8KGWhhVzrN48PI/+MLZ6DGF6RE9fOakNLb+M2tfGcPSPIa/S88lJ9dY1sxXzFY1JWWlNMe3wZy5KiQyfauTNY5GeXfg9vztcJ9N2/e1E+QI93vTPjM5lOgRjOn4lEAyp/8cgS1wSaC3Yj+lIG0Ry2KHx6xxtx6pQ02NFIc53LG0YhRyOgwZh/QsaiSa6X/2q7i9C9RAyev0YbgrCi4rhq0Zmq4y+qrV95yaUUqaU0/moh+jHiC/uPAIwGjEQ3ZuBFMkOtUMjd9rSTstvyJvYeXV/lx+JDiZbt/f7EU/k0= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(136003)(346002)(39860400002)(376002)(396003)(230922051799003)(186009)(451199024)(64100799003)(82310400011)(1800799012)(46966006)(36840700001)(40470700004)(316002)(110136005)(54906003)(70206006)(70586007)(478600001)(40460700003)(6666004)(7416002)(5660300002)(921008)(41300700001)(36756003)(4744005)(2906002)(4326008)(8676002)(8936002)(86362001)(336012)(426003)(82740400003)(83380400001)(356005)(2616005)(26005)(1076003)(36860700001)(81166007)(47076005)(40480700001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Nov 2023 09:21:53.3274 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9204fb6e-da20-496c-6fa7-08dbed97f679 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF00017097.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5264 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" In preparation for adding multiple CS support for a device, set/get functions were introduces accessing spi->chip_select in 'commit 303feb3cc06a ("spi: Add APIs in spi core to set/get spi->chip_select and spi->cs_gpiod")'. Replace spi->chip_select with spi_get_chipselect() API. Signed-off-by: Amit Kumar Mahapatra --- drivers/mfd/tps6594-spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps6594-spi.c b/drivers/mfd/tps6594-spi.c index f4b4f37f957f..24b72847e3f5 100644 --- a/drivers/mfd/tps6594-spi.c +++ b/drivers/mfd/tps6594-spi.c @@ -98,7 +98,7 @@ static int tps6594_spi_probe(struct spi_device *spi) spi_set_drvdata(spi, tps); =20 tps->dev =3D dev; - tps->reg =3D spi->chip_select; + tps->reg =3D spi_get_chipselect(spi, 0); tps->irq =3D spi->irq; =20 tps->regmap =3D devm_regmap_init(dev, NULL, spi, &tps6594_spi_regmap_conf= ig); --=20 2.17.1