Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1702531pxb; Fri, 27 Aug 2021 15:38:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+rAWWvNfgC85J8/HK1xcd9d35YF8Z17I59whSTOYC+5zvHsneq6AonlA8+3ezA4wVzStt X-Received: by 2002:aa7:c7c2:: with SMTP id o2mr11987457eds.166.1630103891271; Fri, 27 Aug 2021 15:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630103891; cv=none; d=google.com; s=arc-20160816; b=u//yD5I18MaM2lGL+KpSAnkw8HFyfa6yggFsoaydyQygYFHFyfpKXjGd9+YYnVuyZX ROSoSo1moTBXGl0t+AUji5FzSjLi31j23BM1H+4Msmgh29S59engNOeB3TXH60/1ZrA/ f7mSPHko3KNTBqr4OothFjmTwEiZckZV0UTix2cheonz28guiHeW5mKviyo7lhVTabF+ toKH6LHQCJ5QQp7QUNbdLdBoSJoL9IukAnpC3QhBfrqpr5HJtEKXbtTePEdJYe87IeJl w10oRWNBHYli4hld3e0fnV+dof2SGmGeKfBbqf79ufG62JEZ1bCHnnM3eyZS403e07N1 qkHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6WVVH9tPnPAEwCiy7b+h6cy2lK7RVxZQc0+q/RmNQO0=; b=cB8Pd6C1EzUhSpV9jYUQJdemCpSKoVQEyuk0/GHoss/dxb5uD0B1hWU0KyHNo3/t+S pnLhGpKIcdWf6aECB3gSVonF5Jjny64+JpwY4CdTFMB0D5Fue/+39BddhJ8JV7h6bc2E 7d/Z/GbDCX5DSqT4bxv3mFIKOTbN2Kk6XHGCflw3nY6/DUSEn3/QkVXvJsSHBH0HncXb 5ew35V4J3mIT4IZO0XPrfUw12UPMt+PMUMYhZQ4sTqhTpKTKnOGJO6PspvBaqSHYUo5r 26Rhu0uDAYMB1z7a/fPdSMooWBzMyMl6h6nILMwDrBYOuU5ay+C70P5PXM8cFSo1BDMr Cxfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w+XxRhlj; 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 u2si7152666edy.66.2021.08.27.15.37.48; Fri, 27 Aug 2021 15:38:11 -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=w+XxRhlj; 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 S232314AbhH0Wgy (ORCPT + 99 others); Fri, 27 Aug 2021 18:36:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232318AbhH0Wgy (ORCPT ); Fri, 27 Aug 2021 18:36:54 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FD00C0613D9 for ; Fri, 27 Aug 2021 15:36:04 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id z2so17458658lft.1 for ; Fri, 27 Aug 2021 15:36:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6WVVH9tPnPAEwCiy7b+h6cy2lK7RVxZQc0+q/RmNQO0=; b=w+XxRhljzWKRhihK4B69S/2fTaOrvR0DPx8n5kFl9Lb1xho82Q50J3Pz5FClh5mlNJ pBh3/2nxRCEH06/WAdSImiLR75j5eXTY/d/EgYcm+DL+as8La7kPxssFTuBJo2xzR15I SIo6dFJRzkudWfMJzE8AfEdQKSG4MFHKJVwsyoebzU0Dkt9AwiioUW71knv/QYjORR33 hAz/lOv5I31jsAHpRkAPU+IqTiD34ifVqzgxpkP1azbtUZ96vjjX0wERP1kokLyRgzfK azS2lOq641kfBG+sFhYSRCkmDqrzf9QO4zi0Pc0UUisbfmYF1XhfF1nJNNb+A8Yr3LHr zY2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6WVVH9tPnPAEwCiy7b+h6cy2lK7RVxZQc0+q/RmNQO0=; b=ediYMzRaEg0Bs7OSXAmVjPR87HhN5NwUikS32ZYFj5CwUXDxzkuY+ismjD/jQJfxEl qw2vME7sTqhmg5tUa+nlWBC68Casy7N77rApDrb0f1rCtbox5kYLgjnQtj2FuAd6Npy/ FKz2cruEodd1Nfi1D5UFGKXZj3Fbrx/zHkIXgjeQZHZEc1UdObDmIuxZQcMz2DAFtPmU KIu/KuFNripEvpSHkexEDEezMJvAXIU3ekFboaIeW9/XQ+skbBxnrTs21In+uEYkRoNT axzn6YJProelZyDixG+i/oOguIThkbq4eU113UEryFQE3ejBx/JVNnegpbSIM1dwtIqT 4dLA== X-Gm-Message-State: AOAM531R50izfYekBR6KttPzjx9PATYf5FESJ09vu6tA9APS1jCQuefR ef8fT9vtMvrjUbqIqCOsRRD+fXvvc6c/OnjemyU9QA== X-Received: by 2002:a19:c107:: with SMTP id r7mr8336002lff.29.1630103762773; Fri, 27 Aug 2021 15:36:02 -0700 (PDT) MIME-Version: 1.0 References: <20210823112204.243255-1-aardelean@deviqon.com> <20210823112204.243255-6-aardelean@deviqon.com> In-Reply-To: <20210823112204.243255-6-aardelean@deviqon.com> From: Linus Walleij Date: Sat, 28 Aug 2021 00:35:51 +0200 Message-ID: Subject: Re: [PATCH v3 5/5] iio: st_sensors: remove reference to parent device object on st_sensor_data To: Alexandru Ardelean Cc: linux-iio , linux-kernel , Denis CIOCCA , Jonathan Cameron , Lee Jones , Andy Shevchenko Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 23, 2021 at 1:22 PM Alexandru Ardelean wrote: > The idea behind it, is that all devm_ calls in ST sensors are bound to the > parent device object. > > However, the reference to that object is kept on both the st_sensor_data > struct and the IIO object parent (indio_dev->dev.parent). > > This change only adds a bit consistency and uses the reference stored on > indio_dev->dev.parent, to enforce the assumption that all ST sensors' devm_ > calls are bound to the same reference as the one store on st_sensor_data. > > Reviewed-by: Andy Shevchenko > Signed-off-by: Alexandru Ardelean Reviewed-by: Linus Walleij Yours, Linus Walleij