Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2094982pxk; Sat, 26 Sep 2020 17:02:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwggFgOc3dWDH6AxWn3gZcF9HCZXmDDHMmEHY+2QkC/JggV+GmGTSDRkHwoOUUeUonLoehR X-Received: by 2002:aa7:c70a:: with SMTP id i10mr8719555edq.218.1601164957423; Sat, 26 Sep 2020 17:02:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601164957; cv=none; d=google.com; s=arc-20160816; b=z53EChEz+U2Vg8BaUuR6asoujYd6VA4pSUNwnhXQmgIQ0L9mjJ2j+fOggk8Dvwmma7 eGQAyUEAid0bSiML6yxT3HXYUXWHh/UlBa6xCXourdpPZ1VhZm7uMiz3cY90k8+WutZZ yBMa1nwch/9R8bnSohM8DBXBvuLX49Cmy7v7ACiivKrmRoiY6LchAz4pMeIzJEKjvwn+ QzPOy35HyU8yBcV+/erooPzf5vXGU0d5V3a2iyfXaa7Tn09O+8JZ8nCUgYhWjRJB7YkI eQ4kZX1FB0sywgAW5p818XcsztrTra+TuKgeJ2CE4VW5kopj7PVRiYuf9nRJh/c4sCWR hrxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :subject:from:references:in-reply-to:message-id:date:dkim-signature; bh=ZwSMx9OrtY3qQmYepSr27OA76r7UBahIMktfOerlYwA=; b=OQrj3gzZH/3u2NJd+4A3WT32wbcVaSeZHPAF7JtXnbBtJHZ5FuutJaA+zPrNsc0UnL z8wQQ00OAQ3hGm5r6Fzs6iiTDUPFmRDc9142NFcS3pgQhhgohfXU3rsw/oybC1sBuI1y Do8Fip/1rheeGK+Z9UfWFqO4ipDEuMCo2Nt5zbTJeh1LTmAtvXmjs6c/h88ry3OOh8+H WTf1Nt4BTKKvaEJCspGZLgvb/y75q+veR5Jp1KpCfF1hqe1TNQfNOUUIAw09Y0eOSaWm 45sdnrxE8y9F4htE86frfyyBltGfjruwgAQ3GSgbrcWsDeqfTNF1YfR53oTxuaBgFLh6 eueA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=omVwFkZi; 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 p15si4612730ejm.293.2020.09.26.17.02.14; Sat, 26 Sep 2020 17:02:37 -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; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=omVwFkZi; 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 S1728995AbgIZX72 (ORCPT + 99 others); Sat, 26 Sep 2020 19:59:28 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:6931 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726426AbgIZX7T (ORCPT ); Sat, 26 Sep 2020 19:59:19 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4BzQjx5nYBzc8; Sun, 27 Sep 2020 01:59:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1601164757; bh=uMRVWVBG1Z+A3OIeVUCDbEDNzEgxLJlsjWfFkOCe9zw=; h=Date:In-Reply-To:References:From:Subject:To:Cc:From; b=omVwFkZi3ZCahiHcVV3f4vO/nTr6+fvrDqyvW3Kr4aMX7ia0sk8/1osuWb/bK8PAw YTW2xKt0SolJvtvurmGcPFSLb1OWNok5zfN/XYP3EsFhxY7uv24r5+1SG8Dj71qo4y WSqvTa7JZRP18uOsSBHC9baTHQ26Zgh89ARSQf0Vv61IFahXdl8JFEckHBSVEYci87 tdIBtQGJN9MnFN3Ookc2LtDmCzVVE41Svxgw13YU3PfDMjvWCv+JxUXQI2znzAb/nE fazs2E1j9LJsSMJ+FMJ71m3C+mqucsJnP8fvUTM6YMMyPI//x98U/sxr03l0YvU9O3 uLg4HxJDVsvdA== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.4 at mail Date: Sun, 27 Sep 2020 01:59:17 +0200 Message-Id: <3c37cdd9a0f23157e56ada0e2f15aa7370661ef4.1601164493.git.mirq-linux@rere.qmqm.pl> In-Reply-To: References: From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Subject: [PATCH 3/5] mfd: tps65911-comparator: use regmap accessors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: Lee Jones , Bartosz Golaszewski , Liam Girdwood , Linus Walleij , Mark Brown , Tony Lindgren Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use regmap accessors directly for register manipulation - removing one layer of abstraction. Signed-off-by: Michał Mirosław --- drivers/mfd/tps65911-comparator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/tps65911-comparator.c b/drivers/mfd/tps65911-comparator.c index 2334cd61c98d..8f4210075913 100644 --- a/drivers/mfd/tps65911-comparator.c +++ b/drivers/mfd/tps65911-comparator.c @@ -69,7 +69,7 @@ static int comp_threshold_set(struct tps65910 *tps65910, int id, int voltage) return -EINVAL; val = index << 1; - ret = tps65910_reg_write(tps65910, tps_comp.reg, val); + ret = regmap_write(tps65910->regmap, tps_comp.reg, val); return ret; } @@ -80,7 +80,7 @@ static int comp_threshold_get(struct tps65910 *tps65910, int id) unsigned int val; int ret; - ret = tps65910_reg_read(tps65910, tps_comp.reg, &val); + ret = regmap_read(tps65910->regmap, tps_comp.reg, &val); if (ret < 0) return ret; -- 2.20.1