diff options
author | Geordan Neukum <gneukum1@gmail.com> | 2019-06-05 01:09:11 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-06 15:05:02 +0200 |
commit | 77a91f4b68b09774ab4608348557efaf262a6428 (patch) | |
tree | 63174a81d8266412db3bc3ea3d394d6af68c2f58 /drivers/staging/kpc2000 | |
parent | dafcc4a54672875a155fb8272528820150043781 (diff) | |
download | linux-77a91f4b68b09774ab4608348557efaf262a6428.tar.gz linux-77a91f4b68b09774ab4608348557efaf262a6428.tar.bz2 linux-77a91f4b68b09774ab4608348557efaf262a6428.zip |
staging: kpc2000: kpc_spi: remove unnecessary struct member chip_select
The structure kp_spi_controller_state, defined in the kpc2000_spi
driver, contains a member named chip_select which is never used after
initialization. Therefore, it should be removed for simplicity's sake.
Signed-off-by: Geordan Neukum <gneukum1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/kpc2000')
-rw-r--r-- | drivers/staging/kpc2000/kpc2000_spi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/kpc2000/kpc2000_spi.c b/drivers/staging/kpc2000/kpc2000_spi.c index 61296335313b..07b0327d8bef 100644 --- a/drivers/staging/kpc2000/kpc2000_spi.c +++ b/drivers/staging/kpc2000/kpc2000_spi.c @@ -109,7 +109,6 @@ struct kp_spi { struct kp_spi_controller_state { void __iomem *base; - unsigned char chip_select; s64 conf_cache; }; @@ -267,7 +266,6 @@ kp_spi_setup(struct spi_device *spidev) return -ENOMEM; } cs->base = kpspi->base; - cs->chip_select = spidev->chip_select; cs->conf_cache = -1; spidev->controller_state = cs; } |