Fixed warning
authorTom Knot <tomasknot@gmail.com>
Thu, 14 Jun 2018 13:51:54 +0000 (15:51 +0200)
committerTom Knot <tomasknot@gmail.com>
Thu, 14 Jun 2018 13:51:54 +0000 (15:51 +0200)
modules/unipi/src/unipi_sysfs.c
version.txt

index 313874ea723092e3c97bdf8b8f93ecb309a0aa4b..1562db9f6c604d6d1205ca3f1dc98f6db8f6b64a 100644 (file)
@@ -206,7 +206,7 @@ static ssize_t neuronspi_spi_show_uart_timeout(struct device *dev, struct device
                read_length = neuronspi_spi_compose_single_register_read(504, &inp_buf, &outp_buf);
                neuronspi_spi_send_message(spi, inp_buf, outp_buf, read_length, n_spi->ideal_frequency, 25, 1, 0);
                val = outp_buf[10 + 1];
-               memcpy(val, &outp_buf[NEURONSPI_HEADER_LENGTH], sizeof(u16));
+               memcpy(&val, &outp_buf[NEURONSPI_HEADER_LENGTH], sizeof(u16));
                kfree(inp_buf);
                kfree(outp_buf);
                ret = scnprintf(buf, 255, "%d\n", val);
index 9ae67808d67795b5153752ae75dd3f02295c2f40..59f2104ebcd2e2791ca63dc5c034d31aeecfe5ec 100644 (file)
@@ -1 +1 @@
-Repository:neuron-kernel ActiveBranch:[uart_timeout] PrecedingRelease:v.0.12 PrecedingRevision:46(8430b96) LatestCommit:Thu Jun 14 15:48:26 CEST 2018
+Repository:neuron-kernel ActiveBranch:[uart_timeout] PrecedingRelease:v.0.12 PrecedingRevision:47(a9c2f52) LatestCommit:Thu Jun 14 15:51:55 CEST 2018