The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH v2 00/12] regulator/core: Trivial cleanups and improvements
Date: Mon, 29 Apr 2024 16:45:27 +0200	[thread overview]
Message-ID: <cover.1714399603.git.mirq-linux@rere.qmqm.pl> (raw)

This is a random set of cleanups, dead code removal and minor
optimizations.  This is a v2 of patchset sent long time ago, extended
with a couple more entries (one including a driver cleanup to enable
further changes). Tested on Tegra3 (ARM) and x86 devices.

v2:
 - added regulator_dev.reg_data cleanup patches
 - added a missing hunk in patch 6
 - removed an extra change from patch 5
 (Note: skipping changelogs in the patches, as the update has no relevant
  material changes there)

Michał Mirosław (12):
  regulator/core: _regulator_get: simplify error returns
  regulator/core: set_consumer_device_supply: remove `has_dev`
  regulator/core: of_get_child_regulator: remove goto
  regulator/core: regulator_bulk_get: remove redundant NULL stores
  regulator/core: regulator_ena_gpio_ctrl: pull in ena_gpio state
    handling
  regulator/core: remove regulator_init callback
  regulator/core: remove regulator_get_init_drvdata()
  regulator/core: set_consumer_device_supply: avoid copying const data
  regulator/tps68470: use rdev_get_drvdata()
  regulator/core: use dev_to_rdev() for device -> regulator_dev cast
  regulator/core: remove regulator_get/set_drvdata
  regulator/core: use rdev->dev.driver_data

 drivers/regulator/core.c               | 180 ++++++++-----------------
 drivers/regulator/tps68470-regulator.c |   4 +-
 include/linux/regulator/consumer.h     |  14 --
 include/linux/regulator/driver.h       |   9 +-
 include/linux/regulator/machine.h      |   7 +-
 5 files changed, 62 insertions(+), 152 deletions(-)

-- 
2.39.2


             reply	other threads:[~2024-04-29 14:50 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-29 14:45 Michał Mirosław [this message]
2024-04-29 14:45 ` [PATCH v2 01/12] regulator/core: _regulator_get: simplify error returns Michał Mirosław
2024-04-29 14:45 ` [PATCH v2 02/12] regulator/core: set_consumer_device_supply: remove `has_dev` Michał Mirosław
2024-04-29 14:45 ` [PATCH v2 04/12] regulator/core: regulator_bulk_get: remove redundant NULL stores Michał Mirosław
2024-04-29 16:01   ` Mark Brown
2024-05-01 10:55     ` Michał Mirosław
2024-04-29 14:45 ` [PATCH v2 03/12] regulator/core: of_get_child_regulator: remove goto Michał Mirosław
2024-04-29 14:45 ` [PATCH v2 06/12] regulator/core: remove regulator_init callback Michał Mirosław
2024-04-29 14:45 ` [PATCH v2 05/12] regulator/core: regulator_ena_gpio_ctrl: pull in ena_gpio state handling Michał Mirosław
2024-04-29 14:45 ` [PATCH v2 08/12] regulator/core: set_consumer_device_supply: avoid copying const data Michał Mirosław
2024-04-29 14:45 ` [PATCH v2 07/12] regulator/core: remove regulator_get_init_drvdata() Michał Mirosław
2024-04-29 14:45 ` [PATCH v2 09/12] regulator/tps68470: use rdev_get_drvdata() Michał Mirosław
2024-04-29 14:45 ` [PATCH v2 10/12] regulator/core: use dev_to_rdev() for device -> regulator_dev cast Michał Mirosław
2024-04-29 14:45 ` [PATCH v2 11/12] regulator/core: remove regulator_get/set_drvdata Michał Mirosław
2024-04-29 14:45 ` [PATCH v2 12/12] regulator/core: use rdev->dev.driver_data Michał Mirosław
2024-04-30  2:54   ` kernel test robot
2024-04-30  4:53   ` kernel test robot
2024-05-01 11:11     ` Michał Mirosław

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=cover.1714399603.git.mirq-linux@rere.qmqm.pl \
    --to=mirq-linux@rere.qmqm.pl \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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