Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1702524pxb; Fri, 27 Aug 2021 15:38:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8yaZ6hOWyi4NhCCtFj6OVrKWn8+P4PmpE1+Disz+Zc42RRgNb69blbQTTrQdNsTrg1bET X-Received: by 2002:a17:906:909:: with SMTP id i9mr12030298ejd.16.1630103890617; Fri, 27 Aug 2021 15:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630103890; cv=none; d=google.com; s=arc-20160816; b=EA7/s0Mx6jSpmeF+JYgNZcbUuEWwaluwc0KJFsKSnSeE2Z+YccL1t4CV327knXY/mS NswPl/daKbf6ES1BiIdYmNWODhMDKVKDeH4WXKQojvVWXdKwSpf6vOdr0XGpZXu+dGus 8EO2NO2OAYXCn65HdNYHwiFzF6Iruc9NmviX7wnewXf7mvPIWYkl0jWumhZOWXors4yR d3f3VdX47h1hZIMNMPhyy9LAg0KHpol+F2UQPZSjNdBOsgX3PVSYVYxFuEbXoEb833eY qhBm+x3lOBd/ob5wUy9wWHCZVVmf9UGYlF0G82GdPbSAP7k7S4OxLgCwX42io3f42f/d SKVA== 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=4ywYhHM2zklC75nxCrBvwq7g6YJQFFGRNqncuhmwCEI=; b=V21PF/pLw9IMytAhmOtgw9h1E0Nm63tBGltIR0wJbCrdaNdTyz8+rNOF1Q3hwTj4It Pp2pT5+Yj8mhZNQdZ7vQwA8dwynk9V+8SJ+TPpyOnJtov6xWrcxDGhuuLX/S6skMOETK m6SELfRW7jpEXP3MiQwBOSUp2qFiwTdvNL76IzeIdTIjf1LkhIh4INbcPpw7ek9qrOR1 zPCYlSiQdNK+vPXvh6gRUO/KR9A7ymGWvsqFQcVBHom5LJd4INBprutejUvfWRzrjQgM f6yQGFYlEEaR8SyluXS/McW/AeZP90uhlUEsGeyDZqbzjcgoquL+oGMZPuYZtZv1dmgN Ortg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dKrJ018I; 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 b1si7196221edv.347.2021.08.27.15.37.45; Fri, 27 Aug 2021 15:38:10 -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=dKrJ018I; 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 S232135AbhH0WeY (ORCPT + 99 others); Fri, 27 Aug 2021 18:34:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232126AbhH0WeY (ORCPT ); Fri, 27 Aug 2021 18:34:24 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49F6DC0613D9 for ; Fri, 27 Aug 2021 15:33:34 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id l2so9285952lfp.2 for ; Fri, 27 Aug 2021 15:33:34 -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=4ywYhHM2zklC75nxCrBvwq7g6YJQFFGRNqncuhmwCEI=; b=dKrJ018IcTaQGPFXKX1augr8dB5GqpdOS5gKUA7c+ulUYCWpwqU0+rrfn6H3OxqD94 OJ8QtQXJKZZQAO3+q5ydhL2luNjr3O+Iw/+vXgNlxagX/iijEYkb1MfVoQK9EFLUtZOc fo6sDBncrJR135w0GKfVo1Iw1S9QUmr1TxEAgYwUKrYqQ//ZN/MKhT1XW15pbf7tSO2p DXvf9mYFPwLjrmKAWJUNP9yA824mvY7rnCXXa+E25p7m6qEMhF0azl6D1RzqURcB5ISy KascdGYWQFht1pkgXTJ5JAQzBahatKzmO8TAwTT8y2mRnu54DUxeln5SKbJ/dQNVbHWF 4XUg== 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=4ywYhHM2zklC75nxCrBvwq7g6YJQFFGRNqncuhmwCEI=; b=AzsaxH2PWmn36wHYLVSL63kIUJafIiMDzb0OQtqLi1uJQX7IuLYZ2oBddq1EUhLkPf 9Jy8KnKKdBo82KQCrx8N9V/x/gcSLPMZWiEPyRZiVMbpwOmqmZiTIJLDRh8U450BpNz4 XvKfY8VTdhpuQuAYPiKD1G+6LLWv6r/GCY/XFjQ9C9+kWzjgTB5xkTqAinyu42QAR3AF KrLX4n94NKu3s59MTdiF6w8tPZc0RwAkB86ex9zXXeiv6lKb+IBCPILRUKnOV2SriPL3 bEaw8OHewjXI5T6dlpv8rBgzLMCjdNrrb50JxDMgheaEZUns/SUNd8K/ddP46us7tNXG OjGw== X-Gm-Message-State: AOAM533/r63k1lgkGeUEQvPLINxQ/vWEaRhB3UwJ9p1zr62YDy1s5smE 3bZSIQPMoN7rhRfeG3KUB5PQTAO7rlNOYbCXAdfbUQ== X-Received: by 2002:a05:6512:132a:: with SMTP id x42mr8186336lfu.291.1630103612695; Fri, 27 Aug 2021 15:33:32 -0700 (PDT) MIME-Version: 1.0 References: <20210823112204.243255-1-aardelean@deviqon.com> <20210823112204.243255-5-aardelean@deviqon.com> In-Reply-To: <20210823112204.243255-5-aardelean@deviqon.com> From: Linus Walleij Date: Sat, 28 Aug 2021 00:33:21 +0200 Message-ID: Subject: Re: [PATCH v3 4/5] iio: st_sensors: remove all driver remove functions 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: > At this point all ST driver remove functions do iio_device_unregister(). > This change removes them from them and replaces all iio_device_register() > with devm_iio_device_register(). > > This can be done in a single change relatively easy, since all these remove > functions are define in st_sensors.h. > > Reviewed-by: Andy Shevchenko > Signed-off-by: Alexandru Ardelean Reviewed-by: Linus Walleij Yours, Linus Walleij