mirror of
https://github.com/commaai/agnos-kernel-sdm845.git
synced 2026-06-15 14:54:54 +08:00
This is snapshot of the spm_regulator driver as of msm-4.4
'commit 26efcc23eb82 ("regulator: spm: check min/max voltages
against HW configuration")'.
Also replace the __invoke_psci_fn_smc wrapper with arm_smccc_smc as
__invoke_psci_fn_smc is no longer available.
Change-Id: Ia6ded6dc21ecff2114ddd20e26706d9196239956
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
26 lines
801 B
C
26 lines
801 B
C
/* Copyright (c) 2013-2014, The Linux Foundation. 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 _LINUX_REGULATOR_SPM_H
|
|
#define _LINUX_REGULATOR_SPM_H
|
|
|
|
#include <linux/err.h>
|
|
#include <linux/init.h>
|
|
|
|
#ifdef CONFIG_REGULATOR_SPM
|
|
int __init spm_regulator_init(void);
|
|
#else
|
|
static inline int __init spm_regulator_init(void) { return -ENODEV; }
|
|
#endif
|
|
|
|
#endif
|