Skip to content

Commit a7a6428

Browse files
committed
fixup! input: apple_z2: Add a driver for Apple Z2 touchscreens
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 7995f95 commit a7a6428

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

drivers/input/touchscreen/apple_z2.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828

2929
struct apple_z2 {
3030
struct spi_device *spidev;
31-
struct gpio_desc *cs_gpio;
3231
struct gpio_desc *reset_gpio;
3332
struct input_dev *input_dev;
3433
struct completion boot_irq;
@@ -127,16 +126,8 @@ static int apple_z2_spi_sync(struct apple_z2 *z2, struct spi_message *msg)
127126
{
128127
int error;
129128

130-
if (z2->cs_gpio) {
131-
gpiod_direction_output(z2->cs_gpio, 0);
132-
}
133-
134129
error = spi_sync(z2->spidev, msg);
135130

136-
if (z2->cs_gpio) {
137-
gpiod_direction_output(z2->cs_gpio, 1);
138-
}
139-
140131
return error;
141132
}
142133

@@ -380,17 +371,6 @@ static int apple_z2_probe(struct spi_device *spi)
380371
init_completion(&z2->boot_irq);
381372
spi_set_drvdata(spi, z2);
382373

383-
z2->cs_gpio = devm_gpiod_get_index(dev, "cs", 0, 0);
384-
if (IS_ERR(z2->cs_gpio)) {
385-
if (PTR_ERR(z2->cs_gpio) != -ENOENT)
386-
{
387-
dev_err(dev, "unable to get cs");
388-
return PTR_ERR(z2->cs_gpio);
389-
} else {
390-
z2->cs_gpio = NULL;
391-
}
392-
}
393-
394374
z2->reset_gpio = devm_gpiod_get_index(dev, "reset", 0, 0);
395375
if (IS_ERR(z2->reset_gpio)) {
396376
dev_err(dev, "unable to get reset");

0 commit comments

Comments
 (0)