diff options
Diffstat (limited to 'drivers/gpio/gpio-janz-ttl.c')
-rw-r--r-- | drivers/gpio/gpio-janz-ttl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-janz-ttl.c b/drivers/gpio/gpio-janz-ttl.c index e5f85cab0100..236d322a0b5e 100644 --- a/drivers/gpio/gpio-janz-ttl.c +++ b/drivers/gpio/gpio-janz-ttl.c | |||
@@ -76,7 +76,7 @@ static int ttl_get_value(struct gpio_chip *gpio, unsigned offset) | |||
76 | spin_lock(&mod->lock); | 76 | spin_lock(&mod->lock); |
77 | ret = *shadow & (1 << offset); | 77 | ret = *shadow & (1 << offset); |
78 | spin_unlock(&mod->lock); | 78 | spin_unlock(&mod->lock); |
79 | return ret; | 79 | return !!ret; |
80 | } | 80 | } |
81 | 81 | ||
82 | static void ttl_set_value(struct gpio_chip *gpio, unsigned offset, int value) | 82 | static void ttl_set_value(struct gpio_chip *gpio, unsigned offset, int value) |