Skip to content

Commit 45f7718

Browse files
ndreysbroonie
authored andcommitted
spi: gpio: Drop unused pdev field in struct spi_gpio
There's no code using 'pdev' field in struct spi_gpio. Drop it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Cc: Mark Brown <broonie@kernel.org> Cc: Chris Healy <cphealy@gmail.com> Cc: linux-spi@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 5c8283c commit 45f7718

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/spi/spi-gpio.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141

4242
struct spi_gpio {
4343
struct spi_bitbang bitbang;
44-
struct platform_device *pdev;
4544
struct gpio_desc *sck;
4645
struct gpio_desc *miso;
4746
struct gpio_desc *mosi;
@@ -390,8 +389,6 @@ static int spi_gpio_probe(struct platform_device *pdev)
390389

391390
platform_set_drvdata(pdev, spi_gpio);
392391

393-
spi_gpio->pdev = pdev;
394-
395392
status = spi_gpio_request(dev, spi_gpio);
396393
if (status)
397394
return status;

0 commit comments

Comments
 (0)