Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1718262pxb; Mon, 23 Aug 2021 02:59:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylHHcM7Gcc1ULs3WFF9H0ikWDSDWUOJKzkWA3kwUPAn2O6F9Ys5PtvxMRh3YCQcC01zSZS X-Received: by 2002:a92:d68a:: with SMTP id p10mr22003494iln.179.1629712794047; Mon, 23 Aug 2021 02:59:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629712794; cv=none; d=google.com; s=arc-20160816; b=to9xOxRCEMHvRpEw65i93sCQRfyEKBhH754xjHdykNbYNafNF66q4v47D/xdN/5cAL 2MeBNjgOdRo4FipHSP5Sdx1s3Uodj5eX+/vPzk2JS+dFqvFz7U229l+X850ZCGzAK9OC eKTbwNFOM4fOzlaET45TXdW58FQjtuUMvxP7pkOg40sQi/N7zvdXnPiV9l/GWOb0bsPh eweFxupZu6gkj6N7nhk+cQ1NOQWWyivFI2cS+KrmrAs0mrMezRh5kKz7xcCNyl/5y6Pd wjXMDllf0tnZwk4QmbU0aVbFFChkg/Em47XBNHMwq5AFSWBJRRRicKivceZpBFzGscjs qV7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ZygZHmRrzB/tNFQ5v9oAwjw3KTCEOR9ytOZFRBRfjKA=; b=gB7AV/bn3zCYGm19zoc7rfVNNOad88g1LZkP0lqu7ciq7y/0jMJNgbI3gCtPkJsLu1 aQ7LOO0eIv4toc07Lrg/FAR3ZvYXvhR9PM1Rmasxh3um+fXoJGr2wv8AeDiheNHkfYK6 iaJvwsI1OsApDqjdme8vXWzDyRf6ld7CecyTP31FGg1zGITVO9qxr9+ZCqQSHxCasrgr wicsDXyw5Lt2/bWGFEWjNYXmjsae82q14TU0nX0IcW7Me8fLtxWuafMZokQG+iDNsIHo nc/rg0+8iEqyLuw2cD2WxrEunIb3xKHwPLSOvOj0y/q0E1q1bQueYmrbZ+ObYk+oHrpz 1AKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b9si13537744jar.79.2021.08.23.02.59.43; Mon, 23 Aug 2021 02:59:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235872AbhHWJ7m (ORCPT + 99 others); Mon, 23 Aug 2021 05:59:42 -0400 Received: from cmccmta3.chinamobile.com ([221.176.66.81]:20357 "EHLO cmccmta3.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232850AbhHWJ7l (ORCPT ); Mon, 23 Aug 2021 05:59:41 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.9]) by rmmx-syy-dmz-app09-12009 (RichMail) with SMTP id 2ee9612371520a7-03f0e; Mon, 23 Aug 2021 17:58:42 +0800 (CST) X-RM-TRANSID: 2ee9612371520a7-03f0e X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.112.105.130]) by rmsmtp-syy-appsvr05-12005 (RichMail) with SMTP id 2ee56123714e86b-c2292; Mon, 23 Aug 2021 17:58:42 +0800 (CST) X-RM-TRANSID: 2ee56123714e86b-c2292 From: Tang Bin To: jic23@kernel.org, lars@metafoo.de Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Tang Bin Subject: [PATCH] iio: adc: twl6030-gpadc: Use the defined variable to clean code Date: Mon, 23 Aug 2021 17:59:21 +0800 Message-Id: <20210823095921.16828-1-tangbin@cmss.chinamobile.com> X-Mailer: git-send-email 2.20.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the defined variable "dev" to make the code cleaner. Signed-off-by: Tang Bin --- drivers/iio/adc/twl6030-gpadc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/twl6030-gpadc.c b/drivers/iio/adc/twl6030-gpadc.c index 0859f3f7d..5e4fbb033 100644 --- a/drivers/iio/adc/twl6030-gpadc.c +++ b/drivers/iio/adc/twl6030-gpadc.c @@ -897,7 +897,7 @@ static int twl6030_gpadc_probe(struct platform_device *pdev) ret = pdata->calibrate(gpadc); if (ret < 0) { - dev_err(&pdev->dev, "failed to read calibration registers\n"); + dev_err(dev, "failed to read calibration registers\n"); return ret; } @@ -911,14 +911,14 @@ static int twl6030_gpadc_probe(struct platform_device *pdev) ret = twl6030_gpadc_enable_irq(TWL6030_GPADC_RT_SW1_EOC_MASK); if (ret < 0) { - dev_err(&pdev->dev, "failed to enable GPADC interrupt\n"); + dev_err(dev, "failed to enable GPADC interrupt\n"); return ret; } ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, TWL6030_GPADCS, TWL6030_REG_TOGGLE1); if (ret < 0) { - dev_err(&pdev->dev, "failed to enable GPADC module\n"); + dev_err(dev, "failed to enable GPADC module\n"); return ret; } -- 2.20.1.windows.1