linux/drivers/staging/iio/addac
Lars-Peter Clausen 94386ab0b4 staging:iio: Remove redundant spi driver bus initialization
In ancient times it was necessary to manually initialize the bus field of an
spi_driver to spi_bus_type. These days this is done in spi_register_driver() so
we can drop the manual assignment.

The patch was generated using the following coccinelle semantic patch:
// <smpl>
@@
identifier _driver;
@@
 struct spi_driver _driver = {
 	.driver = {
-		.bus = &spi_bus_type,
 	},
 };
// </smpl>

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-12-08 11:33:19 -08:00
..
Kconfig iio: Spell fix - consistent use of Converter - no functional changes 2011-10-19 13:55:31 -07:00
Makefile staging: iio: new ADT7316/7/8 and ADT7516/7/9 driver 2010-11-09 15:46:34 -08:00
adt7316-i2c.c Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging 2011-10-26 15:39:02 +02:00
adt7316-spi.c staging:iio: Remove redundant spi driver bus initialization 2011-12-08 11:33:19 -08:00
adt7316.c staging:iio: header reorganization 2011-11-26 16:35:04 -08:00
adt7316.h staging: iio: new ADT7316/7/8 and ADT7516/7/9 driver 2010-11-09 15:46:34 -08:00