linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Brad Love <brad@nextdimension.cc>
To: linux-media@vger.kernel.org
Cc: Brad Love <brad@nextdimension.cc>
Subject: [PATCH 5/7] Header location fix for 3.5.0 to 3.11.x
Date: Thu, 26 Apr 2018 12:19:20 -0500	[thread overview]
Message-ID: <1524763162-4865-6-git-send-email-brad@nextdimension.cc> (raw)
In-Reply-To: <1524763162-4865-1-git-send-email-brad@nextdimension.cc>

Header does not exist before 3.5.0 and is merged into linux/i2c.h
in 3.12.0.

Signed-off-by: Brad Love <brad@nextdimension.cc>
---
 v4l/compat.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/v4l/compat.h b/v4l/compat.h
index d52c602..87ce401 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -2414,4 +2414,11 @@ static inline void *memdup_user_nul(const void __user *src, size_t len)
 #include <linux/frame.h>
 #endif
 
+/* header location for of_find_i2c_[device,adapter]_by_node */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 12, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 0)
+#include <linux/of_i2c.h>
+#endif
+#endif
+
 #endif /*  _COMPAT_H */
-- 
2.7.4

  parent reply	other threads:[~2018-04-26 17:27 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-26 17:19 [PATCH 0/7] media_build: various kernel version fixes Brad Love
2018-04-26 17:19 ` [PATCH 1/7] Disable VIDEO_ADV748X for kernels older than 4.8 Brad Love
2018-04-26 17:19 ` [PATCH 2/7] Disable additional drivers requiring gpio/consumer.h Brad Love
2018-05-12  9:31   ` Jasmin J.
2018-05-12 13:20     ` Brad Love
2018-05-12 15:36       ` Brad Love
2018-05-12 19:31         ` Jasmin J.
2018-04-26 17:19 ` [PATCH 3/7] Disable DVBC8SECTPFE for kernels older than 3.5 Brad Love
2018-04-26 17:19 ` [PATCH 4/7] Disable SOC_CAMERA " Brad Love
2018-04-26 17:19 ` Brad Love [this message]
2018-05-12 19:42   ` [PATCH 5/7] Header location fix for 3.5.0 to 3.11.x Jasmin J.
2018-05-12 22:46     ` Brad Love
2018-05-13  7:49       ` Jasmin J.
2018-04-26 17:19 ` [PATCH 6/7] Fix frame vector wildcard file check Brad Love
2018-05-11 14:35   ` Hans Verkuil
2018-04-26 17:19 ` [PATCH 7/7] Add config-compat.h override config-mycompat.h Brad Love
2018-05-11 14:41   ` Hans Verkuil
2018-05-11 15:08     ` Brad Love
2018-05-11 15:11       ` Hans Verkuil
2018-05-11 15:23         ` Brad Love
2018-05-11 20:02       ` Jasmin J.
2018-05-11 20:38         ` Brad Love
2018-05-11 21:43           ` Jasmin J.
2018-05-11 21:48             ` Brad Love

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1524763162-4865-6-git-send-email-brad@nextdimension.cc \
    --to=brad@nextdimension.cc \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).