Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1475956pxu; Fri, 16 Oct 2020 13:00:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3A7ZAI9iCfRcWmK5CD5RDQvnvttirQIM/3qnD4u2ZhhvAWJAHtKpbkDbQxuIofbeUEG/7 X-Received: by 2002:aa7:d352:: with SMTP id m18mr5823595edr.287.1602878439536; Fri, 16 Oct 2020 13:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602878439; cv=none; d=google.com; s=arc-20160816; b=SqGhILBqoZ0ffoHnDsa6bgV2WPIt2oXImqkpH90YQZLdgrQygK1FxI/FXf/6nlRc30 MPHgopm/MxfLCXFk7rkc4A8AIa0Ofe1xDfrzSX+1NedX/Fc/zagaMVMhutA9Ke2ja7Pb 0aARdRCw2N3zoIxnFTRkIpuZ+dlmdCq2CBIdaohuIna6cJiij8mNNZbYidLAyGvPTJVi ZRoqsa/P/kLwgROmagos1YztBnaBTZPuH/xODFu6qyTmdDkQiDuoe3O1FNzE1G7XE25w wyEn+dxusToLax4tvlG7Z6o7SXPokYLvOVNDuPF0x4gY+JFhQ2fmcTYRwXM+lPWJ7PYW nodQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=vgfZNuxhTB6LIQi5jI9sxC2FrJ4hpMVJpn22n3RL3sU=; b=r1F4KEHbtL01FPNVlyqoxHbaqwPUghHFBZxOWcZIP6KBzMaJeZR3wWEfqzuns8ZRQS cim3te5D3RXh0EyeESiwZS54zfTOezb6T+plOpxRWDfZ16fLjqdXiIVhoS4E/I8n5KJ4 3Xdtk99ahlJYzNe7PtG9+JARqoryA8h7Er2/3MXbof2V7gk9tb2S884yFH672/t5DcWV +Unv+QPNLzSlPITFWJ/pV+Kjw+xCrBymdtDaVPK1MCCosPKNWdPYAE98a4NUtzAo/Bva aHUZev7NpqRaHqPtbMwSbs+gUU4+Z95+cmo5fccHMmcMgAJaF4Gu/AII2PuUERLO1VqA Zrnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@beagleboard-org.20150623.gappssmtp.com header.s=20150623 header.b=EtbIQ8Zr; 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 s24si2529213edi.129.2020.10.16.13.00.17; Fri, 16 Oct 2020 13:00:39 -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=@beagleboard-org.20150623.gappssmtp.com header.s=20150623 header.b=EtbIQ8Zr; 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 S2392577AbgJPSl1 (ORCPT + 99 others); Fri, 16 Oct 2020 14:41:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392383AbgJPSl1 (ORCPT ); Fri, 16 Oct 2020 14:41:27 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30639C0613D3 for ; Fri, 16 Oct 2020 11:41:27 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id p11so1748784pld.5 for ; Fri, 16 Oct 2020 11:41:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beagleboard-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=vgfZNuxhTB6LIQi5jI9sxC2FrJ4hpMVJpn22n3RL3sU=; b=EtbIQ8ZriIQTqP36DkwYzE/5+pxL1QGJ6spiErQinfSV2JEY8uKd/zIAAfH1aZyNu2 1sJUpP95JxpsjYFH81XeI2Zxlp6OP0fe7R3nubORhgziFJVa9s5AElASphijnCLHRAxp 7354v7ByD1orxpW8ZwOvwMdevhaD9VvksdpiAIaiR6u3V9M/gtZc1EU+wmnB6arkRmBr ZYmjrMgdPQzC6FGZyPk29dm62Pv97dqEqdmLo+1XA14MOys/USaeR3vsOw92hR7Nyo6Y O/qxnR0E9kyYfc535u1D1pt5LibtCJ1P7AR8uJwgipr99dyRt7m/c/PjIQy017sIK5Vs TTMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=vgfZNuxhTB6LIQi5jI9sxC2FrJ4hpMVJpn22n3RL3sU=; b=tO4kIRhL+LmRdFmgULNu1RJLZ9Yn9g4vY2BnJa+Tg6ibf7H7lPFhpXeK7GHZE1QOFg pnaCw73sNwebFQoo9bTJDPUPELme6QIA/KiF9gMnSgj4KF6f8kX/iaQsc6b8i+CwNfnq ezPj9xCLULe6AzMoNcFWekJZjlZW560mnL3Zemz/HEL/mmX0VqcmjOPkVkYp6A4bFXCD iuTs5zHBB1fKVVVnDEDlPVrOUMAPS2tJdcs7guksio+7xt8Klj/kmj9exyDeEaYDzn0q CNlI9yuSPtGXU5Cg4BmpCM2rjm18F9Jb6SM5lZXDx/d0nNLEWjxTIeDXcUoS8BEeo1V2 QILA== X-Gm-Message-State: AOAM530FUBVufKzcAZitMYhdw1fcuxfX14CybsF0rJ2rXRfmyIfBJgnZ 0N6du/qGfNH1HbO8eddQrZj/ X-Received: by 2002:a17:902:b595:b029:d4:db82:4403 with SMTP id a21-20020a170902b595b02900d4db824403mr5448769pls.49.1602873686692; Fri, 16 Oct 2020 11:41:26 -0700 (PDT) Received: from ubuntu ([116.68.78.80]) by smtp.gmail.com with ESMTPSA id 32sm3569344pgu.17.2020.10.16.11.41.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2020 11:41:26 -0700 (PDT) Date: Sat, 17 Oct 2020 00:10:42 +0530 From: Vaishnav M A To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, alexandru.ardelean@analog.com, linus.walleij@linaro.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: jkridner@beagleboard.org, drew@beagleboard.org, robertcnelson@beagleboard.org, rajkovic@mikroe.com Subject: [PATCH] iio: proximity: as3935 change of_property_read to device_property_read Message-ID: <20201016184002.GA15797@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch aims to replace the of_property_read_u32 for reading the ams,tuning-capacitor-pf, ams,nflwdth properties with device_property_read_u32. Thanks and Regards, Vaishnav M A Signed-off-by: Vaishnav M A --- drivers/iio/proximity/as3935.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/proximity/as3935.c b/drivers/iio/proximity/as3935.c index c339e7339ec8..7e47ddf89a56 100644 --- a/drivers/iio/proximity/as3935.c +++ b/drivers/iio/proximity/as3935.c @@ -355,7 +355,6 @@ static int as3935_probe(struct spi_device *spi) struct iio_dev *indio_dev; struct iio_trigger *trig; struct as3935_state *st; - struct device_node *np = spi->dev.of_node; int ret; /* Be sure lightning event interrupt is specified */ @@ -374,7 +373,7 @@ static int as3935_probe(struct spi_device *spi) spi_set_drvdata(spi, indio_dev); mutex_init(&st->lock); - ret = of_property_read_u32(np, + ret = device_property_read_u32(&spi->dev, "ams,tuning-capacitor-pf", &st->tune_cap); if (ret) { st->tune_cap = 0; @@ -390,7 +389,7 @@ static int as3935_probe(struct spi_device *spi) return -EINVAL; } - ret = of_property_read_u32(np, + ret = device_property_read_u32(&spi->dev, "ams,nflwdth", &st->nflwdth_reg); if (!ret && st->nflwdth_reg > AS3935_NFLWDTH_MASK) { dev_err(&spi->dev, -- 2.25.1