mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
![Richard Fitzgerald](/assets/img/avatar_default.png)
In preparation for sharing this driver with Madera, move the pdata for the LDO1 regulator out of struct arizona_pdata into a dedicated pdata struct for this driver. As a result the code in arizona_ldo1_of_get_pdata() can be made independent of struct arizona. This patch also updates the definition of struct arizona_pdata and the use of this pdata in mach-crag6410-module.c Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com> Acked-by: Krzysztof Kozlowski <krzk@kernel.org> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
24 lines
532 B
C
24 lines
532 B
C
/*
|
|
* Platform data for Arizona LDO1 regulator
|
|
*
|
|
* Copyright 2017 Cirrus Logic
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef ARIZONA_LDO1_H
|
|
#define ARIZONA_LDO1_H
|
|
|
|
struct regulator_init_data;
|
|
|
|
struct arizona_ldo1_pdata {
|
|
/** GPIO controlling LDOENA, if any */
|
|
int ldoena;
|
|
|
|
/** Regulator configuration for LDO1 */
|
|
const struct regulator_init_data *init_data;
|
|
};
|
|
|
|
#endif
|