1. 27 3月, 2019 8 次提交
  2. 22 3月, 2019 3 次提交
  3. 18 3月, 2019 7 次提交
    • A
      gpio: vf610: Don't use explicit &pdev->dev in vf610_gpio_probe() · 2e35bb6c
      Andrey Smirnov 提交于
      The code already defines "dev" variable to help with that, so make
      sure all of the code uses it.
      Signed-off-by: NAndrey Smirnov <andrew.smirnov@gmail.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
      Cc: Chris Healy <cphealy@gmail.com>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Heiner Kallweit <hkallweit1@gmail.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-imx@nxp.com
      Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
      2e35bb6c
    • A
      gpio: vf610: Use devres to remove gpiochip · a74b4b11
      Andrey Smirnov 提交于
      Now that the driver's custom remove hook contains only a single
      action, replace it by converting the code to use
      devm_gpiochip_add_data() to simplify things.
      Signed-off-by: NAndrey Smirnov <andrew.smirnov@gmail.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
      Cc: Chris Healy <cphealy@gmail.com>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Heiner Kallweit <hkallweit1@gmail.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-imx@nxp.com
      Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
      a74b4b11
    • A
      gpio: vf610: Use devres to disable clk_gpio · fc57949c
      Andrey Smirnov 提交于
      Clk_gpio should be disabled in all error paths in the code that
      follws, including the case when either gpiochip_add_data() or
      gpiochip_irqchip_add() fail. To simplify things fix this by using
      devm_add_action() to disable corresponding clock in case of any erros
      as well as driver/device removal.
      Signed-off-by: NAndrey Smirnov <andrew.smirnov@gmail.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
      Cc: Chris Healy <cphealy@gmail.com>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Heiner Kallweit <hkallweit1@gmail.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-imx@nxp.com
      Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
      fc57949c
    • A
      gpio: vf610: Use devres to disable clk_port · db9ed63c
      Andrey Smirnov 提交于
      Clk_port should be disabled in all error paths in the code that
      follws, including the case when either gpiochip_add_data() or
      gpiochip_irqchip_add() fail. To simplify things fix this by using
      devm_add_action_or_reset() to disable corresponding clock in case of
      any erros as well as driver/device removal.
      Signed-off-by: NAndrey Smirnov <andrew.smirnov@gmail.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
      Cc: Chris Healy <cphealy@gmail.com>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Heiner Kallweit <hkallweit1@gmail.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-imx@nxp.com
      Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
      db9ed63c
    • A
      gpio: vf610: Simplify vf610_gpio_get() · 4a8909d0
      Andrey Smirnov 提交于
      Both branches of the if statement do exactly the same thing, just at
      different offsets. Simplify the code a bit by moving shared action
      code outside of the if statement. No functional change intended.
      Signed-off-by: NAndrey Smirnov <andrew.smirnov@gmail.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
      Cc: Chris Healy <cphealy@gmail.com>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Heiner Kallweit <hkallweit1@gmail.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-imx@nxp.com
      Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
      4a8909d0
    • A
      gpio: vf610: Simplify vf610_gpio_set() · a262555b
      Andrey Smirnov 提交于
      The only difference between two codepaths is register offset
      used. Simplify the code a bit by replacing explicit calls with a
      single call with a variable offset. No functional change intended.
      Signed-off-by: NAndrey Smirnov <andrew.smirnov@gmail.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
      Cc: Chris Healy <cphealy@gmail.com>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Heiner Kallweit <hkallweit1@gmail.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-imx@nxp.com
      Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
      a262555b
    • A
      gpio: vf610: Do not share irq_chip · 338aa107
      Andrey Smirnov 提交于
      Fix the warning produced by gpiochip_set_irq_hooks() by allocating a
      dedicated IRQ chip per GPIO chip/port.
      Signed-off-by: NAndrey Smirnov <andrew.smirnov@gmail.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
      Cc: Chris Healy <cphealy@gmail.com>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Heiner Kallweit <hkallweit1@gmail.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: linux-gpio@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-imx@nxp.com
      Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
      338aa107
  4. 15 3月, 2019 3 次提交
  5. 14 3月, 2019 19 次提交