From patchwork Thu Apr 26 17:19:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brad Love X-Patchwork-Id: 10366547 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F345C60225 for ; Thu, 26 Apr 2018 17:27:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5DDB28A0C for ; Thu, 26 Apr 2018 17:27:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA85A28ABC; Thu, 26 Apr 2018 17:27:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0925D28A0C for ; Thu, 26 Apr 2018 17:27:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756878AbeDZR1o (ORCPT ); Thu, 26 Apr 2018 13:27:44 -0400 Received: from sub5.mail.dreamhost.com ([208.113.200.129]:34902 "EHLO homiemail-a80.g.dreamhost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756864AbeDZR1m (ORCPT ); Thu, 26 Apr 2018 13:27:42 -0400 Received: from homiemail-a80.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a80.g.dreamhost.com (Postfix) with ESMTP id ACED6E0673C2; Thu, 26 Apr 2018 10:27:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=nextdimension.cc; h=from :to:cc:subject:date:message-id:in-reply-to:references; s= nextdimension.cc; bh=vptbek2770qbx8QjQaFbYaHIEzk=; b=c4JDWOWIS8s s1Cg8I51ugxcMVCMpNgaWt+s6q+99JH2lZt6ct0MXgoczloea9Z6qJij3juF48Fa GH8ZBUOpsrVBeNbc53KjYQzjOTAVfn30k7+dl9wVZti/q5DOXaDgxYBZ/e4Hugm6 XZ7xX1PY4xmSGwqshp6AUqUldoGNuX9o= Received: from localhost.localdomain (66-90-189-166.dyn.grandenetworks.net [66.90.189.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: brad@nextdimension.ws) by homiemail-a80.g.dreamhost.com (Postfix) with ESMTPSA id 7256BE00083F; Thu, 26 Apr 2018 10:27:37 -0700 (PDT) From: Brad Love To: linux-media@vger.kernel.org Cc: Brad Love Subject: [PATCH 5/7] Header location fix for 3.5.0 to 3.11.x Date: Thu, 26 Apr 2018 12:19:20 -0500 Message-Id: <1524763162-4865-6-git-send-email-brad@nextdimension.cc> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524763162-4865-1-git-send-email-brad@nextdimension.cc> References: <1524763162-4865-1-git-send-email-brad@nextdimension.cc> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Header does not exist before 3.5.0 and is merged into linux/i2c.h in 3.12.0. Signed-off-by: Brad Love --- 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 #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 +#endif +#endif + #endif /* _COMPAT_H */