Add support for a dummy driver that has an implementation connected to no real hardware devices. Its purpose is to aid bringup scenarios by providing clients a regulator interface that they expect. This driver shouldn't be enabled if a real device implementation for a particular platform already exists. Change-Id: Ib83027b4e599ebbc3cb153b2f346bb03495bb746 Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
/* Copyright (c) 2012, Code Aurora Forum. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef __STUB_REGULATOR_H__
|
|
#define __STUB_REGULATOR_H__
|
|
|
|
#include <linux/regulator/machine.h>
|
|
|
|
#define STUB_REGULATOR_DRIVER_NAME "stub-regulator"
|
|
|
|
/**
|
|
* struct stub_regulator_pdata - stub regulator device data
|
|
* @init_data: regulator constraints
|
|
* @hpm_min_load: minimum load in uA that will result in the regulator
|
|
* being set to high power mode
|
|
* @system_uA: current drawn from regulator not accounted for by any
|
|
* regulator framework consumer
|
|
*/
|
|
struct stub_regulator_pdata {
|
|
struct regulator_init_data init_data;
|
|
int hpm_min_load;
|
|
int system_uA;
|
|
};
|
|
#endif
|