]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: max732x: use i2c_new_dummy_device()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 21 May 2019 09:03:05 +0000 (11:03 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 31 May 2019 07:33:22 +0000 (09:33 +0200)
commitd4fd1febc520aa7c2059635c41554720e9f12d85
tree5ffdebc581f2d1b76f25a0d6ce91e3e8c6beb3fe
parent55ff02ca3668085eb871c59735845ec184724455
gpio: max732x: use i2c_new_dummy_device()

We now have a resource managed version of i2c_new_dummy_device() that
also returns an actual error code instead of a NULL-pointer. Use it
in the max732x GPIO driver and simplify code in the process.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-max732x.c