]> git.karo-electronics.de Git - linux-beck.git/commit
PM / AVS: SmartReflex: use omap_sr * for enable/disable interface
authorAndrii Tseglytskyi <andrii.tseglytskyi@ti.com>
Mon, 27 May 2013 11:09:24 +0000 (14:09 +0300)
committerKevin Hilman <khilman@linaro.org>
Mon, 10 Jun 2013 17:46:18 +0000 (10:46 -0700)
commit299066bb376ef7720cc3d8de95d5b967c5446863
tree2c8fccdbe53d050a71ede615271a566d75e7fc67
parent6c80573415fe47450579d5d8bfab53b304d803ed
PM / AVS: SmartReflex: use omap_sr * for enable/disable interface

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_enable() and sr_disable() are interface functions between
SR driver and SR class. They are typically used by Class driver
to enable/disable SmartReflex hardware module.
Now they take 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>
arch/arm/mach-omap2/smartreflex-class3.c
drivers/power/avs/smartreflex.c
include/linux/power/smartreflex.h