regulator: max8952: Separate constraints from platform data struct
This patch modifies platform data structure of max8952 driver to use pointer to regulator_init_data struct instead of embedding it. This is a prerequisite for adding Device Tree support for the driver. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
@@ -128,7 +128,7 @@ struct max8952_platform_data {
|
||||
u8 sync_freq;
|
||||
u8 ramp_speed;
|
||||
|
||||
struct regulator_init_data reg_data;
|
||||
struct regulator_init_data *reg_data;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user