1. 21 9月, 2017 1 次提交
    • A
      Input: adxl34x - do not treat FIFO_MODE() as boolean · 1dbc080c
      Arnd Bergmann 提交于
      FIFO_MODE() is a macro expression with a '<<' operator, which gcc points
      out could be misread as a '<':
      
      drivers/input/misc/adxl34x.c: In function 'adxl34x_probe':
      drivers/input/misc/adxl34x.c:799:36: error: '<<' in boolean context, did you mean '<' ? [-Werror=int-in-bool-context]
      
      While utility of this warning is being disputed (Chief Penguin: "This
      warning is clearly pure garbage.") FIFO_MODE() extracts range of values,
      with 0 being FIFO_BYPASS, and not something that is logically boolean.
      
      This converts the test to an explicit comparison with FIFO_BYPASS,
      making it clearer to gcc and the reader what is intended.
      
      Fixes: e27c7292 ("Input: add driver for ADXL345/346 Digital Accelerometers")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      1dbc080c
  2. 16 9月, 2017 1 次提交
  3. 13 9月, 2017 1 次提交
  4. 12 9月, 2017 5 次提交
  5. 05 9月, 2017 2 次提交
  6. 01 9月, 2017 4 次提交
  7. 29 8月, 2017 2 次提交
  8. 25 8月, 2017 1 次提交
  9. 22 8月, 2017 2 次提交
  10. 19 8月, 2017 21 次提交