iio: dac: ad5064: Value returned by ad5064_vref_name may not be 'const * const'
authorLee Jones <lee.jones@linaro.org>
Thu, 16 Jul 2020 13:59:12 +0000 (14:59 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 20 Jul 2020 08:02:57 +0000 (09:02 +0100)
Fixes the following W=1 kernel build warning(s):

 drivers/iio/dac/ad5064.c:790:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
 790 | static const char * const ad5064_vref_name(struct ad5064_state *st,
 | ^~~~~

Cc: Michael Hennerich <Michael.Hennerich@analog.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad5064.c

index db36365dc04ca31e81e07c0c650c852d9c2522c8..fef503f8012d112e9eae00b24ea503171f72a170 100644 (file)
@@ -787,7 +787,7 @@ static const char * const ad5064_vref_names[] = {
        "vrefD",
 };
 
-static const char * const ad5064_vref_name(struct ad5064_state *st,
+static const char *ad5064_vref_name(struct ad5064_state *st,
        unsigned int vref)
 {
        return st->chip_info->shared_vref ? "vref" : ad5064_vref_names[vref];