From patchwork Fri Dec 8 13:39:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 846236 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-i2c-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="gg5B3efv"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3ytYP81tr3z9s03 for ; Sat, 9 Dec 2017 00:39:40 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753247AbdLHNji (ORCPT ); Fri, 8 Dec 2017 08:39:38 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:43162 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752990AbdLHNji (ORCPT ); Fri, 8 Dec 2017 08:39:38 -0500 Received: by mail-lf0-f67.google.com with SMTP id 94so11914148lfy.10 for ; Fri, 08 Dec 2017 05:39:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=81um1maT6ICwJsZYFXldV4XSNt/FNAdiDxIODq6y1q4=; b=gg5B3efvOie0h7uhXjXkkpxLL6uY40Sb8VTfRrHBiGXri5nk/w5PY/+leRmhIgpsRY SRxnkPQgkCAoi7zGA8qvACSrxd0HR7kX+17JNILkwLZDa5dziTt9xVzjLAeotjoIO2Ge vDcmrkxMt7M2+I9pPV8KiXlVK+AEhxEyfblXA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=81um1maT6ICwJsZYFXldV4XSNt/FNAdiDxIODq6y1q4=; b=JtKZGxN5HnY20k9HOkJvCxxZyC6gHDt2Yf0xz8sQx+sVd0uu8qGsZKyFWvJVh5YzXL sBqGfRYQzYt7U3EkHPkqe7A37UBbd9eOzpf28cdiZw59J+9oY9gXIPDgMQE2zndTHhlF NEVk+YYZdVT70oi//boA2gU/rtm5rXoxNKouKgQsPkVMY4ucQgNAnjTF2XnVUj8Ef8XI viEHoTYKXoXJp9vmF/o2mL2uFWBdzgx3Rshcc29AHmH2rKPVLQnknhW7zgHUh/DxK5ln xUjjnVglsPELgjaNVF7hKGyCPXSO7jZAehpORECNXj9i1xQ/oDnwTaAxIjhh8k0d52wS rfDQ== X-Gm-Message-State: AJaThX7GLVK6na0tHTNMIVOXkgp4MjQI2FquVr0u9fUSVaGZdc1QL9Up ep/F9CxcN/HOk/mHy0H63De9lw== X-Google-Smtp-Source: AGs4zMbeDRfw0GlkuGeGjFzEtpil+2bQ0RWR6NI4Tr2d1+P4+zmFPIl3+jZvlN7maURHV1TUoO1zBw== X-Received: by 10.25.234.26 with SMTP id i26mr14759529lfh.188.1512740377076; Fri, 08 Dec 2017 05:39:37 -0800 (PST) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id f10sm1428210lff.56.2017.12.08.05.39.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Dec 2017 05:39:36 -0800 (PST) From: Linus Walleij To: Wolfram Sang , linux-i2c@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Linus Walleij Subject: [PATCH] i2c: Include GPIO consumer header in main include Date: Fri, 8 Dec 2017 14:39:34 +0100 Message-Id: <20171208133934.18038-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org It seems most users of pick up their dependency of from other paths but that is not a universal law, so include the header explicitly so we have struct gpio_desc available. Signed-off-by: Linus Walleij --- include/linux/i2c.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 5d7f3c1853ae..8b968c44ddfa 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -34,6 +34,7 @@ #include /* for Host Notify IRQ */ #include /* for struct device_node */ #include /* for swab16 */ +#include #include extern struct bus_type i2c_bus_type;