02 Sep, 2016
1 commit
-
Check for rtc_class_ops structures that are only passed to
devm_rtc_device_register, rtc_device_register,
platform_device_register_data, all of which declare the corresponding
parameter as const. Declare rtc_class_ops structures that have these
properties as const.The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)//
@r disable optional_qualifier@
identifier i;
position p;
@@
static struct rtc_class_ops i@p = { ... };@ok@
identifier r.i;
expression e1,e2,e3,e4;
position p;
@@
(
devm_rtc_device_register(e1,e2,&i@p,e3)
|
rtc_device_register(e1,e2,&i@p,e3)
|
platform_device_register_data(e1,e2,e3,&i@p,e4)
)@bad@
position p != {r.p,ok.p};
identifier r.i;
@@
i@p@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
struct rtc_class_ops i = { ... };
//Signed-off-by: Julia Lawall
Acked-by: Baruch Siach
Acked-by: Hans Ulli Kroll
Acked-by: Linus Walleij
Acked-by: Thierry Reding
Signed-off-by: Alexandre Belloni
15 Mar, 2016
1 commit
-
Palams RTC IRQ is nested threaded and wired to the Palmas inerrupt
controller. So, this flag is not required for nested irqs anymore,
since commit 3c646f2c6aa9 ("genirq: Don't suspend nested_thread irqs
over system suspend") was merged.Cc: Alessandro Zummo
Cc: Alexandre Belloni
Cc: Tony Lindgren
Cc: Lee Jones
Cc: Nishanth Menon
Signed-off-by: Grygorii Strashko
Signed-off-by: Alexandre Belloni
25 Jun, 2015
1 commit
-
Initialise the variable high_bb_charging before using it to avoid
configuring wrong value and fix following compilation warning:/*
rtc-palmas.c: In function ‘palmas_rtc_probe’:
rtc-palmas.c:242:7: warning: ‘high_bb_charging’ may be used
uninitialized in this function
*/Signed-off-by: Laxman Dewangan
Signed-off-by: Alexandre Belloni
20 Oct, 2014
1 commit
-
A platform_driver does not need to set an owner, it will be populated by the
driver core.Signed-off-by: Wolfram Sang
07 Jun, 2014
1 commit
-
Make of_device_id array const, because all OF functions handle it as
const.Signed-off-by: Jingoo Han
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
04 Apr, 2014
1 commit
-
Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.
Signed-off-by: Jingoo Han
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
12 Sep, 2013
1 commit
-
Palmas series device like TPS65913, TPS80036 supports the backup battery
for powering the RTC when no other energy source is available.The backup battery is optional, connected to the VBACKUP pin, and can be
nonrechargeable or rechargeable. The rechargeable battery can be charged
from the system supply using the backup battery charger.Add support for enabling charging of this backup battery. Also add the DT
binding document and the new properties to have this support.Signed-off-by: Laxman Dewangan
Reviewed-by: Felipe Balbi
Acked-by: Kumar Gala
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
04 Jul, 2013
1 commit
-
Enable dev as wakeup device before calling rtc_device_register(), so that
it can create the "wakealarm" sysfs.Signed-off-by: Wei Ni
Acked-by: Laxman Dewangan
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
30 Apr, 2013
2 commits
-
Add of_device_id table for Palma RTC to be enable the driver from DT file.
The driver can be registered from DT file as:
palmas: tps65913@58 {
:::::::::::
palmas_rtc {
compatible = "ti,palmas-rtc";
interrupt-parent = ;
interrupts = ;
};
};Signed-off-by: Laxman Dewangan
Acked-by: Grant Likely
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
devm_rtc_device_register() is device managed and makes cleanup
paths simpler.Also, use devm_request_threaded_irq() to make cleanup paths more simple.
Signed-off-by: Jingoo Han
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
14 Feb, 2013
1 commit
-
TI Palmas series PMIC support the RTC and alarm functionality.
Add RTC driver with alarm support for this device.Signed-off-by: Laxman Dewangan
Signed-off-by: Samuel Ortiz