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


Groups > linux.kernel > #1331262 > unrolled thread

[PATCH] Input: colibri ts: include linux/of.h explicitly

Started byArnd Bergmann <arnd@arndb.de>
First post2016-02-10 16:20 +0100
Last post2016-02-10 16:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] Input: colibri ts: include linux/of.h explicitly Arnd Bergmann <arnd@arndb.de> - 2016-02-10 16:20 +0100

#1331262 — [PATCH] Input: colibri ts: include linux/of.h explicitly

FromArnd Bergmann <arnd@arndb.de>
Date2016-02-10 16:20 +0100
Subject[PATCH] Input: colibri ts: include linux/of.h explicitly
Message-ID<r0EIG-3QV-17@gated-at.bofh.it>
The newly added driver calls functions for accessing the DT but
does not include the header they are defined in, which fails
in configurations in which we don't get the header implicitly
through something else:

drivers/input/touchscreen/colibri-vf50-ts.c: In function 'vf50_ts_probe':
drivers/input/touchscreen/colibri-vf50-ts.c:302:10: error: implicit declaration of function 'of_property_read_u32' [-Werror=implicit-function-declaration]

This adds an explict #include, to ensure we can always build it.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 48ead50c1dd8 ("Input: Add touchscreen support for Colibri VF50")
---
 drivers/input/touchscreen/colibri-vf50-ts.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/input/touchscreen/colibri-vf50-ts.c b/drivers/input/touchscreen/colibri-vf50-ts.c
index 5d4903a402cc..69828d015d45 100644
--- a/drivers/input/touchscreen/colibri-vf50-ts.c
+++ b/drivers/input/touchscreen/colibri-vf50-ts.c
@@ -21,6 +21,7 @@
 #include <linux/interrupt.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/pinctrl/consumer.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
-- 
2.7.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web