Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1408732lqa; Mon, 29 Apr 2024 07:46:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIam0n6KX29rLg010/C8Bk+cBizQOMUmdth9Xvo8H8Wxwo7RFCb9vAZCujXPokGDXf7MufxUvm0vGJVMnUOeElPC1gUZnpNWmYLqv5vA== X-Google-Smtp-Source: AGHT+IEIYlLDV4PZT8F1wJ2kUxHE2QCwAn4wWFyAN/P9NldrQHBXfNT+yO18p+HSFMXClvsx1kyy X-Received: by 2002:a05:6102:3945:b0:47c:31be:f984 with SMTP id f5-20020a056102394500b0047c31bef984mr6359343vsu.15.1714401963300; Mon, 29 Apr 2024 07:46:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714401963; cv=pass; d=google.com; s=arc-20160816; b=eUKpwC3S7oPT5RA/lOwTqs2JroGowhOnQPDmZ2QcHn7YTVri5D/JLznRzKss5N3fM7 GdV41QIA6WsbFvYIcJPVUbHyVjfVPa5OV4ChgiYTD/WZKrmFnyKotnkTvnTjkmaSTEjw tI3QTcD8PB9G+Vdq95o1JMkNLyFvkxya87h9sHbYcIudCMoJPtwd50nX1xfcRNZ+zrWy SY0qJeB7Gaqwow2e/Zhcle7Ltt+c7vzi334U9YEjJhPGhRPZaVTiTSFDTGwwIy+Zpnpa P6Pe5eRHgOK7V1UCyuI/S+G5GOqhKYcdXOV6tKKeCSCcwkRTa+eJ90CviN3RZy0Na+8t YsgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:dkim-signature; bh=esEpZ3j1h1gurtlRnC9jigj4LfXhBjnxeL4Dl2vJ3dQ=; fh=9+JPiKUqmiwg7nrgynbn+qu8x0UhUJwyp0gAHVwwYQs=; b=rqUFTLTA3GbNA0963h4vldzazD9/MrV8VF+yoFL6V3bXZwOvUDk+JgM6av4PbFjQsq REHLI4uAKxLouF+e/LpBcODC9JjXlw1TyNoiolK5B4iKMLZppXg5Qz4TfrxNehV7gAmV XOZpyFFxNEjZhWy65KfLXdMELpMM/kUbkROdxWu6ynVrx3UebqeTgleOR+6rNYWb5q2C dENEh3u36/el45u524Ir0Rjs26PwwMbncFfEBIihS9A7TC0O93Q6luycVda0FzElNRVi Fy/8vB/v0fc81RdBbEErrYD3UNadJeQ7N5b7cZMQb40Qsd9GTD8evJjENGATEUaOiZk/ hCUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=FVCfwT2p; arc=pass (i=1 spf=pass spfdomain=rere.qmqm.pl dkim=pass dkdomain=rere.qmqm.pl dmarc=pass fromdomain=rere.qmqm.pl); spf=pass (google.com: domain of linux-kernel+bounces-162471-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162471-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=rere.qmqm.pl Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ib20-20020a0561022b9400b0047c10f2844bsi2469088vsb.209.2024.04.29.07.46.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 07:46:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162471-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=FVCfwT2p; arc=pass (i=1 spf=pass spfdomain=rere.qmqm.pl dkim=pass dkdomain=rere.qmqm.pl dmarc=pass fromdomain=rere.qmqm.pl); spf=pass (google.com: domain of linux-kernel+bounces-162471-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162471-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=rere.qmqm.pl Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E81C31C213E8 for ; Mon, 29 Apr 2024 14:46:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 877A481ABE; Mon, 29 Apr 2024 14:45:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rere.qmqm.pl header.i=@rere.qmqm.pl header.b="FVCfwT2p" Received: from rere.qmqm.pl (rere.qmqm.pl [91.227.64.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B543A7EEF2 for ; Mon, 29 Apr 2024 14:45:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.227.64.183 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714401939; cv=none; b=ThKzgorVI5hgSDcY24CgY+XtNuGkhCX59kbihEM6aQL57lRxGysDB0Qs0Df8ub24C84mEpMWxzhD/9TeZw+tvYw7tWcklCPkhpGCNbA4Mbt8gUZKwwcoMhEN3bPzydiFtYJcY2gLe6S5tWEwRPqZSnWFdvuHTyTV4kT0iWVTB/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714401939; c=relaxed/simple; bh=oAPaEdKRQbl/ibo90AYRSlwVYUinifQpfpKWtnOvN/A=; h=Date:Message-Id:In-Reply-To:References:Subject:MIME-Version: Content-Type:From:To:Cc; b=AQu5p4RnIQ7DMjCMjIk5jTexyU9Bg44HKvj2svPPTVqmwij0usTHXe8umITztDvxObFyZrLC06LbbpYJ3ZivQ+XfiM8J6SaJ9Nq7HoJ3WH3wCGrxk1pruMOAvEtkUCSCwN8EZzNUb6YcO3LEgTcG/SYo7dmQS4h+s35W3vwTpR0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rere.qmqm.pl; spf=pass smtp.mailfrom=rere.qmqm.pl; dkim=pass (2048-bit key) header.d=rere.qmqm.pl header.i=@rere.qmqm.pl header.b=FVCfwT2p; arc=none smtp.client-ip=91.227.64.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rere.qmqm.pl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rere.qmqm.pl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1714401931; bh=oAPaEdKRQbl/ibo90AYRSlwVYUinifQpfpKWtnOvN/A=; h=Date:In-Reply-To:References:Subject:From:To:Cc:From; b=FVCfwT2pcWQbEzQZAKCwef4vL5Hp2sOFYIYwrvf+EHnhMljwfuPLC1XYCTS62fuiP iKmtyjgu0FrWUjNyIDqgb2HWVAt7HhIUGS5xZj5oxK7aPqSLy7pGhd3ZgEYIn0RLrb XG18UynlNtHlgxalBGlyamLWJpUiAucmgsHEpwKFNSGImkvCVMV3IWxnYnE6LkaWQG 2c/BlHV82yisJyfFmeteeajWxyN6Me94IT+bikBXLPKSM9EOqmInCgr81A7Xz6MRQ2 z27g70IlD5QEyrCs+AzugC1GyCtrCxPCqAkJCek9As/WwELskw8YbB2bNtDmzESQBf QbweTCQCQJAxw== Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4VSmMv4mg6zbr; Mon, 29 Apr 2024 16:45:31 +0200 (CEST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 1.0.5 at mail Date: Mon, 29 Apr 2024 16:45:31 +0200 Message-Id: In-Reply-To: References: Subject: [PATCH v2 09/12] regulator/tps68470: use rdev_get_drvdata() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= To: Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org Replace uses of rdev->reg_data with the official wrapper. Signed-off-by: Michał Mirosław --- drivers/regulator/tps68470-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/tps68470-regulator.c b/drivers/regulator/tps68470-regulator.c index de7db7690f6b..326a3b942488 100644 --- a/drivers/regulator/tps68470-regulator.c +++ b/drivers/regulator/tps68470-regulator.c @@ -56,7 +56,7 @@ static const struct linear_range tps68470_core_ranges[] = { static int tps68470_regulator_enable(struct regulator_dev *rdev) { - struct tps68470_regulator_data *data = rdev->reg_data; + struct tps68470_regulator_data *data = rdev_get_drvdata(rdev); int ret; /* The Core buck regulator needs the PMIC's PLL to be enabled */ @@ -73,7 +73,7 @@ static int tps68470_regulator_enable(struct regulator_dev *rdev) static int tps68470_regulator_disable(struct regulator_dev *rdev) { - struct tps68470_regulator_data *data = rdev->reg_data; + struct tps68470_regulator_data *data = rdev_get_drvdata(rdev); if (rdev->desc->id == TPS68470_CORE) clk_disable_unprepare(data->clk); -- 2.39.2