rtc-pcf8523.c (a23e1966932464e1c5226cb9ac4ce1d5fc10ba22) rtc-pcf8523.c (a47d377e22c4a896a87a18db33f26cc6d5cc9771)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2012 Avionic Design GmbH
4 */
5
6#include <linux/bcd.h>
7#include <linux/bitfield.h>
8#include <linux/i2c.h>

--- 481 unchanged lines hidden (view full) ---

490 wakeup_source = of_property_read_bool(client->dev.of_node, "wakeup-source");
491 if (client->irq > 0 || wakeup_source)
492 device_init_wakeup(&client->dev, true);
493
494 return devm_rtc_register_device(rtc);
495}
496
497static const struct i2c_device_id pcf8523_id[] = {
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2012 Avionic Design GmbH
4 */
5
6#include <linux/bcd.h>
7#include <linux/bitfield.h>
8#include <linux/i2c.h>

--- 481 unchanged lines hidden (view full) ---

490 wakeup_source = of_property_read_bool(client->dev.of_node, "wakeup-source");
491 if (client->irq > 0 || wakeup_source)
492 device_init_wakeup(&client->dev, true);
493
494 return devm_rtc_register_device(rtc);
495}
496
497static const struct i2c_device_id pcf8523_id[] = {
498 { "pcf8523", 0 },
498 { "pcf8523" },
499 { }
500};
501MODULE_DEVICE_TABLE(i2c, pcf8523_id);
502
503static const struct of_device_id pcf8523_of_match[] = {
504 { .compatible = "nxp,pcf8523" },
505 { .compatible = "microcrystal,rv8523" },
506 { }

--- 17 unchanged lines hidden ---
499 { }
500};
501MODULE_DEVICE_TABLE(i2c, pcf8523_id);
502
503static const struct of_device_id pcf8523_of_match[] = {
504 { .compatible = "nxp,pcf8523" },
505 { .compatible = "microcrystal,rv8523" },
506 { }

--- 17 unchanged lines hidden ---