mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
gpio: mockup: tweak line breaks
Minor readability tweak: prefer breaking the lines in a way where the second part is longer than the first. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
fa86963a75
commit
2a9d742c26
1 changed files with 4 additions and 4 deletions
|
@ -88,16 +88,16 @@ static int gpio_mockup_get(struct gpio_chip *gc, unsigned int offset)
|
||||||
return chip->lines[offset].value;
|
return chip->lines[offset].value;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gpio_mockup_set(struct gpio_chip *gc, unsigned int offset,
|
static void gpio_mockup_set(struct gpio_chip *gc,
|
||||||
int value)
|
unsigned int offset, int value)
|
||||||
{
|
{
|
||||||
struct gpio_mockup_chip *chip = gpiochip_get_data(gc);
|
struct gpio_mockup_chip *chip = gpiochip_get_data(gc);
|
||||||
|
|
||||||
chip->lines[offset].value = !!value;
|
chip->lines[offset].value = !!value;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int gpio_mockup_dirout(struct gpio_chip *gc, unsigned int offset,
|
static int gpio_mockup_dirout(struct gpio_chip *gc,
|
||||||
int value)
|
unsigned int offset, int value)
|
||||||
{
|
{
|
||||||
struct gpio_mockup_chip *chip = gpiochip_get_data(gc);
|
struct gpio_mockup_chip *chip = gpiochip_get_data(gc);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue