mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
edec5af7c5
commit
146ab288bb
2 changed files with 2 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue