Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3656205pxv; Mon, 5 Jul 2021 02:39:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhdYrwRkq+Dt7lyDBYuJYY4SXOyKW1ViCxforML/3Wts/r8ncCCRf/akFClPRfDjFCB6HR X-Received: by 2002:a05:6602:723:: with SMTP id g3mr2696661iox.39.1625477992024; Mon, 05 Jul 2021 02:39:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625477992; cv=none; d=google.com; s=arc-20160816; b=vkbvkooPsSvJ+ycHNP5p0uGP+tiws6q0PtvEKkClvoLzd0dPSMPaRN5usY3mRtTbGA dCrmnYOyzjCGa/+nLH17wXDxozTBzz3kDlx7maXM72pExlwE0+1rjwAUeSQ7FXjIREqR J5ijOkHamL+IvBjNGAOIpFSCW325AeeCVXPhd9tCFLG53m2ErBHNjJs9mMuiel8qn46N TYCSJENnjff5W1u7tCB5F7pdbQyagg1LpRKhix8BvGNqzPdL6E6pmDK58sXFX6EjwZhb 0lDm0PjolUHjLUQeTeF/D2FgX5R+UzZc8W2y+heF3Pcu6RcEtD+hFfutaWD8skRxG2+B bElg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8NqBrMcqKZTVUf9EU/3yxN6/o9RvdkWBv3M5QCR1zpE=; b=BgIZu+tBn4fZWIm1I+JeyfZnRTa4L23Zjmsabg+vSbzmDY2QxJ125KC36z7anadJRr q1Ds0j2FowsRNv1E4ty10dMRSDqZ/DLe1DCd3VV0AYp49DftmveLKiRkHL+au2FoxRMy 1jIeMbgsDFFIymu5nJWe9k9dx++b6s+PqCxECOHaCxm1HfFlasXbmmqwx+DQsA44zq+O KQhHFsEZXoX3pP9BJyACW2ujiSUx700aI9OWG/G3hz02VG95eJ6BSlFfzrz+lSP3lqVo DGDUy7uJaKZCUblfGVEcvAt2ZV8QBBmY+auvOwUTkKQWITc+sLV2+Rqop+3wsOtcXUuC 5GWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h8unq0P6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p16si14827957iov.2.2021.07.05.02.39.41; Mon, 05 Jul 2021 02:39:52 -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=@kernel.org header.s=k20201202 header.b=h8unq0P6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230476AbhGEJln (ORCPT + 99 others); Mon, 5 Jul 2021 05:41:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:57078 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230366AbhGEJlj (ORCPT ); Mon, 5 Jul 2021 05:41:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 61EF1613DD; Mon, 5 Jul 2021 09:39:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625477942; bh=q+8JoyZy41b0E54mkPzbSx9EwxDzqQzc896e/gOvyK4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h8unq0P6vFKhroYCRUhI/DURDixNjI2FHaq6UaM2Hqqm7yy25UoyDG4OkKkoVJU5e yb4GVmwa60JbtKgtm7BY9CouQLzhwlzS68/Nk20FlnOtCFxiCjbZCPJsYskbC8MK5C m8R3Fr1A04h3DbRzz8p6N9ikHB0y8menl16a6LFReOniAzKEuGu7DpE25NUNYcV7Wv prs6ceUPYmhQ5B62fVc3WoSNgp1CftWWjKFbxnEcPcdvzHduZ6fc9MD9B1WOsuaR1d SB5zxSiIdWyJjVo//FogYnD65hkhJ5/OIrc1GVu5mX9TibV5O5qJJL8fvBp1fnurkb 5XthPf14QQoVw== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1m0L43-002toz-Dl; Mon, 05 Jul 2021 11:38:55 +0200 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH v12 6/9] staging: hi6421-spmi-pmic: rename spmi_device struct Date: Mon, 5 Jul 2021 11:38:47 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Let's not call a pointer to spmi_device as pdev, as it is something else. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/hikey9xx/hi6421-spmi-pmic.c b/drivers/staging/hikey9xx/hi6421-spmi-pmic.c index f63ba73c9e33..c9c0c3d7011f 100644 --- a/drivers/staging/hikey9xx/hi6421-spmi-pmic.c +++ b/drivers/staging/hikey9xx/hi6421-spmi-pmic.c @@ -26,19 +26,19 @@ static const struct regmap_config regmap_config = { .fast_io = true }; -static int hi6421_spmi_pmic_probe(struct spmi_device *pdev) +static int hi6421_spmi_pmic_probe(struct spmi_device *sdev) { - struct device *dev = &pdev->dev; + struct device *dev = &sdev->dev; struct regmap *regmap; int ret; - regmap = devm_regmap_init_spmi_ext(pdev, ®map_config); + regmap = devm_regmap_init_spmi_ext(sdev, ®map_config); if (IS_ERR(regmap)) return PTR_ERR(regmap); - dev_set_drvdata(&pdev->dev, regmap); + dev_set_drvdata(&sdev->dev, regmap); - ret = devm_mfd_add_devices(&pdev->dev, PLATFORM_DEVID_NONE, + ret = devm_mfd_add_devices(&sdev->dev, PLATFORM_DEVID_NONE, hi6421v600_devs, ARRAY_SIZE(hi6421v600_devs), NULL, 0, NULL); if (ret < 0) -- 2.31.1