Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp639671pxt; Fri, 6 Aug 2021 10:03:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6dk78xRLh5GLeEnTdGFsgDDMvqAua9ND3l8ojYUymj15q/j/OVhPjvZsklw6CjMSGPEmr X-Received: by 2002:aa7:c816:: with SMTP id a22mr14297754edt.202.1628269397308; Fri, 06 Aug 2021 10:03:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628269397; cv=none; d=google.com; s=arc-20160816; b=PPe0b+9zmvxBDpQAJuvpHLFQwdRNxZobkmxuE8V6o5Ss1H0qrwGy5d97yZRgYOZjaX E8W4DLAZMcCcOoBq20V8yYQOpGjZWddXs8Z5YkDCVLx0uzKL9m/u8QmgyyxL411nRBiN P4PKS6mtLM0Ayjwcik4LjZsfc8sli2gdjLZEhuNdWE+p/2GNua7SmGvjbgPsGlCGQ427 oc3Zk90fPqHypEX2tiTwJ6Dv5/C2gl6I06zSWES57K2wdITlzZwi8rg1Hka2kHtx151T OKzGAOuZiXp8hw9uiFeHL/eNY8xSDjyqLNERfRvXz5mZ18xfBioYYqfBgjjj7tTq0Ucq lz/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=s9wnVnDyd/BCxuk/HASH4KODRxCJv7VlRo5y7kgnv28=; b=MDvjHiEeJCoJOkn0ZNHCYqIpNR2oqRoag7x7yMhtj9G+0tFUr5v4FdIbuEqFq7530V 1dfZeMWtwfHUA+g6UjutUDPFysWCMQtSpwjRG5IhxL2qUcO+rDYOvTzjVaapEbc6KDyY KluuGMBZwmy7pF+R+0bzR/Y4LVwwJNNzAq/4zJ9glSGZHteCzK0UZ3A0vobamTDavJy7 sUDl6gTUGRqkiSHT9cPGZ1P4Vr7s7v7YCBqEzISDqDu9u7QNTZXKar3NBWx8WulgnYDo D8PpACLs+ITvMNwvnVIU4votv6JYx1AsTl6FQamAi37VLRhjxum5TaSBgr9T8fuRC9i8 aYNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qJk2DxUF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d1si9670933edx.519.2021.08.06.10.02.52; Fri, 06 Aug 2021 10:03:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qJk2DxUF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240755AbhHFLi5 (ORCPT + 99 others); Fri, 6 Aug 2021 07:38:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238926AbhHFLi4 (ORCPT ); Fri, 6 Aug 2021 07:38:56 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B270C061798 for ; Fri, 6 Aug 2021 04:38:40 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id p5so10695187wro.7 for ; Fri, 06 Aug 2021 04:38:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=s9wnVnDyd/BCxuk/HASH4KODRxCJv7VlRo5y7kgnv28=; b=qJk2DxUF3xFKcfqISlcX5FsEolwmVRPARV1u5OIJr2JkgRn8MxeQrgpdJwgictJQXW 68MHh5DsUeRKtY7grsf24MV7xFCfhzlIG192rze6AAV/bhP7kl6fotqQeK5N3VRBqLGf TLkFsGzO74BAZcl2NPQaVsPyof91VeIkrheYpzMBd1h5DCTbcQCaTez7DlVlOgIsa4G5 QCTSPib/tvfv+yBnDp69b1NlqIK1JhSy/shdWP0AOeKXaBwQJEu1Vm7qCo3I4+CMeUrG IBwq675kfMkljraZull58XzT2wlvm6x2KrXxl/HAddxt+wUxKsIFSStuY+XGKHNSgvMd PrdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=s9wnVnDyd/BCxuk/HASH4KODRxCJv7VlRo5y7kgnv28=; b=i28IOzb+5H6LOCwZhgx6YJ3+BRcqlvOY7EY0fTzeTgawUi2cPm3Fhr1LeqABkiy/64 jB2NpDKImrrprtuo/t8dHwXyHegE0ljEWJm6Z2IwcCu8gxD75xwHbI6gl+KJfvjcrqF5 iKHtirs/N6aMqCLU2nBNRxUFcbHjrNowUQ1Dbg+VXmfFTSyJEUgAH0pTat6qRs6PR/WP 8NpCxrzdlTcNrYemaKRsbM+Ahd13aPbDlL2W+9fkN3e3V6BDgpe7goCyjR6xBhsQE96Y 949t/VPZyKuSJdYqsQaTYnyO8NA7tfmcBVUhpY2J0m3Fq6ftVh/bJ+3hHr8INzNUTJ4V 5X3g== X-Gm-Message-State: AOAM530vJ05c5xpXUB8QlProXjhziAkvRrDWtgVWvjwrYXQzfwfKJQzB ZeBQrvPG7BJvCWq6JiwSvjH0yg== X-Received: by 2002:a5d:6a89:: with SMTP id s9mr10293739wru.309.1628249918939; Fri, 06 Aug 2021 04:38:38 -0700 (PDT) Received: from google.com ([109.180.115.228]) by smtp.gmail.com with ESMTPSA id l5sm10683955wrc.90.2021.08.06.04.38.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Aug 2021 04:38:38 -0700 (PDT) Date: Fri, 6 Aug 2021 12:38:36 +0100 From: Lee Jones To: Alistair Francis Cc: robh+dt@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alistair23@gmail.com Subject: Re: [PATCH v9 03/12] mfd: simple-mfd-i2c: Save the register client data Message-ID: References: <20210806091058.141-1-alistair@alistair23.me> <20210806091058.141-4-alistair@alistair23.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210806091058.141-4-alistair@alistair23.me> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 06 Aug 2021, Alistair Francis wrote: > Signed-off-by: Alistair Francis > --- > drivers/mfd/simple-mfd-i2c.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/mfd/simple-mfd-i2c.c b/drivers/mfd/simple-mfd-i2c.c > index 583e8c7924af..633a2b28b6cb 100644 > --- a/drivers/mfd/simple-mfd-i2c.c > +++ b/drivers/mfd/simple-mfd-i2c.c > @@ -48,6 +48,8 @@ static int simple_mfd_i2c_probe(struct i2c_client *i2c) > if (IS_ERR(regmap)) > return PTR_ERR(regmap); > > + i2c_set_clientdata(i2c, regmap); > + No need to store this here. Just do this in the child device: dev_get_regmap(pdev->dev.parent, NULL); > /* If no MFD cells are spedified, use register the DT child nodes instead */ > if (!simple_mfd_data || !simple_mfd_data->mfd_cell) > return devm_of_platform_populate(&i2c->dev); -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog