From: Trevor Gamblin <tgamblin@baylibre.com>
To: "Jonathan Cameron" <jic23@kernel.org>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Dmitry Rokosov" <ddrokosov@sberdevices.ru>,
"Michael Hennerich" <Michael.Hennerich@analog.com>,
"Cosmin Tanislav" <cosmin.tanislav@analog.com>,
"Chen-Yu Tsai" <wens@csie.org>,
"Hans de Goede" <hdegoede@redhat.com>,
"Ray Jui" <rjui@broadcom.com>,
"Scott Branden" <sbranden@broadcom.com>,
"Broadcom internal kernel review list"
<bcm-kernel-feedback-list@broadcom.com>,
"Shawn Guo" <shawnguo@kernel.org>,
"Sascha Hauer" <s.hauer@pengutronix.de>,
"Pengutronix Kernel Team" <kernel@pengutronix.de>,
"Fabio Estevam" <festevam@gmail.com>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Kevin Hilman" <khilman@baylibre.com>,
"Jerome Brunet" <jbrunet@baylibre.com>,
"Martin Blumenstingl" <martin.blumenstingl@googlemail.com>,
"Saravanan Sekar" <sravanhome@gmail.com>,
"Orson Zhai" <orsonzhai@gmail.com>,
"Baolin Wang" <baolin.wang@linux.alibaba.com>,
"Chunyan Zhang" <zhang.lyra@gmail.com>,
"Maxime Coquelin" <mcoquelin.stm32@gmail.com>,
"Alexandre Torgue" <alexandre.torgue@foss.st.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Linus Walleij" <linus.walleij@linaro.org>,
"Jean-Baptiste Maneyrol" <jmaneyrol@invensense.com>,
"Crt Mori" <cmo@melexis.com>
Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev,
linux-amlogic@lists.infradead.org, linux-arm-msm@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
"Trevor Gamblin" <tgamblin@baylibre.com>
Subject: [PATCH v3 00/41] iio: simplify with regmap_set_bits(), regmap_clear_bits()
Date: Mon, 17 Jun 2024 09:49:40 -0400 [thread overview]
Message-ID: <20240617-review-v3-0-88d1338c4cca@baylibre.com> (raw)
Simplify the way regmap is accessed in iio drivers.
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
The series is marked as v3, but the previous two revisions were single
patches. There was also a resend of v1 due to not properly CCing the
mailing lists on the first attempt. Trailers were pulled in from those
where relevant.
Link to v2: https://lore.kernel.org/linux-iio/20240613133927.3851344-1-tgamblin@baylibre.com/
Link to v1: https://lore.kernel.org/linux-iio/20240611165214.4091591-1-tgamblin@baylibre.com/
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
Trevor Gamblin (41):
iio: accel: fxls8962af-core: Make use of regmap_set_bits(), regmap_clear_bits()
iio: accel: kxsd9: Make use of regmap_clear_bits()
iio: accel: msa311: make use of regmap_clear_bits()
iio: adc: ad4130: make use of regmap_clear_bits()
iio: adc: axp20x_adc: make use of regmap_set_bits()
iio: adc: axp288_adc: make use of regmap_set_bits()
iio: adc: bcm_iproc_adc: make use of regmap_clear_bits()
iio: adc: berlin2-adc: make use of regmap_clear_bits(), regmap_set_bits()
iio: adc: cpcap-adc: make use of regmap_clear_bits(), regmap_set_bits()
iio: adc: fsl-imx25-gcq: make use of regmap_clear_bits(), regmap_set_bits()
iio: adc: ina2xx-adc: make use of regmap_clear_bits()
iio: adc: intel_mrfld_adc: make use of regmap_clear_bits()
iio: adc: meson_saradc: make use of regmap_clear_bits(), regmap_set_bits()
iio: adc: mp2629_adc: make use of regmap_clear_bits(), regmap_set_bits()
iio: adc: qcom-spmi-rradc: make use of regmap_clear_bits(), regmap_set_bits()
iio: adc: rn5t618-adc: make use of regmap_set_bits()
iio: adc: sc27xx_adc: make use of regmap_clear_bits(), regmap_set_bits()
iio: adc: stm32-dfsdm-adc: make use of regmap_clear_bits(), regmap_set_bits()
iio: dac: ltc2688: make use of regmap_set_bits()
iio: dac: stm32-dac-core: make use of regmap_set_bits()
iio: gyro: bmg160_core: make use of regmap_clear_bits()
iio: gyro: mpu3050-core: make use of regmap_clear_bits(), regmap_set_bits()
iio: health: afe4403: make use of regmap_clear_bits(), regmap_set_bits()
iio: health: afe4404: make use of regmap_clear_bits(), regmap_set_bits()
iio: health: max30100: make use of regmap_set_bits()
iio: health: max30102: make use of regmap_set_bits()
iio: imu: inv_icm42600: make use of regmap_clear_bits(), regmap_set_bits()
iio: light: adux1020: make use of regmap_clear_bits(), regmap_set_bits()
iio: light: iqs621-als: make use of regmap_clear_bits()
iio: light: isl29018: make use of regmap_clear_bits()
iio: light: st_uvis25_core: make use of regmap_clear_bits()
iio: light: veml6030: make use of regmap_clear_bits()
iio: magnetometer: ak8974: make use of regmap_set_bits()
iio: magnetometer: mmc35240: make use of regmap_set_bits()
iio: pressure: bmp280-core: make use of regmap_clear_bits()
iio: proximity: sx9324: make use of regmap_set_bits()
iio: proximity: sx9360: make use of regmap_set_bits()
iio: proximity: sx9500: make use of regmap_clear_bits(), regmap_set_bits()
iio: proximity: sx_common: make use of regmap_clear_bits(), regmap_set_bits()
iio: temperature: mlx90632: make use of regmap_clear_bits()
iio: trigger: stm32-timer-trigger: make use of regmap_clear_bits(), regmap_set_bits()
drivers/iio/accel/fxls8962af-core.c | 18 ++--
drivers/iio/accel/kxsd9.c | 6 +-
drivers/iio/accel/msa311.c | 8 +-
drivers/iio/adc/ad4130.c | 4 +-
drivers/iio/adc/axp20x_adc.c | 5 +-
drivers/iio/adc/axp288_adc.c | 4 +-
drivers/iio/adc/bcm_iproc_adc.c | 8 +-
drivers/iio/adc/berlin2-adc.c | 24 +++--
drivers/iio/adc/cpcap-adc.c | 46 ++++------
drivers/iio/adc/fsl-imx25-gcq.c | 16 ++--
drivers/iio/adc/ina2xx-adc.c | 3 +-
drivers/iio/adc/intel_mrfld_adc.c | 4 +-
drivers/iio/adc/meson_saradc.c | 101 +++++++++------------
drivers/iio/adc/mp2629_adc.c | 19 ++--
drivers/iio/adc/qcom-spmi-rradc.c | 50 +++++-----
drivers/iio/adc/rn5t618-adc.c | 5 +-
drivers/iio/adc/sc27xx_adc.c | 41 ++++-----
drivers/iio/adc/stm32-dfsdm-adc.c | 29 +++---
drivers/iio/dac/ltc2688.c | 5 +-
drivers/iio/dac/stm32-dac-core.c | 5 +-
drivers/iio/gyro/bmg160_core.c | 4 +-
drivers/iio/gyro/mpu3050-core.c | 33 +++----
drivers/iio/health/afe4403.c | 9 +-
drivers/iio/health/afe4404.c | 9 +-
drivers/iio/health/max30100.c | 5 +-
drivers/iio/health/max30102.c | 5 +-
drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c | 14 ++-
drivers/iio/imu/inv_icm42600/inv_icm42600_core.c | 9 +-
drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c | 4 +-
drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c | 4 +-
drivers/iio/light/adux1020.c | 13 ++-
drivers/iio/light/iqs621-als.c | 4 +-
drivers/iio/light/isl29018.c | 6 +-
drivers/iio/light/st_uvis25_core.c | 4 +-
drivers/iio/light/veml6030.c | 4 +-
drivers/iio/magnetometer/ak8974.c | 11 +--
drivers/iio/magnetometer/mmc35240.c | 8 +-
drivers/iio/pressure/bmp280-core.c | 4 +-
drivers/iio/proximity/sx9324.c | 5 +-
drivers/iio/proximity/sx9360.c | 5 +-
drivers/iio/proximity/sx9500.c | 12 +--
drivers/iio/proximity/sx_common.c | 9 +-
drivers/iio/temperature/mlx90632.c | 4 +-
drivers/iio/trigger/stm32-timer-trigger.c | 34 ++++---
44 files changed, 273 insertions(+), 347 deletions(-)
---
base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
change-id: 20240614-review-7e60d159e75d
Best regards,
--
Trevor Gamblin <tgamblin@baylibre.com>
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
next reply other threads:[~2024-06-17 13:50 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-17 13:49 Trevor Gamblin [this message]
2024-06-17 13:49 ` [PATCH v3 01/41] iio: accel: fxls8962af-core: Make use of " Trevor Gamblin
2024-06-17 13:49 ` [PATCH v3 02/41] iio: accel: kxsd9: Make use of regmap_clear_bits() Trevor Gamblin
2024-06-18 11:09 ` Linus Walleij
2024-06-22 9:43 ` Jonathan Cameron
2024-06-17 13:49 ` [PATCH v3 03/41] iio: accel: msa311: make " Trevor Gamblin
2024-06-17 13:49 ` [PATCH v3 04/41] iio: adc: ad4130: " Trevor Gamblin
2024-06-17 14:42 ` Nuno Sá
2024-06-17 13:49 ` [PATCH v3 05/41] iio: adc: axp20x_adc: make use of regmap_set_bits() Trevor Gamblin
2024-06-17 13:49 ` [PATCH v3 06/41] iio: adc: axp288_adc: " Trevor Gamblin
2024-06-17 13:49 ` [PATCH v3 07/41] iio: adc: bcm_iproc_adc: make use of regmap_clear_bits() Trevor Gamblin
2024-06-17 13:49 ` [PATCH v3 08/41] iio: adc: berlin2-adc: make use of regmap_clear_bits(), regmap_set_bits() Trevor Gamblin
2024-06-17 13:49 ` [PATCH v3 09/41] iio: adc: cpcap-adc: " Trevor Gamblin
2024-06-17 13:49 ` [PATCH v3 10/41] iio: adc: fsl-imx25-gcq: " Trevor Gamblin
2024-06-17 13:49 ` [PATCH v3 11/41] iio: adc: ina2xx-adc: make use of regmap_clear_bits() Trevor Gamblin
2024-06-17 13:49 ` [PATCH v3 12/41] iio: adc: intel_mrfld_adc: " Trevor Gamblin
2024-06-17 13:49 ` [PATCH v3 13/41] iio: adc: meson_saradc: make use of regmap_clear_bits(), regmap_set_bits() Trevor Gamblin
2024-06-20 9:41 ` George Stark
2024-06-17 13:49 ` [PATCH v3 14/41] iio: adc: mp2629_adc: " Trevor Gamblin
2024-06-17 13:49 ` [PATCH v3 15/41] iio: adc: qcom-spmi-rradc: " Trevor Gamblin
2024-06-17 13:49 ` [PATCH v3 16/41] iio: adc: rn5t618-adc: make use of regmap_set_bits() Trevor Gamblin
2024-06-17 13:49 ` [PATCH v3 17/41] iio: adc: sc27xx_adc: make use of regmap_clear_bits(), regmap_set_bits() Trevor Gamblin
2024-06-17 13:49 ` [PATCH v3 18/41] iio: adc: stm32-dfsdm-adc: " Trevor Gamblin
2024-06-17 13:49 ` [PATCH v3 19/41] iio: dac: ltc2688: make use of regmap_set_bits() Trevor Gamblin
2024-06-17 14:43 ` Nuno Sá
2024-06-17 13:50 ` [PATCH v3 20/41] iio: dac: stm32-dac-core: " Trevor Gamblin
2024-06-17 13:50 ` [PATCH v3 21/41] iio: gyro: bmg160_core: make use of regmap_clear_bits() Trevor Gamblin
2024-06-17 13:50 ` [PATCH v3 22/41] iio: gyro: mpu3050-core: make use of regmap_clear_bits(), regmap_set_bits() Trevor Gamblin
2024-06-17 16:13 ` Jonathan Cameron
2024-06-17 13:50 ` [PATCH v3 23/41] iio: health: afe4403: " Trevor Gamblin
2024-06-17 13:50 ` [PATCH v3 24/41] iio: health: afe4404: " Trevor Gamblin
2024-06-17 13:50 ` [PATCH v3 25/41] iio: health: max30100: make use of regmap_set_bits() Trevor Gamblin
2024-06-17 13:50 ` [PATCH v3 26/41] iio: health: max30102: " Trevor Gamblin
2024-06-17 13:50 ` [PATCH v3 27/41] iio: imu: inv_icm42600: make use of regmap_clear_bits(), regmap_set_bits() Trevor Gamblin
2024-06-20 20:13 ` Jean-Baptiste Maneyrol
2024-06-17 13:50 ` [PATCH v3 28/41] iio: light: adux1020: " Trevor Gamblin
2024-06-17 13:50 ` [PATCH v3 29/41] iio: light: iqs621-als: make use of regmap_clear_bits() Trevor Gamblin
2024-06-17 13:50 ` [PATCH v3 30/41] iio: light: isl29018: " Trevor Gamblin
2024-06-17 13:50 ` [PATCH v3 31/41] iio: light: st_uvis25_core: " Trevor Gamblin
2024-06-17 13:50 ` [PATCH v3 32/41] iio: light: veml6030: " Trevor Gamblin
2024-06-17 13:50 ` [PATCH v3 33/41] iio: magnetometer: ak8974: make use of regmap_set_bits() Trevor Gamblin
2024-06-18 11:11 ` Linus Walleij
2024-06-17 13:50 ` [PATCH v3 34/41] iio: magnetometer: mmc35240: " Trevor Gamblin
2024-06-17 13:50 ` [PATCH v3 35/41] iio: pressure: bmp280-core: make use of regmap_clear_bits() Trevor Gamblin
2024-06-17 23:22 ` [PATCH v3 35/41] iio: pressure: bmp280-core: make use of Vasileios Amoiridis
2024-06-18 11:12 ` [PATCH v3 35/41] iio: pressure: bmp280-core: make use of regmap_clear_bits() Linus Walleij
2024-06-17 13:50 ` [PATCH v3 36/41] iio: proximity: sx9324: make use of regmap_set_bits() Trevor Gamblin
2024-06-17 13:50 ` [PATCH v3 37/41] iio: proximity: sx9360: " Trevor Gamblin
2024-06-17 13:50 ` [PATCH v3 38/41] iio: proximity: sx9500: make use of regmap_clear_bits(), regmap_set_bits() Trevor Gamblin
2024-06-17 13:50 ` [PATCH v3 39/41] iio: proximity: sx_common: " Trevor Gamblin
2024-06-17 13:50 ` [PATCH v3 40/41] iio: temperature: mlx90632: make use of regmap_clear_bits() Trevor Gamblin
2024-06-17 13:50 ` [PATCH v3 41/41] iio: trigger: stm32-timer-trigger: make use of regmap_clear_bits(), regmap_set_bits() Trevor Gamblin
2024-06-17 15:17 ` [PATCH v3 00/41] iio: simplify with regmap_set_bits(), regmap_clear_bits() Uwe Kleine-König
2024-06-22 18:07 ` Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240617-review-v3-0-88d1338c4cca@baylibre.com \
--to=tgamblin@baylibre.com \
--cc=Michael.Hennerich@analog.com \
--cc=alexandre.torgue@foss.st.com \
--cc=baolin.wang@linux.alibaba.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=cmo@melexis.com \
--cc=cosmin.tanislav@analog.com \
--cc=ddrokosov@sberdevices.ru \
--cc=festevam@gmail.com \
--cc=hdegoede@redhat.com \
--cc=imx@lists.linux.dev \
--cc=jbrunet@baylibre.com \
--cc=jic23@kernel.org \
--cc=jmaneyrol@invensense.com \
--cc=kernel@pengutronix.de \
--cc=khilman@baylibre.com \
--cc=lars@metafoo.de \
--cc=linus.walleij@linaro.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=martin.blumenstingl@googlemail.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=neil.armstrong@linaro.org \
--cc=nuno.sa@analog.com \
--cc=orsonzhai@gmail.com \
--cc=rjui@broadcom.com \
--cc=s.hauer@pengutronix.de \
--cc=sbranden@broadcom.com \
--cc=shawnguo@kernel.org \
--cc=sravanhome@gmail.com \
--cc=u.kleine-koenig@baylibre.com \
--cc=wens@csie.org \
--cc=zhang.lyra@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®