Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1566681 > unrolled thread

[PATCH 3/7] gpio: mockup: set the mockup flag in struct gpio_chip

Started byBartosz Golaszewski <bgolaszewski@baylibre.com>
First post2017-01-25 16:40 +0100
Last post2017-01-25 16:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/7] gpio: mockup: set the mockup flag in struct gpio_chip Bartosz Golaszewski <bgolaszewski@baylibre.com> - 2017-01-25 16:40 +0100

#1566681 — [PATCH 3/7] gpio: mockup: set the mockup flag in struct gpio_chip

FromBartosz Golaszewski <bgolaszewski@baylibre.com>
Date2017-01-25 16:40 +0100
Subject[PATCH 3/7] gpio: mockup: set the mockup flag in struct gpio_chip
Message-ID<t3xPX-3w9-1@gated-at.bofh.it>
gpio-mockup creates dummy devices, so indicate it.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
 drivers/gpio/gpio-mockup.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c
index 82a9efd..cf8b1b2 100644
--- a/drivers/gpio/gpio-mockup.c
+++ b/drivers/gpio/gpio-mockup.c
@@ -101,6 +101,7 @@ static int mockup_gpio_add(struct device *dev,
 	cntr->gc.direction_output = mockup_gpio_dirout;
 	cntr->gc.direction_input = mockup_gpio_dirin;
 	cntr->gc.get_direction = mockup_gpio_get_direction;
+	cntr->gc.mockup = true;
 	cntr->stats = devm_kzalloc(dev, sizeof(*cntr->stats) * cntr->gc.ngpio,
 				   GFP_KERNEL);
 	if (!cntr->stats) {
-- 
2.9.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web