Skip to content

Commit 2cbd541

Browse files
commodojic23
authored andcommitted
iio: remove left-over comments about parent assignment
These were obtained by doing a 'git diff | grep \/\*', in the previous diff to find comments. These needed a bit more manual review, as the semantic patch isn't great for catching these. The result is: /* Initialize Counter device and driver data */ /* Initialize IIO device */ /* Establish that the iio_dev is a child of the spi device */ /* Estabilish that the iio_dev is a child of the spi device */ /* Initiate the Industrial I/O device */ /* Establish that the iio_dev is a child of the device */ - /* establish that the iio_dev is a child of the i2c device */ - /* establish that the iio_dev is a child of the i2c device */ /* This is only used for removal purposes */ /* setup the industrialio driver allocated elements */ /* variant specific configuration */ /* Setup for userspace synchronous on demand sampling. */ st->readback_delay_us += 5; /* Add tWAIT */ - /* Establish that the iio_dev is a child of the i2c device */ /* Establish that the iio_dev is a child of the i2c device */ Out of which, 4 are really left-over comments about parent assignment. 3 of them are removed by the semantic patch, as the comment removed (by spatch) would be for an empty line. Signed-off-by: Alexandru Ardelean <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent d3be832 commit 2cbd541

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

drivers/iio/adc/ad7476.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@ static int ad7476_probe(struct spi_device *spi)
300300

301301
st->spi = spi;
302302

303-
/* Establish that the iio_dev is a child of the spi device */
304303
indio_dev->dev.of_node = spi->dev.of_node;
305304
indio_dev->name = spi_get_device_id(spi)->name;
306305
indio_dev->modes = INDIO_DIRECT_MODE;

drivers/iio/adc/ad7887.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ static int ad7887_probe(struct spi_device *spi)
264264
spi_set_drvdata(spi, indio_dev);
265265
st->spi = spi;
266266

267-
/* Estabilish that the iio_dev is a child of the spi device */
268267
indio_dev->dev.of_node = spi->dev.of_node;
269268
indio_dev->name = spi_get_device_id(spi)->name;
270269
indio_dev->info = &ad7887_info;

drivers/iio/dac/ad5446.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ static int ad5446_probe(struct device *dev, const char *name,
250250
st->reg = reg;
251251
st->dev = dev;
252252

253-
/* Establish that the iio_dev is a child of the device */
254253
indio_dev->name = name;
255254
indio_dev->info = &ad5446_info;
256255
indio_dev->modes = INDIO_DIRECT_MODE;

drivers/staging/iio/cdc/ad7746.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,6 @@ static int ad7746_probe(struct i2c_client *client,
693693
chip->client = client;
694694
chip->capdac_set = -1;
695695

696-
/* Establish that the iio_dev is a child of the i2c device */
697696
indio_dev->name = id->name;
698697
indio_dev->info = &ad7746_info;
699698
indio_dev->channels = ad7746_channels;

0 commit comments

Comments
 (0)