]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mockup: refactor the module init function
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 29 Sep 2020 10:10:04 +0000 (12:10 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 30 Sep 2020 08:52:21 +0000 (10:52 +0200)
commit0be37860a7d315f5c20044d2b1e2c12277cdbe3e
treee01dbf96376c33fd4c575943191f1ec633f0ec35
parentb0d1ff0b7fd7bb3d54a3d68eef440a445448adde
gpio: mockup: refactor the module init function

Let's move the code preparing the device properties into a separate
routine. This has the advantage of simplifying the error handling and
makes the indentation less deep.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpio-mockup.c