rtc: ds1307: constify struct chip_desc variables

Constify struct chip_desc variables.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

authored by

Heiner Kallweit and committed by
Alexandre Belloni
7624df48 d8490fd5

+3 -3
+3 -3
drivers/rtc/rtc-ds1307.c
··· 147 148 static u8 do_trickle_setup_ds1339(struct ds1307 *, uint32_t ohms, bool diode); 149 150 - static struct chip_desc chips[last_ds_type] = { 151 [ds_1307] = { 152 .nvram_offset = 8, 153 .nvram_size = 56, ··· 941 } 942 943 static u8 ds1307_trickle_init(struct ds1307 *ds1307, 944 - struct chip_desc *chip) 945 { 946 uint32_t ohms; 947 bool diode = true; ··· 1311 struct ds1307 *ds1307; 1312 int err = -ENODEV; 1313 int tmp, wday; 1314 - struct chip_desc *chip; 1315 bool want_irq = false; 1316 bool ds1307_can_wakeup_device = false; 1317 unsigned char *buf;
··· 147 148 static u8 do_trickle_setup_ds1339(struct ds1307 *, uint32_t ohms, bool diode); 149 150 + static const struct chip_desc chips[last_ds_type] = { 151 [ds_1307] = { 152 .nvram_offset = 8, 153 .nvram_size = 56, ··· 941 } 942 943 static u8 ds1307_trickle_init(struct ds1307 *ds1307, 944 + const struct chip_desc *chip) 945 { 946 uint32_t ohms; 947 bool diode = true; ··· 1311 struct ds1307 *ds1307; 1312 int err = -ENODEV; 1313 int tmp, wday; 1314 + const struct chip_desc *chip; 1315 bool want_irq = false; 1316 bool ds1307_can_wakeup_device = false; 1317 unsigned char *buf;