File tree Expand file tree Collapse file tree 2 files changed +2
-52
lines changed
include/linux/platform_data Expand file tree Collapse file tree 2 files changed +2
-52
lines changed Original file line number Diff line number Diff line change 20
20
#include <linux/iio/iio.h>
21
21
#include <linux/iio/sysfs.h>
22
22
23
- #include <linux/platform_data/ad5449.h>
24
-
25
23
#define AD5449_MAX_CHANNELS 2
26
24
#define AD5449_MAX_VREFS 2
27
25
@@ -268,7 +266,6 @@ static const char *ad5449_vref_name(struct ad5449 *st, int n)
268
266
269
267
static int ad5449_spi_probe (struct spi_device * spi )
270
268
{
271
- struct ad5449_platform_data * pdata = spi -> dev .platform_data ;
272
269
const struct spi_device_id * id = spi_get_device_id (spi );
273
270
struct iio_dev * indio_dev ;
274
271
struct ad5449 * st ;
@@ -306,16 +303,8 @@ static int ad5449_spi_probe(struct spi_device *spi)
306
303
mutex_init (& st -> lock );
307
304
308
305
if (st -> chip_info -> has_ctrl ) {
309
- unsigned int ctrl = 0x00 ;
310
- if (pdata ) {
311
- if (pdata -> hardware_clear_to_midscale )
312
- ctrl |= AD5449_CTRL_HCLR_TO_MIDSCALE ;
313
- ctrl |= pdata -> sdo_mode << AD5449_CTRL_SDO_OFFSET ;
314
- st -> has_sdo = pdata -> sdo_mode != AD5449_SDO_DISABLED ;
315
- } else {
316
- st -> has_sdo = true;
317
- }
318
- ad5449_write (indio_dev , AD5449_CMD_CTRL , ctrl );
306
+ st -> has_sdo = true;
307
+ ad5449_write (indio_dev , AD5449_CMD_CTRL , 0x0 );
319
308
}
320
309
321
310
ret = iio_device_register (indio_dev );
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments