[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1487780078-18510-3-git-send-email-michael.hennerich@analog.com>
Date:   Wed, 22 Feb 2017 17:14:36 +0100
From:   <michael.hennerich@...log.com>
To:     <dmitry.torokhov@...il.com>
CC:     <linux-input@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
        "Michael Hennerich" <michael.hennerich@...log.com>
Subject: [PATCH 2/4] input:touchscreen:ad7879-spi.c: Remove bits_per_word = 16 enforcement
From: Michael Hennerich <michael.hennerich@...log.com>
Using regmap this is no longer required.
Signed-off-by: Michael Hennerich <michael.hennerich@...log.com>
---
 drivers/input/touchscreen/ad7879-spi.c | 7 -------
 1 file changed, 7 deletions(-)
diff --git a/drivers/input/touchscreen/ad7879-spi.c b/drivers/input/touchscreen/ad7879-spi.c
index b995891..904a2c2 100644
--- a/drivers/input/touchscreen/ad7879-spi.c
+++ b/drivers/input/touchscreen/ad7879-spi.c
@@ -42,13 +42,6 @@ static int ad7879_spi_probe(struct spi_device *spi)
 		return -EINVAL;
 	}
 
-	spi->bits_per_word = 16;
-	err = spi_setup(spi);
-	if (err) {
-		dev_dbg(&spi->dev, "spi master doesn't support 16 bits/word\n");
-		return err;
-	}
-
 	regmap = devm_regmap_init_spi(spi, &ad7879_spi_regmap_config);
 	if (IS_ERR(regmap))
 		return PTR_ERR(regmap);
-- 
2.7.4
Powered by blists - more mailing lists
 
