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

    Julia Lawall
     

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

    Grygorii Strashko
     

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

    Laxman Dewangan
     

20 Oct, 2014

1 commit


07 Jun, 2014

1 commit


04 Apr, 2014

1 commit


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

    Laxman Dewangan
     

04 Jul, 2013

1 commit


30 Apr, 2013

2 commits


14 Feb, 2013

1 commit