Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp96756lqb; Thu, 14 Mar 2024 06:31:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXXvMxlgDrYUh3rLdcugv6cqPHHA1/nLyf419y4LeaTwQg0YVBfrc7G1coFwX6U6qGACzdcbmH+qfvyqTPfaiuXwNRoGzj5Jai700Qslg== X-Google-Smtp-Source: AGHT+IEHwQcW4MoY8Lf2E+QBOQTDHfw/K7o/Y6KJiaVgIr1OskgkYXxCjq55twKlxUUXbmWVcix7 X-Received: by 2002:a05:6870:3128:b0:220:8d36:46f0 with SMTP id v40-20020a056870312800b002208d3646f0mr741032oaa.11.1710423064731; Thu, 14 Mar 2024 06:31:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710423064; cv=pass; d=google.com; s=arc-20160816; b=D5lkWENnaL2AkasrjSOI4NyJvHQuz/09+dd4DfbMf7DhH/QGsLtmts1cQqtSfvWdN1 GiaRYdDmhI5OeJ2SoLxJnMeu6882CppOR9BM+t03XCLtjPmiEd/T+PZnL6oeoHDgIQH9 X++t8KQzUrLoV9p5DsS7k3ui4jfBa9mx/dHFIxIusKBzRULHu69jEbe3Yjto+dz71VmG mSZ3WuQ2pt0Kk03u8YyZ+GsfzRntIjn8EuAaB/WOkpVGYWPSXufhCByZskEb4dmZDPUy 4FpNlFYEjnCmi0nfpz4xNIcv3ldU/ecEH9UniFwEigxAPYnPTR79ptJ88u+MHOMKwXG1 nD9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=86yHLksSztOa2QFDhY00gGhv0MGKwJBozJPgYBlG5kQ=; fh=CvMnerFmd5Z3EWUSQB6mAysgK+xf7ZiDyZw5PIvXFiU=; b=JrO/YRgdeG/FljwBWObcasKMyQsKrWHapSSqruJJ+K8sKUQKh+fj7wcqhXTskgpikM KkKZhhwSMMWVPH+5VvL82fb5jUSa6PalUqE90IJyYuEEB5/VDL0lk3bqqs8lq9Jlo5fH YmbiGW4pdxEKA5n1K4XZVC/OcwN2V2vNqeaPHCXUMe1NJoArqS+t784LFn29HSS6WyBj pvswkFipLwOvyh1HpFoj1ojxAfvKAhA/5pbGbUVI0ZyEgtIkknnsGIEv/d5HvATyvnEH U/UWmUBEBcFgyNfOGNcQgweCyeb9MN/C5g5EmTBKNyWp8Y8Yh+KFrXtx6zYosU+wvH4v ji6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Nu2w+gOg; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-103303-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103303-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g10-20020a0562140aca00b00690b96fe021si644673qvi.399.2024.03.14.06.31.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 06:31:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103303-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Nu2w+gOg; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-103303-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103303-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7024B1C226E0 for ; Thu, 14 Mar 2024 13:31:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 185926FE02; Thu, 14 Mar 2024 13:30:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Nu2w+gOg" Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E0596DCE3 for ; Thu, 14 Mar 2024 13:30:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710423047; cv=none; b=g239GvCTvHqTWHIeZXmn7E1InevoFd4+ZRDOep4RgHHQw/CaIqEl1qgg3LIHnWdI8j1TUq9g0KpiDWjDc1shXbycoxg5oLnsC/VebYjL3A9Ng8D+vRiuGZ65KeMZb5i0MY7BFTEVxCzJtVWauw2qz6Q9fdhTOnlLuaVRepL95Gc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710423047; c=relaxed/simple; bh=11j+Z3UFl/e7AjIJcRHi2dz2L+8S9g3f5yDsqvNuBV4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IhcBhW/D1wq64qINq1YriaxkNQ+8W1UCPuU2jH7zngBVN3aXPO2JC6VcXMZ0ne1ZNl77tEDV8J5TtAKsAyLZmKUl7eZjiZmlWoiM2aWVEc9W/UKQ2LachULF8dgBgLkSrOzPND+5fsllDDY5x9yC1r3XVVrw950RvGTYm6Rb284= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Nu2w+gOg; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-513cf9bacf1so1112012e87.0 for ; Thu, 14 Mar 2024 06:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710423044; x=1711027844; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=86yHLksSztOa2QFDhY00gGhv0MGKwJBozJPgYBlG5kQ=; b=Nu2w+gOgNoBawfoWW7J7GMIEXzvfNM4dKaIR8BT724cqyRaVVidGCrvJFou0LVM4oo snSCP0Ws4OsNgzyZZaMvxIcZ+bEbUerjhqfx8j8QHxG+mF7phtJxbM3tg0TA/Zdz8CU9 3DIm50CNY9p12dgR1p66DDgLEnBMdZ9tUPTT129a0eNr3sYnKbxKm0U6P1oESxfoWyZb e8TrGmjZGkhMKaZNicN3rSuLOunxAxgO7YEROGevEKfN6+6RnKOiayOiscEqseqwRO19 aNnVZkroJhJEMbM7zWX2IP8+tTTNTAUluMJ9cZihSOotswRKbQJiFp09hrn3XxYbU3Co fW9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710423044; x=1711027844; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=86yHLksSztOa2QFDhY00gGhv0MGKwJBozJPgYBlG5kQ=; b=IRthph0ERKHynF53Wesm4ifzlsW5m5bCiBqodRKl1cB1/WtNKS4uGMC0PeyZaQeITK Uhpsq+Mqq2T8IsOugRYLcdCjePS18wxIWetWFzJnMu3Un8wiHUWoMEs8ufRaCjybpwhs 5m0poBU1ujWGaul+QqO2xe1mLvNETAq3OQvRmIB+J+FSvacXQShNkarqFCVCxf7sluBj R2MywdapxxOjnwfDfRo9sNvKcchFcYaHn7vfdvKlBbQHV3QlJq51205gEAkHBqiL7HBz NcsiNCOMBpC/dg7IYSgcnSLbbTTZgVHKWnhdpA5Ki5S/MX2qUj2IU0WAha5whtfDWzMD FhsA== X-Gm-Message-State: AOJu0YxohA/qerr0LxgVy7vwrdQA/rdjcsJ6qDubIgPyS0g6PB0l3g3Z ta++4r5bSBFESeDDaAct4mZsMIynmrbSNzfswmGjqAB2dsyT5rkjsJN/lyz1M4Y= X-Received: by 2002:a05:6512:370b:b0:513:32e2:141b with SMTP id z11-20020a056512370b00b0051332e2141bmr86493lfr.67.1710423043347; Thu, 14 Mar 2024 06:30:43 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id v13-20020a05600c470d00b00413f1c01a7bsm2157935wmo.16.2024.03.14.06.30.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 06:30:43 -0700 (PDT) Date: Thu, 14 Mar 2024 16:30:39 +0300 From: Dan Carpenter To: Bhargav Raviprakash Cc: linux-kernel@vger.kernel.org, m.nirmaladevi@ltts.com, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jpanis@baylibre.com, devicetree@vger.kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, lgirdwood@gmail.com, broonie@kernel.org, linus.walleij@linaro.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, nm@ti.com, vigneshr@ti.com, kristo@kernel.org, eblanc@baylibre.com Subject: Re: [PATCH v3 03/11] mfd: tps6594: add regmap config in match data Message-ID: References: <20240308103455.242705-1-bhargav.r@ltts.com> <20240308103455.242705-4-bhargav.r@ltts.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240308103455.242705-4-bhargav.r@ltts.com> 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