From patchwork Fri Jun 11 17:13:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12316293 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28343C48BE0 for ; Fri, 11 Jun 2021 17:12:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 10967613F1 for ; Fri, 11 Jun 2021 17:12:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231344AbhFKROO (ORCPT ); Fri, 11 Jun 2021 13:14:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:60566 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230186AbhFKROO (ORCPT ); Fri, 11 Jun 2021 13:14:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 816CC613DF; Fri, 11 Jun 2021 17:12:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623431536; bh=WJHMBM4T9UOF5tTQKoW6YGEjcHubXL/EgoTZGE5ik0E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lO8QHwG8tFLrLb1liqMQlpfnpSwCVBjgryR1LZ3levi6jhE3pAOrXKFFJXWOM9UM5 8y3kg58fixDPqqUDrTFoOHFjn5nc9DdBl2QOh5smZGbFiwlKq3LAliZ8EfUflR5All 7o7AbXAPYvLkmPSee4FUfUp4fEwX4ofgBH+Gz7qnHtY4tIxVaXsLkE8nvVLpp82DMI TVBVCoTCPBtlbVaawNMJuifl2zDugWctADFGWDXBHmYTpkC+osHTEh0jAznftSNZ8Q iTWEffPldhOs6z9xVci/mjnAOg/jIUInT2gnfxUpMoFxLGwiXLUwjm8lMTxrJ0Jf8g z9BfPnUlN56cg== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Jonathan Cameron Subject: [PATCH 04/12] iio:accel:miramems drivers: Cleanup headers Date: Fri, 11 Jun 2021 18:13:46 +0100 Message-Id: <20210611171355.202903-5-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210611171355.202903-1-jic23@kernel.org> References: <20210611171355.202903-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Based on consideration of the output of the include-what-you-use tool. Drop unused headers and include some that are directly used inside the files. Signed-off-by: Jonathan Cameron --- drivers/iio/accel/da280.c | 3 +-- drivers/iio/accel/da311.c | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/iio/accel/da280.c b/drivers/iio/accel/da280.c index 5edff9ba72da..0fb20dbde49b 100644 --- a/drivers/iio/accel/da280.c +++ b/drivers/iio/accel/da280.c @@ -7,11 +7,10 @@ */ #include +#include #include #include #include -#include -#include #define DA280_REG_CHIP_ID 0x01 #define DA280_REG_ACC_X_LSB 0x02 diff --git a/drivers/iio/accel/da311.c b/drivers/iio/accel/da311.c index 92593a1cd1aa..c944e18c97f0 100644 --- a/drivers/iio/accel/da311.c +++ b/drivers/iio/accel/da311.c @@ -6,11 +6,11 @@ * Copyright (c) 2011-2013 MiraMEMS Sensing Technology Co., Ltd. */ +#include #include +#include #include #include -#include -#include #define DA311_CHIP_ID 0x13