From patchwork Sun Oct 13 12:35:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11187383 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B3309112B for ; Sun, 13 Oct 2019 12:37:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 944822084D for ; Sun, 13 Oct 2019 12:37:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570970254; bh=49YuXkdLy/5nDhj8hqMUuAy1SjCxYXhUWGj1VlwQobE=; h=From:To:Cc:Subject:Date:List-ID:From; b=Xhrqq40qPpXxBjKoPOrawgadUlTZKV+V/L+xcFNHXP3T5UKzAjB7xyLa2fMzaf5K5 y6RcfbjyZ2IKgHjUPpD4h278T3cV6BZbvK7kvSgR6Jj5N5p5GwVV5lYEZilHEEObGx y3Pd0lI9GO2pGKvIta0u1tezATFQ/p6haW3RZYZg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728956AbfJMMhb (ORCPT ); Sun, 13 Oct 2019 08:37:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:49556 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728932AbfJMMhb (ORCPT ); Sun, 13 Oct 2019 08:37:31 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9F82D2067B; Sun, 13 Oct 2019 12:37:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570970250; bh=49YuXkdLy/5nDhj8hqMUuAy1SjCxYXhUWGj1VlwQobE=; h=From:To:Cc:Subject:Date:From; b=mrIYj8Y5snpAMjOCs7WpL1w9yXd9r0CZlphza0BoCaIdGzIkmjd1CypG9vI1L3Nf5 npJKlB9bgqzSBAg504o8ZXMsLeaGKkgxOnFG8ccqomgKT9huHuMsOH0SvrUMOhLVKb WrqYoZk4y2C8jnH9gT+JKZ10p7AFSQgZg0fM60sw= From: jic23@kernel.org To: linux-iio@vger.kernel.org Cc: Chanwoo Choi , Jonathan Cameron Subject: [PATCH 1/2] iio: adc: exynos: Drop a stray semicolon Date: Sun, 13 Oct 2019 13:35:23 +0100 Message-Id: <20191013123524.1821390-1-jic23@kernel.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Identified by coccinelle drivers/iio/adc/exynos_adc.c:654:2-3: Unneeded semicolon Signed-off-by: Jonathan Cameron Reviewed-by: Chanwoo Choi --- drivers/iio/adc/exynos_adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c index 42a3ced11fbd..b5a497381452 100644 --- a/drivers/iio/adc/exynos_adc.c +++ b/drivers/iio/adc/exynos_adc.c @@ -651,7 +651,7 @@ static irqreturn_t exynos_ts_isr(int irq, void *dev_id) input_sync(info->input); usleep_range(1000, 1100); - }; + } writel(0, ADC_V1_CLRINTPNDNUP(info->regs)); From patchwork Sun Oct 13 12:35:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11187385 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E40BC15AB for ; Sun, 13 Oct 2019 12:37:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BB9AE2084D for ; Sun, 13 Oct 2019 12:37:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570970254; bh=0qXAw18/gOLPuTDIo/e3SEu7vxFj3QkKxpPSAiIDzhY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=QAasAta46dWz/BUFWvTPdC6kooU1QzVYwT6dntCtoOWB6Xg0wAERqnM3aiKNQikiK 8Iu5kFxDEnmTyaiB16Jre/vtmjqgDON7+HLyVv1hxgg3QuzHJI5IZfrZi8vo0xmzTs FQhRH1htLJDzPpjUrAVAC4jwz8bCe1GbA9sFu0Io= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728977AbfJMMhc (ORCPT ); Sun, 13 Oct 2019 08:37:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:49578 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728932AbfJMMhc (ORCPT ); Sun, 13 Oct 2019 08:37:32 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F2267206B7; Sun, 13 Oct 2019 12:37:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570970251; bh=0qXAw18/gOLPuTDIo/e3SEu7vxFj3QkKxpPSAiIDzhY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kL/kw+wIY4ERj8u0xR6/UjJgBTvBioNdKQ0mh2nmc0XlicbbAAi1XD5d38T7O43Ch SpuLaZb/ILPByGC7Zplcedt4HLZ94N6DWAXSMLouoOt1aIHiIA18Z/heDa3UGECgoP sL/gfGGEWXsDB/9Y0cMjKjgXCvwDtmZW2fesChCQ= From: jic23@kernel.org To: linux-iio@vger.kernel.org Cc: Chanwoo Choi , Jonathan Cameron Subject: [PATCH 2/2] iio: adc: exynos: use devm_platform_ioremap_resource Date: Sun, 13 Oct 2019 13:35:24 +0100 Message-Id: <20191013123524.1821390-2-jic23@kernel.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191013123524.1821390-1-jic23@kernel.org> References: <20191013123524.1821390-1-jic23@kernel.org> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Reduce local boilerplate. Identified by coccinelle drivers/iio/adc/exynos_adc.c:792:1-11: WARNING: Use devm_platform_ioremap_resource for info -> regs Signed-off-by: Jonathan Cameron Reviewed-by: Chanwoo Choi --- drivers/iio/adc/exynos_adc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c index b5a497381452..2df7d057b249 100644 --- a/drivers/iio/adc/exynos_adc.c +++ b/drivers/iio/adc/exynos_adc.c @@ -769,7 +769,6 @@ static int exynos_adc_probe(struct platform_device *pdev) struct device_node *np = pdev->dev.of_node; struct s3c2410_ts_mach_info *pdata = dev_get_platdata(&pdev->dev); struct iio_dev *indio_dev = NULL; - struct resource *mem; bool has_ts = false; int ret = -ENODEV; int irq; @@ -788,8 +787,7 @@ static int exynos_adc_probe(struct platform_device *pdev) return -EINVAL; } - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - info->regs = devm_ioremap_resource(&pdev->dev, mem); + info->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(info->regs)) return PTR_ERR(info->regs);