mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
![Axel Lin](/assets/img/avatar_default.png)
operating_point is not used since the initial commit of db8500-prcmu driver, remove it. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
61 lines
1.4 KiB
C
61 lines
1.4 KiB
C
/*
|
|
* Copyright (C) ST-Ericsson SA 2010
|
|
*
|
|
* Author: Bengt Jonsson <bengt.jonsson@stericsson.com> for ST-Ericsson,
|
|
* Jonas Aaberg <jonas.aberg@stericsson.com> for ST-Ericsson
|
|
*
|
|
* License Terms: GNU General Public License v2
|
|
*
|
|
*/
|
|
|
|
#ifndef DBX500_REGULATOR_H
|
|
#define DBX500_REGULATOR_H
|
|
|
|
#include <linux/platform_device.h>
|
|
|
|
/**
|
|
* struct dbx500_regulator_info - dbx500 regulator information
|
|
* @dev: device pointer
|
|
* @desc: regulator description
|
|
* @rdev: regulator device pointer
|
|
* @is_enabled: status of the regulator
|
|
* @epod_id: id for EPOD (power domain)
|
|
* @is_ramret: RAM retention switch for EPOD (power domain)
|
|
*
|
|
*/
|
|
struct dbx500_regulator_info {
|
|
struct device *dev;
|
|
struct regulator_desc desc;
|
|
struct regulator_dev *rdev;
|
|
bool is_enabled;
|
|
u16 epod_id;
|
|
bool is_ramret;
|
|
bool exclude_from_power_state;
|
|
};
|
|
|
|
void power_state_active_enable(void);
|
|
int power_state_active_disable(void);
|
|
|
|
|
|
#ifdef CONFIG_REGULATOR_DEBUG
|
|
int ux500_regulator_debug_init(struct platform_device *pdev,
|
|
struct dbx500_regulator_info *regulator_info,
|
|
int num_regulators);
|
|
|
|
int ux500_regulator_debug_exit(void);
|
|
#else
|
|
|
|
static inline int ux500_regulator_debug_init(struct platform_device *pdev,
|
|
struct dbx500_regulator_info *regulator_info,
|
|
int num_regulators)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int ux500_regulator_debug_exit(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
#endif
|
|
#endif
|