1. 30 1月, 2017 3 次提交
  2. 22 11月, 2016 5 次提交
  3. 04 12月, 2015 1 次提交
    • A
      [media] staging: media: lirc: Replace timeval with ktime_t in lirc_serial.c · 84595032
      Arnd Bergmann 提交于
      'struct timeval tv' is used to get current time.
      'static struct timeval lasttv' is used to get last interrupt time.
      
      32-bit systems using 'struct timeval' will break in the year 2038,
      so we have to replace that code with more appropriate types.
      This patch changes the lirc_serial.c file of media: lirc to use
      ktime_t.
      
      ktime_get() is  better than using do_gettimeofday(),
      because it uses the monotonic clock. ktime_sub is used
      to subtract two ktime variables. The check to test time
      going backwards is also removed. Intialization to static
      variable is also removed. ktime_to_us() is used to convert
      ktime_t to microsecond value. deltv is changed to delkt, a
      ktime_t type varibale from long to assign the ktime_sub value
      directly. ktime_compare is used to compare delkt with 15
      seconds, which is changed to a nanosecond value by using
      ktime_set().
      
      Build tested it.
      Signed-off-by: NTapasweni Pathak <tapaswenipathak@gmail.com>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      84595032
  4. 03 10月, 2015 1 次提交
  5. 06 7月, 2015 1 次提交
  6. 16 3月, 2015 2 次提交
  7. 07 3月, 2015 1 次提交
  8. 04 2月, 2015 1 次提交
  9. 20 10月, 2014 1 次提交
  10. 24 9月, 2014 2 次提交
  11. 20 9月, 2014 1 次提交
  12. 27 7月, 2014 1 次提交
  13. 27 5月, 2014 1 次提交
  14. 26 5月, 2014 1 次提交
  15. 23 5月, 2014 1 次提交
  16. 14 1月, 2014 1 次提交
    • M
      [media] lirc_parallel: avoid name conflict on mn10300 arch · 986058e1
      Mauro Carvalho Chehab 提交于
      The "irq_handler" name is already defined there on a header
      file:
      
      /devel/v4l/temp/drivers/staging/media/lirc/lirc_parallel.c:223:13: error: conflicting types for ‘irq_handler’
       static void irq_handler(void *blah)
                   ^
      In file included from /devel/v4l/temp/arch/mn10300/include/asm/reset-regs.h:16:0,
                       from /devel/v4l/temp/arch/mn10300/include/asm/irq.h:18,
                       from /devel/v4l/temp/include/linux/irq.h:24,
                       from /devel/v4l/temp/arch/mn10300/include/asm/hardirq.h:16,
                       from /devel/v4l/temp/include/linux/preempt_mask.h:5,
                       from /devel/v4l/temp/include/linux/sched.h:25,
                       from /devel/v4l/temp/include/linux/utsname.h:5,
                       from /devel/v4l/temp/arch/mn10300/include/asm/elf.h:15,
                       from /devel/v4l/temp/include/linux/elf.h:4,
                       from /devel/v4l/temp/include/linux/module.h:14,
                       from /devel/v4l/temp/drivers/staging/media/lirc/lirc_parallel.c:29:
      /devel/v4l/temp/arch/mn10300/include/asm/exceptions.h:107:24: note: previous declaration of ‘irq_handler’ was here
       extern asmlinkage void irq_handler(void);
      
      /devel/v4l/patchwork/drivers/staging/media/lirc/lirc_serial.c:653:20: error: conflicting types for ‘irq_handler’
       static irqreturn_t irq_handler(int i, void *blah)
                          ^
      In file included from /devel/v4l/patchwork/arch/mn10300/include/asm/reset-regs.h:16:0,
                       from /devel/v4l/patchwork/arch/mn10300/include/asm/irq.h:18,
                       from /devel/v4l/patchwork/include/linux/irq.h:24,
                       from /devel/v4l/patchwork/arch/mn10300/include/asm/hardirq.h:16,
                       from /devel/v4l/patchwork/include/linux/preempt_mask.h:5,
                       from /devel/v4l/patchwork/include/linux/sched.h:25,
                       from /devel/v4l/patchwork/include/linux/utsname.h:5,
                       from /devel/v4l/patchwork/arch/mn10300/include/asm/elf.h:15,
                       from /devel/v4l/patchwork/include/linux/elf.h:4,
                       from /devel/v4l/patchwork/include/linux/module.h:14,
                       from /devel/v4l/patchwork/drivers/staging/media/lirc/lirc_serial.c:53:
      /devel/v4l/patchwork/arch/mn10300/include/asm/exceptions.h:107:24: note: previous declaration of ‘irq_handler’ was here
       extern asmlinkage void irq_handler(void);
      
      So, rename it, to avoid namespace conflicts.
      
      This patch fixes building media drivers with allyesconfig/almodconfig on
      mn10300 arch.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      986058e1
  17. 12 11月, 2013 1 次提交
  18. 11 11月, 2013 1 次提交
  19. 08 11月, 2013 1 次提交
    • M
      [media] uvc/lirc_serial: Fix some warnings on parisc arch · ce01cbdc
      Mauro Carvalho Chehab 提交于
      On this arch, usec is not unsigned long. So, we need to typecast,
      in order to remove those warnings:
      	drivers/media/usb/uvc/uvc_video.c: In function 'uvc_video_clock_update':
      	drivers/media/usb/uvc/uvc_video.c:678:2: warning: format '%lu' expects argument of type 'long unsigned int', but argument 9 has type '__kernel_suseconds_t' [-Wformat]
      	drivers/staging/media/lirc/lirc_serial.c: In function 'irq_handler':
      	drivers/staging/media/lirc/lirc_serial.c:707:5: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type '__kernel_suseconds_t' [-Wformat]
      	drivers/staging/media/lirc/lirc_serial.c:707:5: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type '__kernel_suseconds_t' [-Wformat]
      	drivers/staging/media/lirc/lirc_serial.c:719:5: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type '__kernel_suseconds_t' [-Wformat]
      	drivers/staging/media/lirc/lirc_serial.c:719:5: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type '__kernel_suseconds_t' [-Wformat]
      	drivers/staging/media/lirc/lirc_serial.c:728:6: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type '__kernel_suseconds_t' [-Wformat]
      	drivers/staging/media/lirc/lirc_serial.c:728:6: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type '__kernel_suseconds_t' [-Wformat]
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      Acked-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Reviewed-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      ce01cbdc
  20. 27 9月, 2013 1 次提交
  21. 22 12月, 2012 1 次提交
  22. 22 11月, 2012 3 次提交
  23. 28 10月, 2012 1 次提交
    • P
      [media] staging: lirc_serial: silence GCC warning · 895507c1
      Paul Bolle 提交于
      Building lirc_serial.o triggers this GCC warning:
          drivers/staging/media/lirc/lirc_serial.c: In function '__check_sense':
          drivers/staging/media/lirc/lirc_serial.c:1301:1: warning: return from incompatible pointer type [enabled by default]
      This can be trivially fixed by changing the 'sense' parameter from bool
      to int. But, to be safe, we also need to make sure 'sense' will only be
      -1, 0, or 1. There's no need to document the new values that are now
      allowed for the 'sense' parameter, since they're basically useless.
      Signed-off-by: NPaul Bolle <pebolle@tiscali.nl>
      Cc: Jarod Wilson <jarod@wilsonet.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      895507c1
  24. 18 6月, 2012 1 次提交
  25. 29 3月, 2012 1 次提交
  26. 20 3月, 2012 1 次提交
  27. 13 1月, 2012 1 次提交
  28. 25 11月, 2011 3 次提交