From: Lee Jones Date: Thu, 16 Jul 2020 13:59:12 +0000 (+0100) Subject: iio: dac: ad5064: Value returned by ad5064_vref_name may not be 'const * const' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d3c90aa7858a93ec7219f427a2855e8daddea5c5;p=linux.git iio: dac: ad5064: Value returned by ad5064_vref_name may not be 'const * const' 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 Signed-off-by: Lee Jones Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/dac/ad5064.c b/drivers/iio/dac/ad5064.c index db36365dc04ca..fef503f8012d1 100644 --- a/drivers/iio/dac/ad5064.c +++ b/drivers/iio/dac/ad5064.c @@ -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];