Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp131255pxb; Mon, 16 Aug 2021 01:31:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEweD/Q3Tq9VRRCZckQrObY+3CnNzaGdF9f0SJ88fPqlXSwpXty9PZ6o7Y55VbHUiOV2bD X-Received: by 2002:a17:906:268b:: with SMTP id t11mr14726342ejc.397.1629102710846; Mon, 16 Aug 2021 01:31:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629102710; cv=none; d=google.com; s=arc-20160816; b=o/nXNY1haQB0HN9sOjtiJ/i23AG6J3y0+ZBc9j0LhfiyHzBbKSjhz82TkP+RFPe35H GqbNgiNb3gpxf6wWxoKpNKsPpYAHKWTJmJFNgFc/ZD9uO95VPVjYpVs9bTIQ/2LgijFt PGXNIuHwGhlJtQDGZOqJw8mQKAKReEEgW23LBs8tG6LyjuXzou76uLKGBTFQ3jwWhyp8 XXhWirHuY0CFKpRlxOYoMYzqbeJwAmz0fYyFDbdI6Io3FHb1F5QVgFGcZB6fwC/vrmqf y52cSh3TYdy2MKUOydYanD+RnOVXNxQ4GyO0kzyz4I3jQwYEdP37a8vnzY+CCZNLXB7I LMOw== 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=sguei1c/h61zjHr2lg83Dxlja5iaCKAVm3XBX1DjStw=; b=kcD60YAL0XyHBNbb/0Ye9svMFgnB+TtVF9B75Mua5je0yFJ5U1/FT0288qiG/1CRX1 WOShzBnprjkWnt09Rqbv9btaqVAAvIvINZhxrel9qBzgS9LEim+f5wUyQUk9CCsnXtQ2 Zgv/8LCNn/8472YR3Qwb4dVUP/KrZM3+6H9sc6j80uz+mQGxnB7MjvD86QvlnViXuXOQ cFSoZtLyyrb7ZFPECUSCbFTFrvO0PLAzohNfpVh6NAc56hafTBfcY3gmyiwqYLVVU+6a DApU6YCxEL0q5B3blqD/Ww6e2R1n1ELrfSFJkym0HUqvX8GW0r4PVcTHFR7NoHzRyQtX C44Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deviqon.com header.s=google header.b=dHn+G6xx; 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 q14si9493211edw.109.2021.08.16.01.31.28; Mon, 16 Aug 2021 01:31:50 -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=dHn+G6xx; 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 S234618AbhHPIan (ORCPT + 99 others); Mon, 16 Aug 2021 04:30:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231716AbhHPIam (ORCPT ); Mon, 16 Aug 2021 04:30:42 -0400 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60BF3C061764 for ; Mon, 16 Aug 2021 01:30:11 -0700 (PDT) Received: by mail-ed1-x543.google.com with SMTP id r19so21826675eds.13 for ; Mon, 16 Aug 2021 01:30:11 -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=sguei1c/h61zjHr2lg83Dxlja5iaCKAVm3XBX1DjStw=; b=dHn+G6xxvhjTJifDvs/b0ZOJ29t0Kr/9D85CGF/SuaJgqAHCDdnvGGLLBwZqwvB+ee 77CIv07LyQt2yaZQlx26MsSr/YTmh8XODzLSCWWi6+dkr1um5xqFH9S+te3+J1BKFxBh FQ/4+BpZZRykTOSxKELdqn4Pgq4wUH7HmOO15Ru1fxg93xVqlvttTfT846uOnVx39ssK bvXLKsK2rSLOKoS2JRSZDfNqL1HePDtzx5vgy0PoLtFD5illQIQf0utm2jSuxjemQYfG qlwSnhcmV8ovtTjR+EIKrauz25czwdhf0dzpMmEc5lE+FdyqGskXhjVBk+CxvybuYGn+ eUHw== 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=sguei1c/h61zjHr2lg83Dxlja5iaCKAVm3XBX1DjStw=; b=Dv4jRlY/Kkoq3Cu6QKB440VY7+Lmjm2ETzjogxmLX8vdt/77fKCt8bp2HJrqv9LLR9 BT6yoEpFkC64BCBPdtlpt4irxiUYfh0Q0eKFLCi8Cbez6rXbZRcngA1XaSauHk4s0Sqt TpuzVoNPrcsLondk9tOvFo6Mp2ZS1NfPTCAhwQuW2573cHcgQ0nXwPVfo3HZhcizZ8q5 HfsI/Zhvaam/TEKuAMaShPauujkbSou09xbWkN2Amtc0+SCuNquJ3667lrebQXRMvCOj WuiE5Xj6I1T2ZnSaDAqVXXh33/YWnEUCuEdlGrkThSsVoOo4z7e9qiMdFfhhVWT3KjOy kK/A== X-Gm-Message-State: AOAM533lvDPeSL1LOkMsQoneBgTNkLVc+h97NJSE51UE0q+WlDgil6G3 k3h6MZmwlGKt9BSRrMn2yyk7Yw== X-Received: by 2002:aa7:c585:: with SMTP id g5mr18704540edq.340.1629102610043; Mon, 16 Aug 2021 01:30:10 -0700 (PDT) Received: from neptune.. ([5.2.193.191]) by smtp.gmail.com with ESMTPSA id q30sm4516878edi.84.2021.08.16.01.30.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Aug 2021 01:30:09 -0700 (PDT) From: Alexandru Ardelean To: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: denis.ciocca@st.com, jic23@kernel.org, Alexandru Ardelean Subject: [PATCH v2 0/5] iio: st_sensors: convert probe functions to full devm Date: Mon, 16 Aug 2021 11:28:31 +0300 Message-Id: <20210816082836.67511-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 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 | 32 +++-------- 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, 60 insertions(+), 371 deletions(-) -- 2.31.1