]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
regulator: bcm590xx: Store regulator descriptions in table
authorArtur Weber <aweber.kernel@gmail.com>
Thu, 15 May 2025 14:16:33 +0000 (16:16 +0200)
committerLee Jones <lee@kernel.org>
Thu, 22 May 2025 09:57:26 +0000 (10:57 +0100)
commit75dc12b4450269821fca4c8634f5185d28cf2117
tree5cadfa3fda1a71b0e2b0a1117aac73fe6529af56
parent37512643e1f889549e4f9632d6bccef6804cb776
regulator: bcm590xx: Store regulator descriptions in table

Instead of filling in the regulator description programatically,
store the data in a struct. This will make it a bit nicer to
introduce support for other BCM590xx chips besides the BCM59056.

To do this, add a new struct type, bcm590xx_reg_data, to store
all of the necessary information. Drop the old IS_LDO, IS_GPLDO...
macros in favor of the "type" field in this struct. Adapt the
old bcm590xx_reg struct to the new types.

Signed-off-by: Artur Weber <aweber.kernel@gmail.com>
Reviewed-by: Stanislav Jakubek <stano.jakubek@gmail.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20250515-bcm59054-v9-6-14ba0ea2ea5b@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/regulator/bcm590xx-regulator.c
include/linux/mfd/bcm590xx.h