Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1327455pxv; Fri, 2 Jul 2021 00:38:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9QbRUVdJMsifsmFovbs4rahVqOyCkwTjVrDBAP12GjQMGGNPYwMiw71puR80YfkaT5P4b X-Received: by 2002:a05:6402:1001:: with SMTP id c1mr5067996edu.26.1625211536557; Fri, 02 Jul 2021 00:38:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625211536; cv=none; d=google.com; s=arc-20160816; b=gLR0LPTaAWH8H3kczzgDKnfcwJr0dpqIe5z//f6XbGxuaSm2D76RjqOB//EuXdnfRa lko+vO/gYn7wfohVC/7XytUNuX0m3OhXdxhAIjTnQnxmPXrIECTnRLekWD0GBMXHdLlm VwYj3SqrVfvvy542mBpMhapBwcXr+LhU2feCwJYCIgse5H31wDj0tGbcS6gGN3BNPtUQ epWycExa/FWiDHvwINmiadVcMPZcZe4A7oObxzr/HvtNPmTN+x2RuYr/YlP94b2u4Em1 Fey5D/Y6APvkqW+xmxMU/xgnk85ucaCTXKaa4g0RfVaTVqgR/hyO/3RQ+T9KbaA2T8p8 SS2Q== 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=IUjOY3WDPf/iGdRvy0706W84obQNIXK8cpfQ2N95m1IcIehqKr5nozIxGM+NkWpVPv BD4jDyO2dE0H13EuLEqnevkGxQvta/zak8Y1LfFh1S/+F4XcYlbA1Ha+IgnXPbv6TnmA JDIk75rBk4/nrdaTfkrVhWVpfzm0iXkQrEGCixu2lEW3a9Pz72YXyhUeZuiVae7a256u 6a41Eec21Fl/sbMfPbC9grDPiQg+9bUSCElZo5PFriYRtQWMUQ3j7N0+v9dCwXzNoN7h F5Q5921ON/CgepEk2b+onVXm2xzy+Kmnm2EoMq27UiHl2sesGQi5lZjDFVY7m/8SbrIe M2hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I1dooLxV; 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 q9si2247948edd.434.2021.07.02.00.38.33; Fri, 02 Jul 2021 00:38:56 -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=I1dooLxV; 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 S230209AbhGBHkC (ORCPT + 99 others); Fri, 2 Jul 2021 03:40:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:46746 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230109AbhGBHkB (ORCPT ); Fri, 2 Jul 2021 03:40:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D5B8B61420; Fri, 2 Jul 2021 07:37:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625211449; bh=q+8JoyZy41b0E54mkPzbSx9EwxDzqQzc896e/gOvyK4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I1dooLxVrcb8JCPkF9HkDC/u3OH3iKP+VwQ9yfhNR+e6xH+cDpiuggM28UwvFPN+m owUZqs9lHZjONWkaqw8tCW8wZ48BV3di6gVIrZvsLEJ4Y2LHGDJuKrOz6ibWg1AMKL pckzRFDQEl5mpHJk1B7mQc+E7+alxIg3/NrL1ovaSngErSZCaSJgPkEaD7KmgPQa1I +y60LILZBhdK/pdvQj5TxvnFdjTu1GwC65AhRXC1906608l+Pa7YQSIoCW9qKdKskd Y/JXdQL8MvuwD8POclI+wPHb+jZKL4I/PfoQelHzbNw9D9HWlnklTn8ohJUl0XUQEx CzUxn7KdRO/XA== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1lzDjo-000gZz-SI; Fri, 02 Jul 2021 09:37:24 +0200 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , "Axel Lin" , "Lee Jones" , linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH v11 5/8] staging: hi6421-spmi-pmic: rename spmi_device struct Date: Fri, 2 Jul 2021 09:37:20 +0200 Message-Id: <5d95a42923310b89d1b8a1c5a6b8772af619fef8.1625211021.git.mchehab+huawei@kernel.org> 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