History

PM / AVS: SmartReflex: use omap_sr * for errgen 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_disable_errgen() and sr_configure_errgen() are interface functions between SR driver and SR class. They are typically used by Class driver to configure error generator module during SmartReflex enable/disable sequence. Now they take struct omap_sr* as input parameter.

Andrii Tseglytskyi committed 13 years ago

Commit 3dfc35f1 parent 33da2823 files · +17 −17Browse files

Showing the changes to include/linux/power (1 of 3 files). Show all

Unified · Split

include/linux/power/smartreflex.h+2−2
@@ -301,8 +301,8 @@ void omap_sr_register_pmic(struct omap_sr_pmic_data *pmic_data); · 300 unmodified lines
301/* Smartreflex driver hooks to be called from Smartreflex class driver */301/* Smartreflex driver hooks to be called from Smartreflex class driver */
302int sr_enable(struct voltagedomain *voltdm, unsigned long volt);302int sr_enable(struct voltagedomain *voltdm, unsigned long volt);
303void sr_disable(struct voltagedomain *voltdm);303void sr_disable(struct voltagedomain *voltdm);
304int sr_configure_errgen(struct voltagedomain *voltdm);304int sr_configure_errgen(struct omap_sr *sr);
305int sr_disable_errgen(struct voltagedomain *voltdm);305int sr_disable_errgen(struct omap_sr *sr);
306int sr_configure_minmax(struct voltagedomain *voltdm);306int sr_configure_minmax(struct voltagedomain *voltdm);
307 307
308/* API to register the smartreflex class driver with the smartreflex driver */308/* API to register the smartreflex class driver with the smartreflex driver */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t