]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
regulator: core: Add regulator_is_equal() helper
authorMarek Vasut <marex@denx.de>
Fri, 20 Dec 2019 16:44:49 +0000 (17:44 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 16 Mar 2020 11:27:28 +0000 (12:27 +0100)
commitcc5380c7d106456122bc68f7d194a14c81b6c1d5
tree7d57a4213e2c084bbe5f66c6972bbc2fc952e5d2
parent80c01490d194cb2dae2e896a5ea2a9605e37a231
regulator: core: Add regulator_is_equal() helper

BugLink: https://bugs.launchpad.net/bugs/1867051
commit b059b7e0ec3208ff1e17cff6387d75a9fbab4e02 upstream.

Add regulator_is_equal() helper to compare whether two regulators are
the same. This is useful for checking whether two separate regulators
in a driver are actually the same supply.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Igor Opaniuk <igor.opaniuk@toradex.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Link: https://lore.kernel.org/r/20191220164450.1395038-1-marex@denx.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/regulator/helpers.c
include/linux/regulator/consumer.h