Commit ba9c5fc3 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Guenter Roeck
Browse files

hwmon: (lm70) Use SPI_MODE_X_MASK

parent 97387c2f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -161,7 +161,7 @@ static int lm70_probe(struct spi_device *spi)


	/* signaling is SPI_MODE_0 */
	if (spi->mode & (SPI_CPOL | SPI_CPHA))
	if ((spi->mode & SPI_MODE_X_MASK) != SPI_MODE_0)
		return -EINVAL;

	/* NOTE:  we assume 8-bit words, and convert to 16 bits manually */