ad5398.c (bf61c8840efe60fd8f91446860b63338fb424158) | ad5398.c (dff91d0b721bf8f036c1071a8f16a7effaa87514) |
---|---|
1/* 2 * Voltage and current regulation for AD5398 and AD5821 3 * 4 * Copyright 2010 Analog Devices Inc. 5 * 6 * Enter bugs at http://blackfin.uclinux.org/ 7 * 8 * Licensed under the GPL-2 or later. --- 200 unchanged lines hidden (view full) --- 209 { "ad5821", (kernel_ulong_t)&df_10_4_120 }, 210 { } 211}; 212MODULE_DEVICE_TABLE(i2c, ad5398_id); 213 214static int ad5398_probe(struct i2c_client *client, 215 const struct i2c_device_id *id) 216{ | 1/* 2 * Voltage and current regulation for AD5398 and AD5821 3 * 4 * Copyright 2010 Analog Devices Inc. 5 * 6 * Enter bugs at http://blackfin.uclinux.org/ 7 * 8 * Licensed under the GPL-2 or later. --- 200 unchanged lines hidden (view full) --- 209 { "ad5821", (kernel_ulong_t)&df_10_4_120 }, 210 { } 211}; 212MODULE_DEVICE_TABLE(i2c, ad5398_id); 213 214static int ad5398_probe(struct i2c_client *client, 215 const struct i2c_device_id *id) 216{ |
217 struct regulator_init_data *init_data = client->dev.platform_data; | 217 struct regulator_init_data *init_data = dev_get_platdata(&client->dev); |
218 struct regulator_config config = { }; 219 struct ad5398_chip_info *chip; 220 const struct ad5398_current_data_format *df = 221 (struct ad5398_current_data_format *)id->driver_data; 222 int ret; 223 224 if (!init_data) 225 return -EINVAL; --- 66 unchanged lines hidden --- | 218 struct regulator_config config = { }; 219 struct ad5398_chip_info *chip; 220 const struct ad5398_current_data_format *df = 221 (struct ad5398_current_data_format *)id->driver_data; 222 int ret; 223 224 if (!init_data) 225 return -EINVAL; --- 66 unchanged lines hidden --- |