]> git.baikalelectronics.ru Git - kernel.git/commit
Input: remove redundant spi driver bus initialization
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 29 Nov 2011 09:27:58 +0000 (01:27 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 29 Nov 2011 09:51:52 +0000 (01:51 -0800)
commite27a2e55065aa1ea25515f922a1c0f568c899fe1
tree2a118810537697affe071c04b160b68e39e2a48d
parent08ec20010ed4b4e62c6424a10ae274cbc2e12d66
Input: 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_driver_register(),
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>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/adxl34x-spi.c
drivers/input/touchscreen/ad7877.c
drivers/input/touchscreen/ad7879-spi.c
drivers/input/touchscreen/ads7846.c