From patchwork Fri Sep 1 13:40:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 719609 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6C2BCA0FE6 for ; Fri, 1 Sep 2023 13:40:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349802AbjIANkz (ORCPT ); Fri, 1 Sep 2023 09:40:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349788AbjIANkx (ORCPT ); Fri, 1 Sep 2023 09:40:53 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07F0EE7E; Fri, 1 Sep 2023 06:40:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693575651; x=1725111651; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=352rupwp0v18APS/064zEU6rKG+0wRf5vuEg+1M9N+w=; b=ClQGSaoEHsh55chbP9snHsIgQ9W4pq5DjVkXwh5ulokmJKkmYXud7VtU 5nfr9szOzghH/vgv6WhAEgKpumxLL3utSkusW+B6o9DOzhF6RElRuGUo5 hUhlSmGovs4ea+eegbEta0cwAFVJttJiZbtqSTmqRTLg+NWaeMwRPRS8+ GagWcVadGMk/DxiV091SI3+itBuTzegOWWKTQ9EYziyVQwUd3RzYCWycC au9g0oc4sQwbfBjJUhygk4xv9qnMpiZE0uKd2Xg0FwwqEwduRN2SM2Nky 2Uf6Anb7GPyceBEUzzkQaSEPhXtcx+OJi+bMnIchM+wo5CD+8yryYet0D g==; X-IronPort-AV: E=McAfee;i="6600,9927,10819"; a="373617950" X-IronPort-AV: E=Sophos;i="6.02,219,1688454000"; d="scan'208";a="373617950" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2023 06:40:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10819"; a="986684302" X-IronPort-AV: E=Sophos;i="6.02,219,1688454000"; d="scan'208";a="986684302" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga006.fm.intel.com with ESMTP; 01 Sep 2023 06:40:48 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 636B2899; Fri, 1 Sep 2023 16:40:44 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko Subject: [PATCH v1 10/10] gpio: pca953x: Revisit header inclusions Date: Fri, 1 Sep 2023 16:40:41 +0300 Message-Id: <20230901134041.1165562-10-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230901134041.1165562-1-andriy.shevchenko@linux.intel.com> References: <20230901134041.1165562-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Some of the headers are not use, some are missing. Fix that. Signed-off-by: Andy Shevchenko --- drivers/gpio/gpio-pca953x.c | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index 16f5e3043bf0..b0d768ebf21d 100644 --- a/drivers/gpio/gpio-pca953x.c +++ b/drivers/gpio/gpio-pca953x.c @@ -8,23 +8,30 @@ * Derived from drivers/i2c/chips/pca9539.c */ -#include +#include #include #include -#include -#include +#include +#include #include #include #include +#include +#include #include -#include -#include +#include +#include #include #include #include #include -#include +#include +#include + +#include + +#include #define PCA953X_INPUT 0x00 #define PCA953X_OUTPUT 0x01 @@ -119,6 +126,7 @@ MODULE_DEVICE_TABLE(i2c, pca953x_id); #ifdef CONFIG_GPIO_PCA953X_IRQ +#include #include static const struct acpi_gpio_params pca953x_irq_gpios = { 0, 0, true };