mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
rtc: rtc-ds2404: constify ds2404_chip_ops structures
The ds2404_chip_ops structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
This commit is contained in:
parent
8ae83b6f76
commit
c4c23f58a9
1 changed files with 2 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ struct ds2404_gpio {
|
|||
|
||||
struct ds2404 {
|
||||
struct ds2404_gpio *gpio;
|
||||
struct ds2404_chip_ops *ops;
|
||||
const struct ds2404_chip_ops *ops;
|
||||
struct rtc_device *rtc;
|
||||
};
|
||||
|
||||
|
|
@ -95,7 +95,7 @@ static void ds2404_gpio_unmap(struct ds2404 *chip)
|
|||
gpio_free(ds2404_gpio[i].gpio);
|
||||
}
|
||||
|
||||
static struct ds2404_chip_ops ds2404_gpio_ops = {
|
||||
static const struct ds2404_chip_ops ds2404_gpio_ops = {
|
||||
.map_io = ds2404_gpio_map,
|
||||
.unmap_io = ds2404_gpio_unmap,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue