Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1773061pxb; Mon, 23 Aug 2021 04:24:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiDhT2IiNLVShFzI3JkX6QAPe6tgN5Hlt24zevzXkIMem8hSPu+7MjHdVc7whEaMPqBNND X-Received: by 2002:aa7:ca4b:: with SMTP id j11mr10342460edt.342.1629717858782; Mon, 23 Aug 2021 04:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629717858; cv=none; d=google.com; s=arc-20160816; b=cKrSUhcbLeAeqcBCvE8JlX6DY1huIVyXpyIeL4RAKBt8kvQQj/vOK0aROHkT87GDCg jETOo/M+xVtx5nPrNwSHtn+e6TDWpCtsRWGKs1leuK/03I4omZpSwVB9H8DfRxUfdi6k 9l7V4E5/Zz8Ilru7kLWI/LJ727G167VTlHPwv617ica2NzvyNmYkKqyqg5FTJVj6kcjF FnRLd1OFUa1lKx84Zo2MjxrXGbppeTypvZ/ID4D3JuLy0PRQLqNxx+fB7MtvzL5vPXgZ AsYLwAhr5Uo0pGbt6g4Uc5HUJMVGhpNVPet4ZIEgnWqGORgFnxPLawjP30GGzjxtUgkH lzyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=8ogj0NVywnjlLLKG1/1qOFRC5dRW1kNgnUReqK85wfg=; b=R28ED4a5MrXIz8kFbaJLzz1X2z+Wx62JB0p+9gKylPo1Kbc15ei+PliKVxjRFnPmKw 3QTacqAxAWVdOKnp/CCMCxM0p9cF85yFs1UK8c0djtDq+vJWPhzl1plw5Pkc8xTxMYSJ DMwTEcCVKTFF7rGb0qGZaEa08IPgx7IeCkmbMjNoZUZ56fJStkDYXuqJpvxnBsdM/yFI 2THAXVes/nBMDnMkfLWlocdk2AR2NOjxsjGug4lvfTrxk24fJ3Z1ZEAy5OVmI5O/qK1e PHeQnvmuqOQnDv4bFLX/h6AKWojIqfpGg3Ec2N9baWAJ8csoUJhFfBf0Ide+NV6mAoHS xoUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deviqon.com header.s=google header.b=iN0rYLlA; 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=deviqon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si14315687ejq.421.2021.08.23.04.23.55; Mon, 23 Aug 2021 04:24:18 -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=@deviqon.com header.s=google header.b=iN0rYLlA; 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=deviqon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235259AbhHWLXT (ORCPT + 99 others); Mon, 23 Aug 2021 07:23:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235077AbhHWLXS (ORCPT ); Mon, 23 Aug 2021 07:23:18 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D3D7C061575 for ; Mon, 23 Aug 2021 04:22:35 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id w5so36259431ejq.2 for ; Mon, 23 Aug 2021 04:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=deviqon.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8ogj0NVywnjlLLKG1/1qOFRC5dRW1kNgnUReqK85wfg=; b=iN0rYLlArwbPjzfMxoJzqhhxJb5WIc8HpucPW+PCKIm/ysh8CnZmDuqWVafdl2GQzc gY/i47lP+Z2pdm16aC07i3R2mzGX+FVVKM1YMZpn6oy+YH03w3CofbEsCyIvjuhtbIaG Xj2xrWZNjRe5kxYwqsE6AYl9WXT/8ji5jn234l81NAOhkWuqekFywzs2humjVpg9Hrvm rJhKyrrEH349JiqjXnLRp5QILd2lfR0ges9PmAY7O7Qr+gz9jzziIcepYz/8FgXRkrlS LHXKPEs3ST1Qy0VUuMHYsTuJKCOPUuw5YFcWAOc3QeQynYssq11ftdpvUNXbizG7iXyn lWTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8ogj0NVywnjlLLKG1/1qOFRC5dRW1kNgnUReqK85wfg=; b=M54q5bDmNKXY0sEBHG00zJEjqSb+/EM/BPv9RQ5NMQL9FvPHNZYNJZLXpuSyFFYe4E KnIQx7HsHaaYy9NrHXm03U/sEz1MvJMRhGkKlC+balBMH6hOoJFuq93MpdMISt2wN+99 FwsjN30b2f9unYNf2XnyEjhevRrs06OVCpX25m1lSwhDudFh6RAxOA1tT9gy9Ywpbrom 97faCvJJyZU7nCm1XHbetsnj6yIrcDlKEJt+LDUKLWhIBFZLc/HwBFoRPQRQUC0mSmsg zpfFjCTgHsUDHrcfVTvAUudyro47BzxyEIQBfEMZepCT4llZvb47Z0KCcl1wOgr5Xdwz PQuQ== X-Gm-Message-State: AOAM531l4FiphBUae2D4eOGU+ki25NzfVfnCeniJrzNmGfhpQDSiyNQt pQlDROPmGKk2w9KZGhWR8vOisg== X-Received: by 2002:a17:906:7847:: with SMTP id p7mr27314091ejm.335.1629717754090; Mon, 23 Aug 2021 04:22:34 -0700 (PDT) Received: from neptune.. ([5.2.193.191]) by smtp.gmail.com with ESMTPSA id d22sm7382212ejj.47.2021.08.23.04.22.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Aug 2021 04:22:33 -0700 (PDT) From: Alexandru Ardelean To: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: denis.ciocca@st.com, jic23@kernel.org, linus.walleij@linaro.org, lee.jones@linaro.org, andy.shevchenko@gmail.com, Alexandru Ardelean Subject: [PATCH v3 0/5] iio: st_sensors: convert probe functions to full devm Date: Mon, 23 Aug 2021 14:21:59 +0300 Message-Id: <20210823112204.243255-1-aardelean@deviqon.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changelog v2 - v3: * https://lore.kernel.org/linux-iio/20210816082836.67511-1-aardelean@deviqon.com/ * Fixed a build warning - When debugging is disabled dev_dbg() ops become a noop and this causes a warning - Reported-by: kernel test robot - https://lore.kernel.org/linux-iio/202108180707.05EmDSHt-lkp@intel.com/ * added tag 'Reviewed-by: Andy Shevchenko ' to series * added tag 'Reviewed-by: Linus Walleij ' to patch 'iio: st_sensors: disable regulators after device unregistration' Changelog v1 - v2: * https://lore.kernel.org/linux-iio/20210726071404.14529-1-aardelean@deviqon.com/ * added patch 'iio: st_sensors: disable regulators after device unregistration' - splits the regulator disable fix in a separate patch Alexandru Ardelean (5): iio: st_sensors: disable regulators after device unregistration iio: st_sensors: remove st_sensors_deallocate_trigger() function iio: st_sensors: remove st_sensors_power_disable() function iio: st_sensors: remove all driver remove functions iio: st_sensors: remove reference to parent device object on st_sensor_data drivers/iio/accel/st_accel_core.c | 31 ++--------- drivers/iio/accel/st_accel_i2c.c | 23 +------- drivers/iio/accel/st_accel_spi.c | 23 +------- .../iio/common/st_sensors/st_sensors_core.c | 34 ++++++------ .../iio/common/st_sensors/st_sensors_i2c.c | 1 - .../iio/common/st_sensors/st_sensors_spi.c | 1 - .../common/st_sensors/st_sensors_trigger.c | 53 +++++++------------ drivers/iio/gyro/st_gyro_core.c | 27 ++-------- drivers/iio/gyro/st_gyro_i2c.c | 23 +------- drivers/iio/gyro/st_gyro_spi.c | 23 +------- drivers/iio/imu/st_lsm9ds0/st_lsm9ds0.h | 1 - drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_core.c | 17 +----- drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c | 6 --- drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_spi.c | 6 --- drivers/iio/magnetometer/st_magn_core.c | 29 ++-------- drivers/iio/magnetometer/st_magn_i2c.c | 23 +------- drivers/iio/magnetometer/st_magn_spi.c | 23 +------- drivers/iio/pressure/st_pressure_core.c | 27 ++-------- drivers/iio/pressure/st_pressure_i2c.c | 23 +------- drivers/iio/pressure/st_pressure_spi.c | 23 +------- include/linux/iio/common/st_sensors.h | 13 ----- 21 files changed, 59 insertions(+), 371 deletions(-) -- 2.31.1