iio: adc/accel: Fix up module licenses
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 13 Nov 2017 10:29:55 +0000 (11:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Feb 2018 19:12:20 +0000 (11:12 -0800)
commit 9a0ebbc93547d88f422905c34dcceebe928f3e9e upstream.

The module license checker complains about these two so just fix
it up. They are both GPLv2, both written by me or using code
I extracted while refactoring from the GPLv2 drivers.

Cc: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/accel/kxsd9-i2c.c
drivers/iio/adc/qcom-vadc-common.c

index 98fbb628d5bdd13a5f0fb85ff37d1dd776db5a0f..38411e1c155bd38c93ba0d559b4f5f0c025594ed 100644 (file)
@@ -63,3 +63,6 @@ static struct i2c_driver kxsd9_i2c_driver = {
        .id_table       = kxsd9_i2c_id,
 };
 module_i2c_driver(kxsd9_i2c_driver);
+
+MODULE_LICENSE("GPL v2");
+MODULE_DESCRIPTION("KXSD9 accelerometer I2C interface");
index 47d24ae5462fe8afd131f9d771c7d00e9da1d03d..fe3d7826783c0fcd0bae1831f356ba0d5acc86a4 100644 (file)
@@ -5,6 +5,7 @@
 #include <linux/math64.h>
 #include <linux/log2.h>
 #include <linux/err.h>
+#include <linux/module.h>
 
 #include "qcom-vadc-common.h"
 
@@ -229,3 +230,6 @@ int qcom_vadc_decimation_from_dt(u32 value)
        return __ffs64(value / VADC_DECIMATION_MIN);
 }
 EXPORT_SYMBOL(qcom_vadc_decimation_from_dt);
+
+MODULE_LICENSE("GPL v2");
+MODULE_DESCRIPTION("Qualcomm ADC common functionality");