From 146ab288bbe037aa85a233221cd8d9a84bedcf85 Mon Sep 17 00:00:00 2001 From: Christophe Leroy Date: Tue, 4 Sep 2012 10:40:44 +0200 Subject: hwmon: (lm70) Allow 4wire SPI bus with LM70 Removing the 3wire limitation on LM70 as the component also allows operation on 4wire SPI bus Signed-off-by: Christophe Leroy Signed-off-by: Guenter Roeck --- drivers/hwmon/lm70.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'drivers/hwmon/lm70.c') diff --git a/drivers/hwmon/lm70.c b/drivers/hwmon/lm70.c index dd7f0cafd19..1da62f616db 100644 --- a/drivers/hwmon/lm70.c +++ b/drivers/hwmon/lm70.c @@ -143,10 +143,6 @@ static int __devinit lm70_probe(struct spi_device *spi) if (spi->mode & (SPI_CPOL | SPI_CPHA)) return -EINVAL; - /* 3-wire link (shared SI/SO) for LM70 */ - if (chip == LM70_CHIP_LM70 && !(spi->mode & SPI_3WIRE)) - return -EINVAL; - /* NOTE: we assume 8-bit words, and convert to 16 bits manually */ p_lm70 = devm_kzalloc(&spi->dev, sizeof(*p_lm70), GFP_KERNEL); -- cgit v1.2.3-70-g09d2