Added dummy method for reading secondary analog output via IIO
authorTom Knot <tomasknot@gmail.com>
Tue, 16 Oct 2018 13:11:14 +0000 (15:11 +0200)
committerTom Knot <tomasknot@gmail.com>
Tue, 16 Oct 2018 13:11:14 +0000 (15:11 +0200)
debian/changelog
modules/unipi/src/unipi_common.h
modules/unipi/src/unipi_iio.c
version.txt

index 50bd958cd2d939b8ef48044af0c686732c807fef..158be87ad0f0ee856288894770da1b6fd9b3b63e 100644 (file)
@@ -1,6 +1,12 @@
+unipi-kernel-modules (1.18) unstable; urgency=medium
+
+  * added missing dummy method for reading secondary analog output
+
+ -- Miroslav Ondra <bokula@bokula.faster.cz>  Mon, 16 Oct 2018 15:08:40 +0200
+
 unipi-kernel-modules (1.17) unstable; urgency=medium
 
-  * add dependncy on raspberrypi-kernel-headers
+  * add dependency on raspberrypi-kernel-headers
 
  -- Miroslav Ondra <bokula@bokula.faster.cz>  Mon, 24 Sep 2018 19:46:40 +0200
 
index de5c631415c8ccc8150cff1ba9f68d89fb8da0d7..8d7e64ca3c7555af07473cfe74c83422f4d305f2 100644 (file)
@@ -51,7 +51,7 @@
 #if NEURONSPI_SCHED_REQUIRED > 0
        #include <uapi/linux/sched/types.h>
 #endif
-#define NEURONSPI_MAJOR_VERSIONSTRING "Version 1.17:2018:09:27"
+#define NEURONSPI_MAJOR_VERSIONSTRING "Version 1.18:2018:10:16"
 
 #define NEURONSPI_MAX_DEVS                             3
 #define NEURONSPI_MAX_UART                             16
index 033e44ad2e609098c94b58fec7a7c0468f6d838a..59691b9dca7bed8f7ad026c7cce8a9e900437ea0 100644 (file)
@@ -383,6 +383,11 @@ int neuronspi_iio_sec_ai_read_raw(struct iio_dev *indio_dev, struct iio_chan_spe
        }
 }
 
+int neuronspi_iio_sec_ao_read_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *ch, int *val, int *val2, long mask)
+{
+       return -EINVAL;
+}
+
 int neuronspi_iio_sec_ao_write_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *ch, int val, int val2, long mask)
 {
        if (ch->type == IIO_VOLTAGE) {
@@ -419,6 +424,7 @@ static const struct iio_info neuronspi_sec_ai_info = {
 static const struct iio_info neuronspi_sec_ao_info = {
        .write_raw = neuronspi_iio_sec_ao_write_raw,
        .driver_module = THIS_MODULE,
+       .read_raw = neuronspi_iio_sec_ao_read_raw,
        //.attrs = &neuron_sec_ao_group,
 };
 
index c59e8b54c7eb2d576f8b258a2c74b65c64197e9e..bd4a049b59079abbf523b8dc9efa5c7462cdca30 100644 (file)
@@ -1 +1 @@
-Repository:unipi-kernel ActiveBranch:[master] PrecedingRelease:v.0.12 PrecedingRevision:121(321cdd4) LatestCommit:Thu Sep 27 16:20:55 CEST 2018
+Repository:unipi-kernel ActiveBranch:[master] PrecedingRelease:v.0.12 PrecedingRevision:124(d251996) LatestCommit:Tue Oct 16 15:11:14 CEST 2018