• Hans Verkuil's avatar
    [media] s3c-camif: fix compiler warnings · 7e0d4e92
    Hans Verkuil authored
    Fix these compiler warnings that appeared after switching to gcc-5.1.0:
    
    drivers/media/platform/s3c-camif/camif-capture.c: In function 'sensor_set_power':
    drivers/media/platform/s3c-camif/camif-capture.c:118:10: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
      if (!on == camif->sensor.power_count)
              ^
    drivers/media/platform/s3c-camif/camif-capture.c: In function 'sensor_set_streaming':
    drivers/media/platform/s3c-camif/camif-capture.c:134:10: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
      if (!on == camif->sensor.stream_count)
              ^
    Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
    Cc: Kamil Debski <k.debski@samsung.com>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
    7e0d4e92
camif-capture.c 42.5 KB