Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1414459lqt; Wed, 20 Mar 2024 03:23:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWkNyjLYJDwWh4ZkTVHD/sU1wr53VVAUuEFEjRwkuu7nhYE0gTbog7sJCiJwr+lLV4T4/6URLRsX7kgPksB/LKzZ/8bpFwPh9T9T6Murg== X-Google-Smtp-Source: AGHT+IFvigVOjEy16sADvWskpPbH9JUNkyOl3I8hRL5SVP7E/oaHiompy4X4wdpA3LTjQI1xyKSR X-Received: by 2002:a05:6a20:9d90:b0:1a3:521f:f5d6 with SMTP id mu16-20020a056a209d9000b001a3521ff5d6mr6248268pzb.19.1710930183851; Wed, 20 Mar 2024 03:23:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710930183; cv=pass; d=google.com; s=arc-20160816; b=ZYm+IqyGx76mK1pfAlmVY21BKSUJOAYyJZKWcq4Ys5FnAZzhINHiBjAex4Nw3hjwM+ SaPNXPItR9qjWEONiNfsBHPq2kCKMKHSN7ggEbEWObcfRD40xfU6CTWXSHrXA3JpE9rm 4cIpUiEd9uQwC3gshgQZmCD3WQiESP3RYDI+miBxE8vYzZkjJ5VbSuCmdNaiKzgiRGO9 1xXQRD85wL8QhggcGqDr9awUZM0KX+x8n4a6ZDMDeDLSRnmbhz8kgx61z2ZjyVq1KuP5 8g56/fMfxuH0fJvahzlzvIyNbpIoqGSPQmd8/oUwEvj5ZIqdccRxe9+3Py08pJM0Wszx SQqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:ironport-sdr; bh=EnlYXqfqdA4FIQ01rdwoj5sQqPCwLF29pKTN3s23U8M=; fh=cRrh3Z2riFwpxvnLMicSDUt57biJ2SwYVHzdto+ObIw=; b=yUlcndf5U0U4QusakCDHaLCY3XIaW3a5oXHIS1gb+MgFE/Vp4nQO9iYU2hiaxEsBvn sfzN1BHBY3ghfPgY7If9C2rgfEO5fCjVrYudrl3FdnFQNl/QpESwDg+LRFaAo/eegAiU 2Yv9mz+zuif2h0xvyoIMRH+++c3x1L84e9+nTaH/17RQypKJ/RT4+knosL+sVr9mBG6B pJZPjgygy4gHbRLKfzugQQSUR9mr3ggtzpVq83ayLTZ6PBYgjQE055FvPKIMb7bb3L92 y24cbMaoq3KK+j0EUtdVmHQjHZCtp8DdFj0o8JKiDKE/OLqISST/Cb3WS2qy00NlZgIH Z6sA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=ltts.com dmarc=pass fromdomain=ltts.com); spf=pass (google.com: domain of linux-kernel+bounces-108754-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108754-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=ltts.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 11-20020a630c4b000000b005dc9a3fa409si12359315pgm.197.2024.03.20.03.23.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 03:23:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108754-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=ltts.com dmarc=pass fromdomain=ltts.com); spf=pass (google.com: domain of linux-kernel+bounces-108754-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108754-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=ltts.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 90D36B20D1E for ; Wed, 20 Mar 2024 10:22:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 990993D0AF; Wed, 20 Mar 2024 10:22:50 +0000 (UTC) Received: from esa2.ltts.com (unknown [14.140.155.42]) (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 76BDE3C471; Wed, 20 Mar 2024 10:22:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=14.140.155.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710930170; cv=none; b=ojXk1KocRlcA04vEXXNGGmV9qNJKjrjc5Hx2WoZi9ONd4RYWQaRla+7D4nAXX+R7mfuVO2Y+AZ56yC9rBA4VDONAu9qeWipTzcpoP9+Tg2gnB8bofGsK7K4k2GSwQr7OaFAo/zbVVGMLNxUPFMhA/w870XXNHIvk2QK/HoB0ZLs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710930170; c=relaxed/simple; bh=Ho+4VyVSRRXDeXcNiFO/PfTQfJZaLrzl+25m9imkymY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=IrSbqDhDRUCgiXAW6XDnb6GxqlX8OnkJJ5XJXNUmRjB4OFFu3ciaw5ZiS4kEJgFFTRmWEyqg9JscsAMyGhJa9vEuMILTST9yfo5iljqX3I3xxrxhkleBY8awAxD6br2TNv2/eOrbUKfkKYo7D1gLRE9nWJHj46+9JVzDHXjnocE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ltts.com; spf=pass smtp.mailfrom=ltts.com; arc=none smtp.client-ip=14.140.155.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ltts.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ltts.com 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: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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