mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
rtc: rtc-ds1742: make of_device_id array const
Make of_device_id array const, because all OF functions handle it as const. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
1 parent
7c994c08c3
commit
9d203572f0
1 file changed
+1
-1
@@ -219,7 +219,7 @@ static int ds1742_rtc_remove(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct of_device_id __maybe_unused ds1742_rtc_of_match[] = {
|
||||
static const struct of_device_id __maybe_unused ds1742_rtc_of_match[] = {
|
||||
{ .compatible = "maxim,ds1742", },
|
||||
{ }
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user