Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3656194pxv; Mon, 5 Jul 2021 02:39:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQsdQl05uQ4APn/1B6WEjO8AEnWq05ETb5bUPWVLlyEAbkWht+mXSA1fQCvlkk8Mrky1zI X-Received: by 2002:a05:6e02:2192:: with SMTP id j18mr10037144ila.33.1625477990027; Mon, 05 Jul 2021 02:39:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625477990; cv=none; d=google.com; s=arc-20160816; b=RB5dSJirC2W+bIbv0nWs/yAznsvKTCcuizAy2T97O3rPzBqYOragGDbmohbpPXrlvg WR4PuteghVANRWspshGceSBv0o5UEdZ7V8BOChAA0HgmTq4Iyoylc+1JikCY83UjfjxA A1RUmqfr7ko/FtdPUHLShDTF9q5XuhHBv1VTYnCkHK1yE9V7YXTh4GGdJAdCbpz9ccGS Y3pql2A2CVwwPRMpGkmnEsf2rgif7B1iVX5vjxBfPXyoTgffBf4jygxDK5GwkqOfyPyl 2x3bEWOkHgALZR5YNNYi+Z/ErwMtFxdFhOCOliihANyzgS2nWGaWL0nP5nH9vXVFXTfP Ef5g== 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=fgvktrDdLA1h8x+D/mlX2PDGxdKROfHvsAkuzVlh7QQ=; b=PoLoF8vNDtUjCuMyyoBKW9Sv9n/uXBwdobe8/r6fPNJJmnpIi+LIYkG2ZbZr1iHET6 dwIuz3jxVAs28prCEPGMt36ABxuuDduGl4upcDW7pY8LQJgMBHTQ30PtQ4tveuJKap8w soAftxL/6OHJqibhjj/A1ftYH9AnHLfTMKfbOLpPQ02XB8sCqcoPD28pkfj+bUcxuFso KDJiaPY/zDjRHD+GfxYQs+L2vm75RYCRPhNsXuArz6skr5+br4Rn5HcYm2m6wLRRIove fBkeWMSMPpgb4B1GAEsMJzgiqblSA1UefryVSwcguAzNV4D0lXEHQQrHFvnIeKlixtYI 4gpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M5W9y8FN; 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 i12si13615542jal.25.2021.07.05.02.39.39; Mon, 05 Jul 2021 02:39:50 -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=M5W9y8FN; 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 S230438AbhGEJlk (ORCPT + 99 others); Mon, 5 Jul 2021 05:41:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:57090 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230409AbhGEJlj (ORCPT ); Mon, 5 Jul 2021 05:41:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 644A1613E2; 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=hj/ipUvkpkeKWt7EJnZrwj31HELGkpjHJJ3w+DNn5xs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M5W9y8FNS0GsXdo3jOLUyBX2mZ/21MCauWtXQ4BqBOumkewWjt71OlgDbXa+rCrsm I6nz+94YfuXoxBxRP6XfALcBY5pzgR03rzpPMV9++qFil3XJ7x5C5qb20Nlcg5kl7W RLa0cPesaBo3dRFe3HGLXhMl32wPSOSlILbTPxwUo0oH8vEzKjw/O8iJhdxYXZDd+t GaopQMIoweXoEhE7T2x3p56aKGUk+vwRnsjAF1qP6MvS7lV28ExZfIGEB+kONIkUHj /C8Mlb10LoBpoEGb9T7ugqLAUXhFVRim8KYwp7G0qV0tllZb9FzAejaVrrJw/7KMUl sa6Kv31HGj0DQ== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1m0L43-002tok-5R; 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, Rob Herring Subject: [PATCH v12 1/9] staging: hi6421-spmi-pmic: rename GPIO IRQ OF node Date: Mon, 5 Jul 2021 11:38:42 +0200 Message-Id: <0df3e0572f80a9e47d66ca59bb82dc9f622fa456.1625477735.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 Instead of using the standard name ("gpios"), use "interrupts". Suggested-by: Rob Herring Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/hi6421-spmi-pmic.c | 2 +- drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/hikey9xx/hi6421-spmi-pmic.c b/drivers/staging/hikey9xx/hi6421-spmi-pmic.c index 35ef3d4c760b..9a7e095246f7 100644 --- a/drivers/staging/hikey9xx/hi6421-spmi-pmic.c +++ b/drivers/staging/hikey9xx/hi6421-spmi-pmic.c @@ -233,7 +233,7 @@ static int hi6421_spmi_pmic_probe(struct spmi_device *pdev) ddata->dev = dev; - ddata->gpio = of_get_gpio(np, 0); + ddata->gpio = of_get_named_gpio_flags(np, "interrupts", 0, NULL); if (ddata->gpio < 0) return ddata->gpio; diff --git a/drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml b/drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml index 8e355cddd437..252b600f02a8 100644 --- a/drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml +++ b/drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml @@ -34,7 +34,7 @@ properties: interrupt-controller: true - gpios: + interrupts: maxItems: 1 description: GPIO used for IRQs @@ -71,7 +71,7 @@ examples: #interrupt-cells = <2>; interrupt-controller; - gpios = <&gpio28 0 0>; + interrupts = <&gpio28 0 0>; regulators { #address-cells = <1>; -- 2.31.1