Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1570734 > unrolled thread
| Started by | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| First post | 2017-01-31 14:30 +0100 |
| Last post | 2017-01-31 14:30 +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.
Re: [PATCH 1/7] gpiolib: clean up includes Linus Walleij <linus.walleij@linaro.org> - 2017-01-31 14:30 +0100
| From | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| Date | 2017-01-31 14:30 +0100 |
| Subject | Re: [PATCH 1/7] gpiolib: clean up includes |
| Message-ID | <t5GFr-1cI-11@gated-at.bofh.it> |
On Wed, Jan 25, 2017 at 4:34 PM, Bartosz Golaszewski <bgolaszewski@baylibre.com> wrote: > gpiolib.h uses enum gpiod_flags, but doesn't pull in gpio/consumer.h. > Include it in gpiolib.h and don't include neither consumer.h nor > driver.h from modules that already include gpiolib.h. Nah.... .c files should include the headers representing the symbols they use. Not rely on secondary inclusions. Drivers should ideally *always* and *only* include <linux/gpio/driver.h>. If they include other stuff, that is just tautological icing on the cake. So, I'm gonna drop this. Yours, Linus Walleij
Back to top | Article view | linux.kernel
csiph-web