12 Jan, 2016

3 commits

  • The usage of of_device_get_match_data reduce the code size a bit.

    Signed-off-by: LABBE Corentin
    Acked-by: Chen-Yu Tsai
    Signed-off-by: Alexandre Belloni

    LABBE Corentin
     
  • The data_year_param struct is never modified, so lets constify it.
    This permit to remove cast since of_device_id is const also.

    Signed-off-by: LABBE Corentin
    Acked-by: Chen-Yu Tsai
    Signed-off-by: Alexandre Belloni

    LABBE Corentin
     
  • The variable year must be set as unsigned since it is used with
    sunxi_rtc_data_year{.min|.max} and as parameter of is_leap_year() which
    wait for unsigned int.
    Only tm_year is not unsigned, but it is long.
    This patch fix also the format of printing of min/max. (must use %u since
    they are unsigned)

    The parameter to of sunxi_rtc_setaie() must be set to uint since callers
    give always uint data.

    Signed-off-by: LABBE Corentin
    Acked-by: Chen-Yu Tsai
    Signed-off-by: Alexandre Belloni

    LABBE Corentin
     

25 Jun, 2015

1 commit

  • sunxi_rtc_setalarm() uses deprecated rtc_tm_to_time(),
    which will overflow in year 2106 on 32-bit machines.

    This patch solves this by:
    - Replacing rtc_tm_to_time() with rtc_tm_sub()

    Also remove the unnecessary initial zeroing of some
    local variables in sunxi_rtc_setalarm().

    Cc: Carlo Caione
    Signed-off-by: Xunlei Pang
    Signed-off-by: Alexandre Belloni

    Xunlei Pang
     

20 Oct, 2014

1 commit


04 Apr, 2014

1 commit

  • The Allwinner A10 compatibles were following a slightly different
    compatible patterns than the rest of the SoCs for historical reasons.
    Change the compatibles to match the other pattern in the RTC driver for
    consistency.

    Signed-off-by: Maxime Ripard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Maxime Ripard
     

21 Dec, 2013

1 commit