From patchwork Sun Oct 3 12:17:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12532691 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A1D2C433FE for ; Sun, 3 Oct 2021 12:13:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5EF2961267 for ; Sun, 3 Oct 2021 12:13:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230136AbhJCMPb (ORCPT ); Sun, 3 Oct 2021 08:15:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:49314 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230010AbhJCMPb (ORCPT ); Sun, 3 Oct 2021 08:15:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B6B06611C0; Sun, 3 Oct 2021 12:13:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633263224; bh=35nnMRDj5kylJXFuz8iYzx66KGRy+jcLf/tsXrF8eD0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rqyOU9ma/3sL6JMNHf3Kssn3IcSJxTXEB5PPlJdm/oa5y4K+G7dzDSA7seeeS0eEp JrlIwJSvEgLtljT7f4WJc3B+1ZntlsvaoXI++xxtmGHwBjC35g4SN7Uq7j73MkW4In lvvhqoS6MPIi4DkFzTGSr7vGi+lNW9SzTJ/OMhKHZInT/VfZCVAC3+ScJfiwI77KVV iqXq+6Hv8s5/JQq1s2Jaekl//WwkM9M5oLymmPsmq5IGUaa5hiwcAWK8b9N4S2rdEz S9q64NtwMAc7yIyKFUnDGaN6NUfq8UMH5Tw9yvzirm3BOY2YI9qRn4zsQMenL7u2z9 aTwFiC3+aQpoA== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Benson Leung , Enric Balletbo i Serra , Guenter Roeck Cc: Andy Shevchenko , Jonathan Cameron Subject: [PATCH 1/7] platform/chrome: cros_ec_sensorhub_ring - avoid including iio.h Date: Sun, 3 Oct 2021 13:17:05 +0100 Message-Id: <20211003121711.279736-2-jic23@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211003121711.279736-1-jic23@kernel.org> References: <20211003121711.279736-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron struct iio_dev is only used in the platform code as an opaque pointer type so let us add a forwards definition instead of including the main IIO header. Signed-off-by: Jonathan Cameron --- drivers/platform/chrome/cros_ec_sensorhub_ring.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/platform/chrome/cros_ec_sensorhub_ring.c b/drivers/platform/chrome/cros_ec_sensorhub_ring.c index 98e37080f760..26ab852e1e1f 100644 --- a/drivers/platform/chrome/cros_ec_sensorhub_ring.c +++ b/drivers/platform/chrome/cros_ec_sensorhub_ring.c @@ -7,7 +7,6 @@ #include #include -#include #include #include #include @@ -19,6 +18,8 @@ #include "cros_ec_trace.h" +struct iio_dev; + /* Precision of fixed point for the m values from the filter */ #define M_PRECISION BIT(23)