Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1748585rdh; Sat, 25 Nov 2023 01:24:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFW4+kVBsAGB3x1vwXd7T3YbHNbsY/zUsNFsbuuLhqDxvLBbhubDuv4plM3FUdRIvFgf3ef X-Received: by 2002:a17:903:228a:b0:1cf:b146:8101 with SMTP id b10-20020a170903228a00b001cfb1468101mr2550650plh.16.1700904293545; Sat, 25 Nov 2023 01:24:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700904293; cv=pass; d=google.com; s=arc-20160816; b=n8LHkbzwPAse6aUSu71WO0tpZiCXxLf5Gx6iRe2/uhSKnMNuS6aZbJQB8HNoW7pK03 Vhz0NTysQNEQkOpFHRC8WeNO1tDa/UukoYUU+0REoV4AsueyJfGPf6HcTmOSrmIE3/gP PP2n9/U1nkL2NvkgPacuvJ49ROp1Cbfp2syWPba+9J9uibmOPIg4E7MQ6/ki0l/O85Xy Tad/WBtsWBcJGsH6aEIEVTfIJ6oap6PYD/L9tdEM42lby8qSt6dVl481/SfQF9scFKwA q2iNIXVbfEYfEQ22ud3KnwSIuua6IIqYCYzdQhJgXq5QpNofGi0vQs6DfLq2HjtcJaFg oycg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=z1cnvVPEmwuLBAJrJb/Voh0qKQurN7FQH/OqpGRVa70=; fh=y/yQ0rKbc/fZLuaHDM+HICbyNQgL7C4dB1dwK2tYFEs=; b=Va7zArCmY/I8NT9k3UoTyJsJPSSRLtCUiWZzV8rhDNypK9VUFuSMdo7I30txPtOn/D WSXOWZCVMNOsv5Vwt6H2tpipIECEpoDXhEvhJxmi8v1HmHo/0tvrqAaUS9L6TqPWM0M5 KduIiV3cXTMANKuKL8SOWTpahM2vIYH8u9+2rghg0SCBCATmJ57ZtivOsbodm3Y1bn01 yOkqAz+Jg9FGnNPQw59fMAZF6xLf/tL7u8DHm6wMmCVa+2D42RW4I53XSncIW09ER4EG CQc4ULIWYtCJV+S9BfwBRfJTjmX19gqBC72IHEOlraa2PT6Mf1ZdlnJpWvQhlJ+h7k2o xK7Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=YcPiipi0; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id g12-20020a170902934c00b001cfba8ff230si209909plp.268.2023.11.25.01.24.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 01:24:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=YcPiipi0; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 0399D8090EBE; Sat, 25 Nov 2023 01:22:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231856AbjKYJWB (ORCPT + 99 others); Sat, 25 Nov 2023 04:22:01 -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 Content-Type: text/plain 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 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 25 Nov 2023 01:22:28 -0800 (PST) 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); tps->dev = dev; - tps->reg = spi->chip_select; + tps->reg = spi_get_chipselect(spi, 0); tps->irq = spi->irq; tps->regmap = devm_regmap_init(dev, NULL, spi, &tps6594_spi_regmap_config); -- 2.17.1