Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1698949pxb; Fri, 27 Aug 2021 15:31:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaNMYIIgoseYuDPMEIdp5MSMTtCyJFMruE14+C5npZgrKTJJgAWy0QG+x+hoBVH6Sc0nI+ X-Received: by 2002:a05:6638:e89:: with SMTP id p9mr7133799jas.95.1630103468193; Fri, 27 Aug 2021 15:31:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630103468; cv=none; d=google.com; s=arc-20160816; b=piQ1CA59g97FBuDkruCE7gUTiPPjrlgqcZFAlBP6itCkSmggasfKQh3jxH704GkDHE nfnD93JA1fyvGJz+ZbgFZQE3NW+hLZhaHxTmmhXsN+ZJ6tv155cRrMn7cfZT+W+baaOI K+vP1d2ECgNMNg1DrusS3csufi1w+A84jZYiNLr+0T2N4lXi5/076cFRvzXGrIiWCkvg ln1Snkz9nYUTGAvGoxxmJFA85AppyKqMntVmeP3BrYGEZGo+Z2Bfb5OK1AEXdKf67Dji r9xpbwjcEynyu/p1UfeHwOlk6RFz3LgP7bkN93ZKlO5dphK3oxt1gUDf2xId3rKn6+/t rTag== 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=rFaSbuczchhLDZy5IY7CfcdpB7jHvLBT1t633LMuncw=; b=nK+9cgL26kQimmvFNllwyVDGPUoq33Xryz5p/PfrS0pLw3d+vtiKWRjmrdwKuWK8dp YBal0mmSf/8x/KpTtvhA734Sjh+OETtrxQIVMPD85sY7c7Ke69PfNB8yzgCcoRQ32wI3 hEw/41gOjNZM2PhAOBttQ9lMqKEoaANA/H1Bp/wvjRqHRX8xRsPp0X6DGWHw1kpimriA C3pgpGXgO6VW2puj8LjNgARDC6Ds/k8gHa2YeOyDa0EoXc0uo9i4LY46IITM9E8nNzFT ggCdmhUoD5FZfb4B+gXkDqs3fQBmjEtiKJcgxmDm9teP2k8nK44uSACMSO4Py/mc5CfE Txzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nubkUMFU; 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 p4si7994197jam.67.2021.08.27.15.30.57; Fri, 27 Aug 2021 15:31:08 -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=nubkUMFU; 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 S232094AbhH0Wad (ORCPT + 99 others); Fri, 27 Aug 2021 18:30:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232023AbhH0Wac (ORCPT ); Fri, 27 Aug 2021 18:30:32 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CDF9C061796 for ; Fri, 27 Aug 2021 15:29:43 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id m18so3210469lfl.10 for ; Fri, 27 Aug 2021 15:29:43 -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=rFaSbuczchhLDZy5IY7CfcdpB7jHvLBT1t633LMuncw=; b=nubkUMFUVkgLxbDco9G/dSh/5gNYK+UmcBJkqiQ1Pwn2Lq2j4Ghj/IxwiVMOnG6fcz SLZLmU/ldK7b2wdBPVZgC8eYngHHpU5ciHMUPtr9br7uMvnf1oTUggd2LoDqWiuwx6W6 0+6VLbcRUiocf66sK8aGIDOOaYOADHY1UO37LXTb8RlD15+QSDXAyqFU/FEWidfsnes6 kfeVg2Qzg11qyOUWTskLNCrlletWXtrX4JO5FlMN6QqjI2pIv2MxBhNmfeNKm494jtoJ Sxw0UWRaAbAJnR9xImqNtMEyHhbRf1RW3LIIggbpOwBLfkKd+KmDIfCqh50tsdMO4FMq maQQ== 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=rFaSbuczchhLDZy5IY7CfcdpB7jHvLBT1t633LMuncw=; b=b97PmjFsDLO28KeMmEq4X5/1YRIpG55Z/yE7MWGEcxdGUMh5cf8OBXAPhbWSPFMFob bC6dzrcHd2lh4VUlcKuUeD/rrc76V7nf+CH4pPJ9AGy++P8x57d2z+LAjMZhSMq2dXN1 mULUusUnQXoqEkzApOVDx+zSsFrQBgCSOaArR4GekTk1mW0GCdQrtQEL+nOxrgFkkOFo OzFw0DMrlHw8KTLRw2WBY1CfvImXs7Ami3MwFEOPQlK5P5btyqfniOtWP+6fUgaUSNN8 KR3H/u47aK6zKhnDJLcrEudQAVD3pP8ZqfOVvTJykD6aY8YmbHFLYjjBmtkFSpATKrK3 a4Ew== X-Gm-Message-State: AOAM532plu5DN1/4OQEDOQCH1tdjMhxhpxHAuEyR4GXoRaGJIIrka41h NdsgJNiXHzPJgz4ldD/MOSGHMqKyHb8wrB5MRTJ/yA== X-Received: by 2002:a05:6512:132a:: with SMTP id x42mr8177132lfu.291.1630103381632; Fri, 27 Aug 2021 15:29:41 -0700 (PDT) MIME-Version: 1.0 References: <20210823112204.243255-1-aardelean@deviqon.com> <20210823112204.243255-3-aardelean@deviqon.com> In-Reply-To: <20210823112204.243255-3-aardelean@deviqon.com> From: Linus Walleij Date: Sat, 28 Aug 2021 00:29:30 +0200 Message-ID: Subject: Re: [PATCH v3 2/5] iio: st_sensors: remove st_sensors_deallocate_trigger() function 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: > This change converts the st_sensors_allocate_trigger() to use > device-managed functions. > > The parent device of the IIO device object is used. This is based on the > assumption that all other devm_ calls in the ST sensors use this reference. > > That makes the st_sensors_deallocate_trigger() function un-needed, so it > can be removed. > > Reviewed-by: Andy Shevchenko > Signed-off-by: Alexandru Ardelean Nice! Reviewed-by: Linus Walleij Yours, Linus Walleij