From patchwork Tue May 31 21:22:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 12866170 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 04E30C433EF for ; Tue, 31 May 2022 21:22:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347961AbiEaVWX (ORCPT ); Tue, 31 May 2022 17:22:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347940AbiEaVWW (ORCPT ); Tue, 31 May 2022 17:22:22 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC9F8590B3; Tue, 31 May 2022 14:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654032140; x=1685568140; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Dt2CxOiyigC+mbZ0bjelkM90B9V+cSMQBl66yR98MII=; b=g8N/M7Gr1GfKrMBV05dw3VxvR+0LmLRdrLBNghW0ZXNdqrHmU1umv2JO ZPRiWWcdnCn1UaOA+Yj1eB5otWbecztVHNI9+BC/v9JUG0DZA/yplbZHf 9TlgtuSBXQkVqbiMyOw+0pKRX/cSxITOJq7U8V7g3jt5IaYZP8ExhZZJw VpKEPZ9aZHzh71CYv62UJFBBl0bzUf/nASyXZcoiwzoX4axhreE2Yfgc0 uH+7qEQfgEXEe82sCCA7SyAsuvKyOtvirwtmnDeHlypPj443d30UpfUdf GO1TecBfRYpWgenEup+CcnVAHavCT5eHAp+qGMrGrPs109LokgeOEIANi w==; X-IronPort-AV: E=McAfee;i="6400,9594,10364"; a="257458498" X-IronPort-AV: E=Sophos;i="5.91,266,1647327600"; d="scan'208";a="257458498" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2022 14:22:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,266,1647327600"; d="scan'208";a="904154015" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga005.fm.intel.com with ESMTP; 31 May 2022 14:22:18 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 6617018B; Wed, 1 Jun 2022 00:22:20 +0300 (EEST) From: Andy Shevchenko To: Jonathan Cameron , =?utf-8?q?Andr=C3=A9_Gus?= =?utf-8?q?tavo_Nakagomi_Lopez?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Jonathan Cameron , Lars-Peter Clausen , Vladimir Zapolskiy , Andy Shevchenko Subject: [PATCH v1 1/1] iio: adc: lpc18xx_adc: Switch from of headers to mod_devicetable.h Date: Wed, 1 Jun 2022 00:22:18 +0300 Message-Id: <20220531212218.72189-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org There is nothing directly using of specific interfaces in this driver, so lets not include the headers. While at it, drop dependency to OF, which currently makes no sense. Signed-off-by: Andy Shevchenko --- drivers/iio/adc/Kconfig | 2 +- drivers/iio/adc/lpc18xx_adc.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index 448ae243cd31..b9e913e25a5d 100644 --- a/drivers/iio/adc/Kconfig +++ b/drivers/iio/adc/Kconfig @@ -562,7 +562,7 @@ config LP8788_ADC config LPC18XX_ADC tristate "NXP LPC18xx ADC driver" depends on ARCH_LPC18XX || COMPILE_TEST - depends on OF && HAS_IOMEM + depends on HAS_IOMEM help Say yes here to build support for NXP LPC18XX ADC. diff --git a/drivers/iio/adc/lpc18xx_adc.c b/drivers/iio/adc/lpc18xx_adc.c index ae9c9384f23e..42e6cd6fa6f7 100644 --- a/drivers/iio/adc/lpc18xx_adc.c +++ b/drivers/iio/adc/lpc18xx_adc.c @@ -17,10 +17,9 @@ #include #include #include +#include #include #include -#include -#include #include #include