]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regulator: move rdev_print helpers to internal.h
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Thu, 3 Jun 2021 05:41:37 +0000 (08:41 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 21 Jun 2021 12:08:39 +0000 (13:08 +0100)
commit157d2230193ae683fcffcc1cd0a2c3aa4479955f
treef5ac0877ce96d72bbf037b300c70a1f6544fe827
parente6c3092d43faf0aa095160cc552f8c05490d0962
regulator: move rdev_print helpers to internal.h

The rdev print helpers are a nice way to print messages related to a
specific regulator device. Move them from core.c to internal.h

As the rdev print helpers use rdev_get_name() export it from core.c. Also
move the declaration from coupler.h to driver.h because the rdev name is
not just a coupled regulator property. I guess the main audience for
rdev_get_name() will be the regulator core and drivers.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Link: https://lore.kernel.org/r/dc7fd70dc31de4d0e820b7646bb78eeb04f80735.1622628333.git.matti.vaittinen@fi.rohmeurope.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
drivers/regulator/internal.h
include/linux/regulator/coupler.h
include/linux/regulator/driver.h