From mboxrd@z Thu Jan 1 00:00:00 1970 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 C35D4C54E67 for ; Wed, 20 Mar 2024 10:23:00 +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:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dLZLOhANyn8O6w2xUVWCilqCtBOF5yBAVP2iJPZ1sAQ=; b=0XWtxDLL/sFcPu xsfD01BhSd3JGhRRrkEFZ4YaBVb6xfxoqsXv5pJNSVNXx3B+6WHl7NdlCi5p+Qlagar9qoXnfmTa5 7yrPaYlOFas0/4LTdaUnFX63PTskBpBWj1jdcngLHtVHB6yi7MjLY62uNI6HQuih2VurzESH6yi/a NYgHnMFKnlRoAci+bksvrYJ0BAfETDQt0wZUdLxBthAHJivZbPqhUPtT8THfndzjpBsId6MlgQY7P F7V889r/eaiwHPEhwLYcchR0jRqWb2ZEMJNz/M3asmF6jrg+GGHG11mrV4ZCf2Xqbd7vLiUlsYB9o 0RO8ZrR2AWaRb410bJTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmt5u-0000000Gij4-2WOB; Wed, 20 Mar 2024 10:22:50 +0000 Received: from [14.140.155.42] (helo=esa2.ltts.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmt5r-0000000GiiD-2pkk for linux-arm-kernel@lists.infradead.org; Wed, 20 Mar 2024 10:22:49 +0000 IronPort-SDR: p4GGiX6mksnr9sfUSQzMzyObBqJqHn5W8vEq7ogckftZWGWQH9OKvP1HQJIEPqGK58yz9CfDZW v5GjaBAS46Bg== Received: from unknown (HELO localhost.localdomain) ([192.168.34.55]) by esa2.ltts.com with ESMTP; 20 Mar 2024 15:52:43 +0530 From: Bhargav Raviprakash To: dan.carpenter@linaro.org Cc: arnd@arndb.de, bhargav.r@ltts.com, broonie@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, eblanc@baylibre.com, gregkh@linuxfoundation.org, jpanis@baylibre.com, kristo@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, lgirdwood@gmail.com, linus.walleij@linaro.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, m.nirmaladevi@ltts.com, nm@ti.com, robh+dt@kernel.org, vigneshr@ti.com Subject: Re: [PATCH v3 03/11] mfd: tps6594: add regmap config in match data Date: Wed, 20 Mar 2024 15:52:29 +0530 Message-Id: <20240320102229.464673-1-bhargav.r@ltts.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240320_032248_283543_E0FBF639 X-CRM114-Status: UNSURE ( 8.65 ) X-CRM114-Notice: Please train this message. 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 14 Mar 2024 16:30:39 +0300, Dan Carpenter wrote: > On Fri, Mar 08, 2024 at 04:04:47PM +0530, Bhargav Raviprakash wrote: > > +static const struct tps6594_match_data match_data[] = { > > + [TPS6594] = {TPS6594, &tps6594_i2c_regmap_config}, > > + [TPS6593] = {TPS6593, &tps6594_i2c_regmap_config}, > > + [LP8764] = {LP8764, &tps6594_i2c_regmap_config}, > > +}; > > + > > static const struct of_device_id tps6594_i2c_of_match_table[] = { > > - { .compatible = "ti,tps6594-q1", .data = (void *)TPS6594, }, > > - { .compatible = "ti,tps6593-q1", .data = (void *)TPS6593, }, > > - { .compatible = "ti,lp8764-q1", .data = (void *)LP8764, }, > > + { .compatible = "ti,tps6594-q1", .data = (void *)&match_data[TPS6594], }, > > + { .compatible = "ti,tps6593-q1", .data = (void *)&match_data[TPS6593], }, > > + { .compatible = "ti,lp8764-q1", .data = (void *)&match_data[LP8764], }, > > The casts are no longer required. Same for tps6594_spi_of_match_table. > > regards, > dan carpenter Will remove the casts in the next version. Thanks! Regards, Bhargav _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel