]> git.baikalelectronics.ru Git - kernel.git/commit
cw1200: Replace use of 'struct resource' with 'int' for GPIO fields.
authorSolomon Peachy <pizza@shaftnet.org>
Sun, 2 Jun 2013 13:53:03 +0000 (09:53 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 3 Jun 2013 19:54:55 +0000 (15:54 -0400)
commit33bc70ca59ef974db751b9ab539ee92a4784e9db
tree9fecf663307061ad6c35933b78c1a203552cad8b
parentd65c9c465d1ea4be06084e7db0e35c05fc24709e
cw1200: Replace use of 'struct resource' with 'int' for GPIO fields.

The only advantage of 'struct resource' is that it lets us assign names
as part of the platform data.  Unfortunately since we are using platform
data, we are already limited to a single instance of each driver,
rendering this moot.

So, replace the struct resources with ints, resulting in cleaner code.

This was based on a suggestion from Arnd Bergmann.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/cw1200/cw1200_sagrad.c
drivers/net/wireless/cw1200/cw1200_sdio.c
drivers/net/wireless/cw1200/cw1200_spi.c
include/linux/platform_data/cw1200_platform.h