]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: kpc2000: kpc_spi: remove unnecessary struct member chip_select
authorGeordan Neukum <gneukum1@gmail.com>
Wed, 5 Jun 2019 01:09:11 +0000 (01:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2019 13:05:02 +0000 (15:05 +0200)
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>
drivers/staging/kpc2000/kpc2000_spi.c

index 61296335313be0ae17018e66478e0f73b729a272..07b0327d8bef6456c22b4443b3ac5b58d9b52b13 100644 (file)
@@ -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;
        }