aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lm70.c
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2012-09-04 04:40:44 -0400
committerGuenter Roeck <linux@roeck-us.net>2012-09-24 00:08:34 -0400
commit146ab288bbe037aa85a233221cd8d9a84bedcf85 (patch)
tree7f8c0cca5fcbb05b1b735f3dd1786971300adb85 /drivers/hwmon/lm70.c
parentedec5af7c5cba4a8c00c0c52fbad3b83217122da (diff)
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 <christophe.leroy@c-s.fr> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/lm70.c')
-rw-r--r--drivers/hwmon/lm70.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/hwmon/lm70.c b/drivers/hwmon/lm70.c
index dd7f0cafd197..1da62f616db5 100644
--- a/drivers/hwmon/lm70.c
+++ b/drivers/hwmon/lm70.c
@@ -143,10 +143,6 @@ static int __devinit lm70_probe(struct spi_device *spi)
143 if (spi->mode & (SPI_CPOL | SPI_CPHA)) 143 if (spi->mode & (SPI_CPOL | SPI_CPHA))
144 return -EINVAL; 144 return -EINVAL;
145 145
146 /* 3-wire link (shared SI/SO) for LM70 */
147 if (chip == LM70_CHIP_LM70 && !(spi->mode & SPI_3WIRE))
148 return -EINVAL;
149
150 /* NOTE: we assume 8-bit words, and convert to 16 bits manually */ 146 /* NOTE: we assume 8-bit words, and convert to 16 bits manually */
151 147
152 p_lm70 = devm_kzalloc(&spi->dev, sizeof(*p_lm70), GFP_KERNEL); 148 p_lm70 = devm_kzalloc(&spi->dev, sizeof(*p_lm70), GFP_KERNEL);