diff options
author | Heiner Kallweit | 2017-07-12 07:49:33 +0200 |
---|---|---|
committer | Alexandre Belloni | 2017-09-01 01:10:14 +0200 |
commit | 7624df482d7aba599a92ebe1a1fab3e27749b658 (patch) | |
tree | 24bbb0ca9d0ae8c0c6c0e28d60603c5242921c5f /drivers/rtc | |
parent | d8490fd55ab90e0039242a5f53acf8a6c2c5e961 (diff) |
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>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-ds1307.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index 5a3c563fc1e6..73d2084f0f3e 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -147,7 +147,7 @@ struct chip_desc { static u8 do_trickle_setup_ds1339(struct ds1307 *, uint32_t ohms, bool diode); -static struct chip_desc chips[last_ds_type] = { +static const struct chip_desc chips[last_ds_type] = { [ds_1307] = { .nvram_offset = 8, .nvram_size = 56, @@ -941,7 +941,7 @@ static u8 do_trickle_setup_ds1339(struct ds1307 *ds1307, } static u8 ds1307_trickle_init(struct ds1307 *ds1307, - struct chip_desc *chip) + const struct chip_desc *chip) { uint32_t ohms; bool diode = true; @@ -1311,7 +1311,7 @@ static int ds1307_probe(struct i2c_client *client, struct ds1307 *ds1307; int err = -ENODEV; int tmp, wday; - struct chip_desc *chip; + const struct chip_desc *chip; bool want_irq = false; bool ds1307_can_wakeup_device = false; unsigned char *buf; |