[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1447629111-6400-1-git-send-email-nizamhaider786@gmail.com>
Date: Mon, 16 Nov 2015 04:41:51 +0530
From: Nizam Haider <nizamhaider786@...il.com>
To: jic23@...nel.org
Cc: knaack.h@....de, lars@...afoo.de, pmeerw@...erw.net,
michal.simek@...inx.com, soren.brinkmann@...inx.com,
thomas.betker@...de-schwarz.com, xander.huff@...com,
linux-iio@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
Nizam Haider <nizamhaider786@...il.com>,
Nizam Haider <nijamh@...c.in>
Subject: [PATCH] IIO: adc: xilinx-xadc-core.c: constify iio_buffer_setup_ops structure
structure iio_buffer_setup_ops is never modified, so declare it as const.
Signed-off-by: Nizam Haider <nijamh@...c.in>
---
drivers/iio/adc/xilinx-xadc-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/adc/xilinx-xadc-core.c b/drivers/iio/adc/xilinx-xadc-core.c
index 0370624..c2b5f10 100644
--- a/drivers/iio/adc/xilinx-xadc-core.c
+++ b/drivers/iio/adc/xilinx-xadc-core.c
@@ -803,7 +803,7 @@ err:
return ret;
}
-static struct iio_buffer_setup_ops xadc_buffer_ops = {
+static const struct iio_buffer_setup_ops xadc_buffer_ops = {
.preenable = &xadc_preenable,
.postenable = &iio_triggered_buffer_postenable,
.predisable = &iio_triggered_buffer_predisable,
--
1.8.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists