Re: [PATCH v2 2/2] iio: add driver for the TI DAC8554

From: Lars-Peter Clausen
Date: Sat Dec 13 2014 - 06:30:10 EST


On 11/24/2014 08:50 PM, Nikolaus Schulz wrote:
[...]
+const struct iio_chan_spec dac8554_channels[] = {

static

[...]
+ ret = of_property_read_u32(spi->dev.of_node, "address", &addr);

This should probably have vendor prefix.

+ if (ret || addr < 0 || addr > 2) {
+ dev_err(&spi->dev, "no or invalid chip address");
+ return -ENODEV;
+ }


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/