max8952.c (27eb2c4b3d3e13f376a359e293c212a2e9407af5) max8952.c (dff91d0b721bf8f036c1071a8f16a7effaa87514)
1/*
2 * max8952.c - Voltage and current regulation for the Maxim 8952
3 *
4 * Copyright (C) 2010 Samsung Electronics
5 * MyungJoo Ham <myungjoo.ham@samsung.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 182 unchanged lines hidden (view full) ---

191 return NULL;
192}
193#endif
194
195static int max8952_pmic_probe(struct i2c_client *client,
196 const struct i2c_device_id *i2c_id)
197{
198 struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
1/*
2 * max8952.c - Voltage and current regulation for the Maxim 8952
3 *
4 * Copyright (C) 2010 Samsung Electronics
5 * MyungJoo Ham <myungjoo.ham@samsung.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 182 unchanged lines hidden (view full) ---

191 return NULL;
192}
193#endif
194
195static int max8952_pmic_probe(struct i2c_client *client,
196 const struct i2c_device_id *i2c_id)
197{
198 struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
199 struct max8952_platform_data *pdata = client->dev.platform_data;
199 struct max8952_platform_data *pdata = dev_get_platdata(&client->dev);
200 struct regulator_config config = { };
201 struct max8952_data *max8952;
202
203 int ret = 0, err = 0;
204
205 if (client->dev.of_node)
206 pdata = max8952_parse_dt(&client->dev);
207

--- 156 unchanged lines hidden ---
200 struct regulator_config config = { };
201 struct max8952_data *max8952;
202
203 int ret = 0, err = 0;
204
205 if (client->dev.of_node)
206 pdata = max8952_parse_dt(&client->dev);
207

--- 156 unchanged lines hidden ---