Skip to content

Commit 3f547cd

Browse files
dlechjic23
authored andcommitted
iio: dac: ad5770r: make ad5770r_rng_tbl const
Add const qualifier to struct ad5770r_output_modes ad5770r_rng_tbl[]. This is read-only data so it can be made const. Signed-off-by: David Lechner <dlechner@baylibre.com> Link: https://patch.msgid.link/20250628-iio-const-data-15-v1-1-b86ae055004c@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 939079f commit 3f547cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/dac/ad5770r.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ struct ad5770r_output_modes {
155155
int max;
156156
};
157157

158-
static struct ad5770r_output_modes ad5770r_rng_tbl[] = {
158+
static const struct ad5770r_output_modes ad5770r_rng_tbl[] = {
159159
{ 0, AD5770R_CH0_0_300, 0, 300 },
160160
{ 0, AD5770R_CH0_NEG_60_0, -60, 0 },
161161
{ 0, AD5770R_CH0_NEG_60_300, -60, 300 },

0 commit comments

Comments
 (0)