regulator: arizona-micsupp: Move pdata into a separate structure
In preparation for sharing this driver with Madera, move the pdata for the micsupp regulator out of struct arizona_pdata into a dedicated pdata struct for this driver. As a result the code in arizona_micsupp_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: Lee Jones <lee.jones@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
7e6425968b
commit
22161f3eb6
4 changed files with 35 additions and 11 deletions
21
include/linux/regulator/arizona-micsupp.h
Normal file
21
include/linux/regulator/arizona-micsupp.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* Platform data for Arizona micsupp 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_MICSUPP_H
|
||||
#define ARIZONA_MICSUPP_H
|
||||
|
||||
struct regulator_init_data;
|
||||
|
||||
struct arizona_micsupp_pdata {
|
||||
/** Regulator configuration for micsupp */
|
||||
const struct regulator_init_data *init_data;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue