YueHaibing
09ef18bcd5
rtc: use devm_platform_ioremap_resource() to simplify code
...
Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.
Signed-off-by: YueHaibing <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Belloni <[email protected] >
2019-10-07 01:07:35 +02:00
Stephen Boyd
faac910201
rtc: Remove dev_err() usage after platform_get_irq()
...
We don't need dev_err() messages when platform_get_irq() fails now that
platform_get_irq() prints an error message itself when something goes
wrong. Let's remove these prints with a simple semantic patch.
// <smpl>
@@
expression ret;
struct platform_device *E;
@@
ret =
(
platform_get_irq(E, ...)
|
platform_get_irq_byname(E, ...)
);
if ( \( ret < 0 \| ret <= 0 \) )
{
(
-if (ret != -EPROBE_DEFER)
-{ ...
-dev_err(...);
-... }
|
...
-dev_err(...);
)
...
}
// </smpl>
While we're here, remove braces on if statements that only have one
statement (manually).
Cc: Alessandro Zummo <[email protected] >
Cc: Alexandre Belloni <[email protected] >
Cc: [email protected]
Cc: Greg Kroah-Hartman <[email protected] >
Signed-off-by: Stephen Boyd <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Belloni <[email protected] >
2019-08-13 10:53:10 +02:00
Alexandre Belloni
e91b94fd2b
rtc: pic32: convert to SPDX identifier
...
Use SPDX-License-Identifier instead of a verbose license text.
Signed-off-by: Alexandre Belloni <[email protected] >
2019-03-04 20:23:15 +01:00
Alexandre Belloni
c145e5f4a4
rtc: pic32: let the core handle range
...
Let the core handle the RTC range instead of open coding it.
Signed-off-by: Alexandre Belloni <[email protected] >
2019-03-04 20:21:19 +01:00
Alexandre Belloni
6515e23b9f
rtc: pic32: convert to devm_rtc_allocate_device
...
This allows further improvement of the driver.
Signed-off-by: Alexandre Belloni <[email protected] >
2019-03-04 20:21:19 +01:00
Andy Shevchenko
93206f9315
rtc: pic32: Switch to use %ptR
...
Use %ptR instead of open coded variant to print content of
struct rtc_time in human readable format.
Signed-off-by: Andy Shevchenko <[email protected] >
Signed-off-by: Alexandre Belloni <[email protected] >
2018-12-10 22:39:57 +01:00
Alexandre Belloni
22652ba724
rtc: stop validating rtc_time in .read_time
...
The RTC core is always calling rtc_valid_tm after the read_time callback.
It is not necessary to call it just before returning from the callback.
Signed-off-by: Alexandre Belloni <[email protected] >
2018-03-02 10:09:58 +01:00
Markus Elfring
e545b984f0
rtc: pic32: Delete owner assignment
...
The field "owner" is set by core. Thus delete an extra initialisation.
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
Signed-off-by: Markus Elfring <[email protected] >
Signed-off-by: Alexandre Belloni <[email protected] >
2016-08-31 18:21:35 +02:00
Joshua Henderson
51aa905c91
rtc: pic32: Add PIC32 real time clock driver
...
This driver adds support for the PIC32 real time clock and calendar
peripheral:
- reading and setting time
- alarms provided by dedicated IRQ
Signed-off-by: Joshua Henderson <[email protected] >
Signed-off-by: Alexandre Belloni <[email protected] >
2016-03-14 17:08:21 +01:00