1. 10 3月, 2019 2 次提交
    • A
      Input: raspberrypi-ts - select CONFIG_INPUT_POLLDEV · 33667575
      Arnd Bergmann 提交于
      When CONFIG_INPUT_POLLDEV is disabled, we get a link error:
      
      drivers/input/touchscreen/raspberrypi-ts.o: In function `rpi_ts_probe':
      raspberrypi-ts.c:(.text+0xec): undefined reference to `devm_input_allocate_polled_device'
      raspberrypi-ts.c:(.text+0xec): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `devm_input_allocate_polled_device'
      raspberrypi-ts.c:(.text+0x19c): undefined reference to `input_register_polled_device'
      raspberrypi-ts.c:(.text+0x19c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `input_register_polled_device'
      
      Select that symbol like we do from the other similar drivers.
      
      Fixes: 0b9f28fe ("Input: add official Raspberry Pi's touchscreen driver")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Reviewed-by: NNicolas Saenz Julienne <nsaenzjulienne@suse.de>
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      33667575
    • A
      Input: msm-vibrator - use correct gpio header · 741c73ed
      Arnd Bergmann 提交于
      When CONFIG_GPIOLIB is not set, we get a couple of build
      errors during test building:
      
      drivers/input/misc/msm-vibrator.c: In function 'msm_vibrator_start':
      drivers/input/misc/msm-vibrator.c:79:3: error: implicit declaration of function 'gpiod_set_value_cansleep'; did you mean 'gpio_set_value_cansleep'? [-Werror=implicit-function-declaration]
         gpiod_set_value_cansleep(vibrator->enable_gpio, 1);
         ^~~~~~~~~~~~~~~~~~~~~~~~
         gpio_set_value_cansleep
      drivers/input/misc/msm-vibrator.c: In function 'msm_vibrator_probe':
      drivers/input/misc/msm-vibrator.c:176:26: error: implicit declaration of function 'devm_gpiod_get'; did you mean 'devm_gpio_free'? [-Werror=implicit-function-declaration]
        vibrator->enable_gpio = devm_gpiod_get(&pdev->dev, "enable",
                                ^~~~~~~~~~~~~~
                                devm_gpio_free
      drivers/input/misc/msm-vibrator.c:177:13: error: 'GPIOD_OUT_LOW' undeclared (first use in this function); did you mean 'GPIOF_INIT_LOW'?
                   GPIOD_OUT_LOW);
                   ^~~~~~~~~~~~~
                   GPIOF_INIT_LOW
      drivers/input/misc/msm-vibrator.c:177:13: note: each undeclared identifier is reported only once for each function it appears in
      
      This is easy to avoid when we use gpio/consumer.h as the documented interface.
      
      Fixes: 0f681d09 ("Input: add new vibrator driver for various MSM SOCs")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      741c73ed
  2. 04 3月, 2019 1 次提交
  3. 20 2月, 2019 1 次提交
  4. 19 2月, 2019 1 次提交
  5. 17 2月, 2019 12 次提交
  6. 12 2月, 2019 2 次提交
  7. 10 2月, 2019 5 次提交
  8. 08 2月, 2019 4 次提交
  9. 07 2月, 2019 12 次提交