gpio: mockup: improve readability
authorBartosz Golaszewski <brgl@bgdev.pl>
Fri, 9 Jun 2017 11:41:28 +0000 (13:41 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 20 Jun 2017 07:18:55 +0000 (09:18 +0200)
commitb652336d3fb70b95a5b0a5ea3a32e7116b15be29
tree9eb90868ac9f4afe3b88e80fa33ec0e41361a178
parentb6c2e77d34ff775e4cf4ca803877dafd74737551
gpio: mockup: improve readability

We currently shift bits here and there without actually explaining
what we're doing. Add some helper variables with names indicating
their purpose to improve the code readability.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mockup.c