Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9b6f8c4 authored by Eduardo Valentin's avatar Eduardo Valentin Committed by Greg Kroah-Hartman
Browse files

staging: omap-thermal: document omap_bandgap_build function



Document function to build omap_bandgap structure

Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 094b8aca
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -875,6 +875,15 @@ static int omap_bandgap_talert_init(struct omap_bandgap *bg_ptr,
	return 0;
	return 0;
}
}


/**
 * omap_bandgap_build() - parse DT and setup a struct omap_bandgap
 * @bg_ptr: pointer to struct omap_bandgap
 * @pdev: pointer to device struct platform_device
 *
 * Used to read the device tree properties accordingly to the bandgap
 * matching version. Based on bandgap version and its capabilities it
 * will build a struct omap_bandgap out of the required DT entries.
 */
static const struct of_device_id of_omap_bandgap_match[];
static const struct of_device_id of_omap_bandgap_match[];
static struct omap_bandgap *omap_bandgap_build(struct platform_device *pdev)
static struct omap_bandgap *omap_bandgap_build(struct platform_device *pdev)
{
{