]> rtime.felk.cvut.cz Git - linux-imx.git/commit
PM / AVS: SmartReflex: use omap_sr * for minmax interfaces
authorAndrii Tseglytskyi <andrii.tseglytskyi@ti.com>
Mon, 27 May 2013 11:09:23 +0000 (14:09 +0300)
committerKevin Hilman <khilman@linaro.org>
Mon, 10 Jun 2013 17:46:17 +0000 (10:46 -0700)
commit6c80573415fe47450579d5d8bfab53b304d803ed
tree6134b59340bcbb35665945f42472655557f20d9f
parent3dfc35ffd938abe67f2559db6b517536a207df24
PM / AVS: SmartReflex: use omap_sr * for minmax interfaces

SmartReflex driver interface is natively divided to two parts:

- external SmartReflex interface
- interface between SmartReflex driver and SmartReflex Class

Functions which belong to AVS class interface can use
struct omap_sr* instead of struct voltatedomain*, to provide a
direct connection between SR driver and SR class. This allows
us to optimize and not do additional lookups where none is
required.

sr_configure_minmax() is interface function between SR driver
and SR class. It is typically used by Class driver to
configure MINMAXAVG module inside SmartReflex module.
Now it takes struct omap_sr* as input parameter.

Signed-off-by: Andrii Tseglytskyi <andrii.tseglytskyi@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
drivers/power/avs/smartreflex.c
include/linux/power/smartreflex.h