Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp417203ybb; Fri, 10 Apr 2020 02:44:44 -0700 (PDT) X-Google-Smtp-Source: APiQypJo1Cerj+NsYteVkhX/5mCzo6qrE4hPk48eUuV1CIsYXVLyfZAOnco8iRZHL0YKC8MXhCAl X-Received: by 2002:a37:67c8:: with SMTP id b191mr3276326qkc.166.1586511884723; Fri, 10 Apr 2020 02:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586511884; cv=none; d=google.com; s=arc-20160816; b=FomtXH6PRV1wowITngYFrPINyGIfNQ/J4OLvCOWsY3HWJy9iYY151F7BaoF79ga2ko ThrROOjpK1vHD2jAcx5CEWIZXts/sZ2e0a7on+3PB5VuDwYf7z8nhjLwjuqZZpRjzm1z 2Bgw8iOVa/4zebW01m4ssjo9lKcLHFlYrH0Mu8NZxy9qcW7sqd5Opfy6mxXNe4zeUAbG 1y2ygmKjcaE7tltywfZNGTMdaZPK7C11gUNo5v58CTaEMV/XafsjyyWYg2rN1VDZd4WB GqcP9dae/u6lMWvnawqnggBN8enjL3nqIsAWejEzH8r9JR4PCV2ThCgPeShFbjeun12Q j2BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=F8UqKiWgsSHiMoGQyCyV9GY+lAN74tpZIBErevA5oYw=; b=r2Oyc+vLD0arMAepTyRF96ifU5EWCRedNfkpVDrSTYjnf78a555aVzreGKB06plJET vBiL5QEAVbwtUgvSFZ5oaSrxKyjsFi67She2gSV983GWVbSsTLqTRPDipaLjRkoABDAv EyjRcaulalJFf7e6z/pG034jWhThLHKoqONOJuvBEgyfBpv4l2IG9/gR2u09TtjkSVUG 4rEqxEA3ZmfcKrTKH9mxSmebjaAvW1RQ5zlKAdPqh+DUaZE5BHU+UjJUC2689ZfaaH2z M+nq2azaTY6FxFVsRXojayHlzWu5W+24AeLZgPX92vBbvh+1E02YuyPa4UoKkMDs+Abq lCcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XgBxphpJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 17si1085590qkg.9.2020.04.10.02.44.29; Fri, 10 Apr 2020 02:44:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XgBxphpJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726092AbgDJJnp (ORCPT + 99 others); Fri, 10 Apr 2020 05:43:45 -0400 Received: from mail-pj1-f67.google.com ([209.85.216.67]:38035 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725924AbgDJJno (ORCPT ); Fri, 10 Apr 2020 05:43:44 -0400 Received: by mail-pj1-f67.google.com with SMTP id t40so588978pjb.3; Fri, 10 Apr 2020 02:43:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=F8UqKiWgsSHiMoGQyCyV9GY+lAN74tpZIBErevA5oYw=; b=XgBxphpJWngdfKxnfX8bAaKwdG2vny8asgZwyRWTHV/jfBABLlC2MHjXHJy7fU6dKZ mSEouQatBheEvxHnSI8XN9x2dDyvuvMDKlJWmt3lT4v2+AdcFTIe7hls6zTCik+qMjHP e8NgjTFGyq7/WP3uQ0i+o0QY6TWLN0AUMfbtMB96kwfnHxJ9kOo+WJrUi0HxkluS/iCt s0Ki/JHJlpIALiiwpMJR4NMUfAicgZBOaiOQnOybPUrGHWIQBpT7DJfgQotRoV/XNPPU 2Q0ljXPcL3T2bdrJtHEF/Ysiz5SWP513TgiUOXtqX6rnZTqrfb+CZ8bJTHkNJtLXC3sa 2UiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=F8UqKiWgsSHiMoGQyCyV9GY+lAN74tpZIBErevA5oYw=; b=SqHEyOAcGPuIDMq64vGYMTIJQaVSv6v6WnYB/NayVanTTBnXOHTMaeXeiOfvYaUra1 Afs9k7lmnpsTDgcd+ZQjqM9auL1S+PntHO9i5JvRgthF+6BZxpiM/E74s5r5j4mtq3P4 kJqkSsgiw7n2d0oBIGuYoAx8mvwsYuW8yateBKLdNhws2sDBcsPgeLqYjDoD7UsoBrfk 45jZBEEtvNbDSeVqP0VKdzDJ0Lx2Jj2TCVt1NaMON0daRi/1bSp9bsGd3NzlxGvlfpM3 XIfdqbJD4YqUDCCHydkMMOZbVqB/DShwhZYWqSqohhJ9XMJKzxGvX5ERulkFDHwomwOy cfrg== X-Gm-Message-State: AGi0PuZCXQkak7Ji3MoJWBTLw8kZDcG2BKHYlwOdIV7E1DJIET/MXNP7 jDPKfNg0xEl/K45MoukGvzI= X-Received: by 2002:a17:902:8d91:: with SMTP id v17mr3700951plo.53.1586511823774; Fri, 10 Apr 2020 02:43:43 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:991:ccd7:9dbb:79c0:fda5:adef]) by smtp.gmail.com with ESMTPSA id bt19sm1305507pjb.3.2020.04.10.02.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Apr 2020 02:43:43 -0700 (PDT) From: Aishwarya R To: alexandre.belloni@bootlin.com Cc: aishwaryarj100@gmail.com, Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Nicolas Ferre , Ludovic Desroches , Kate Stewart , Stephen Boyd , Kefeng Wang , Thomas Gleixner , linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] iio: adc: at91-adc: Use devm_platform_ioremap_resource Date: Fri, 10 Apr 2020 15:13:09 +0530 Message-Id: <20200410094324.4334-1-aishwaryarj100@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200409151125.32677-1-aishwaryarj100@gmail.com> References: <20200409151125.32677-1-aishwaryarj100@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use helper function to simply the code. The devm_platform_ioremap_resource() helper in the kernel which helps to make code cleaner a tad by replacing few "boilerplate" lines of code with a single line.