1. 12 Jan, 2015 7 commits
    • David S. Miller's avatar
      Merge branch 'irda-next' · ef5ba4af
      David S. Miller authored
      Chunyan Zhang says:
      
      ====================
      irda: Use ktime_t instead of timeval
      
      This patch-set removed all uses of timeval and used ktime_t instead if
      needed, since 32-bit time types will break in the year 2038.
      
      This patch-set also used the ktime_xxx functions accordingly.
      e.g.
      * Used ktime_get to get the current time instead of do_gettimeofday.
      * And, used ktime_us_delta to get the elapsed time directly.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ef5ba4af
    • Chunyan Zhang's avatar
      irda: vlsi_ir: Replace timeval with ktime_t · 497ec1f2
      Chunyan Zhang authored
      The vlsi ir driver uses 'timeval', which we try to remove in the kernel
      because all 32-bit time types will break in the year 2038.
      
      This patch also changes do_gettimeofday() to ktime_get() accordingly,
      since ktime_get returns a ktime_t, but do_gettimeofday returns a
      struct timeval, and the other reason is that ktime_get() uses
      the monotonic clock.
      
      This patch uses ktime_us_delta to get the elapsed time of microsecond,
      and uses div_s64_rem to get what seconds & microseconds time elapsed
      for printing.
      
      This patch also changes the function 'vlsi_hard_start_xmit' to do the
      same things as the others drivers, that is passing the remaining time
      into udelay() instead of looping until enough time has passed.
      Signed-off-by: default avatarChunyan Zhang <zhang.chunyan@linaro.org>
      Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      497ec1f2
    • Chunyan Zhang's avatar
      irda: stir4200: Replace timeval with ktime_t · 89a07e17
      Chunyan Zhang authored
      The stir4200 driver uses 'timeval', which we try to remove in the kernel
      because all 32-bit time types will break in the year 2038.
      
      This patch also changes do_gettimeofday() to ktime_get() accordingly,
      since ktime_get returns a ktime_t, but do_gettimeofday returns a
      struct timeval, and the other reason is that ktime_get() uses
      the monotonic clock.
      
      This patch uses ktime_us_delta to get the elapsed time of microsecond.
      Signed-off-by: default avatarChunyan Zhang <zhang.chunyan@linaro.org>
      Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      89a07e17
    • Chunyan Zhang's avatar
      irda: nsc-ircc: Replace timeval with ktime_t · 4c3bd197
      Chunyan Zhang authored
      The nsc ircc driver uses 'timeval', which we try to remove in the kernel
      because all 32-bit time types will break in the year 2038.
      
      This patch also changes do_gettimeofday() to ktime_get() accordingly,
      since ktime_get returns a ktime_t, but do_gettimeofday returns a
      struct timeval, and the other reason is that ktime_get() uses
      the monotonic clock.
      
      This patch uses ktime_us_delta to get the elapsed time, and in this
      way it no longer needs to check for the overflow, because
      ktime_us_delta returns time difference of microsecond.
      Signed-off-by: default avatarChunyan Zhang <zhang.chunyan@linaro.org>
      Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4c3bd197
    • Chunyan Zhang's avatar
      irda: irda-usb: Replace timeval with ktime_t · ca98278a
      Chunyan Zhang authored
      The irda usb driver uses 'timeval', which we try to remove in the kernel
      because all 32-bit time types will break in the year 2038.
      
      This patch also changes do_gettimeofday() to ktime_get() accordingly,
      since ktime_get returns a ktime_t, but do_gettimeofday returns a
      struct timeval, and the other reason is that ktime_get() uses
      the monotonic clock.
      
      This patch uses ktime_us_delta to get the elapsed time, and in this
      way it no longer needs to check for the overflow, because
      ktime_us_delta returns time difference of microsecond.
      Signed-off-by: default avatarChunyan Zhang <zhang.chunyan@linaro.org>
      Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ca98278a
    • Chunyan Zhang's avatar
      irda: ali-ircc: Replace timeval with ktime_t · 9f61e309
      Chunyan Zhang authored
      The ali ircc driver uses 'timeval', which we try to remove in the kernel
      because all 32-bit time types will break in the year 2038.
      
      This patch also changes do_gettimeofday() to ktime_get() accordingly,
      since ktime_get returns a ktime_t, but do_gettimeofday returns a
      struct timeval, and the other reason is that ktime_get() uses
      the monotonic clock.
      
      This patch uses ktime_us_delta to get the elapsed time, and in this
      way it no longer needs to check for the overflow, because
      ktime_us_delta returns time difference of microsecond.
      Signed-off-by: default avatarChunyan Zhang <zhang.chunyan@linaro.org>
      Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9f61e309
    • Chunyan Zhang's avatar
      irda: Removed all unused timeval variables · 270d73c1
      Chunyan Zhang authored
      In the file au1k_ir.c & via-ircc.h, there were two unused definitions of the
      timeval type members, this commit therefore removes this unneeded code.
      
      In other three files, the same problem is the rx_time member is only ever
      written, never read, so removed it entirely.
      Signed-off-by: default avatarChunyan Zhang <zhang.chunyan@linaro.org>
      Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      270d73c1
  2. 11 Jan, 2015 8 commits
  3. 09 Jan, 2015 20 commits
  4. 07 Jan, 2015 5 commits