Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp747947imm; Wed, 17 Oct 2018 07:44:18 -0700 (PDT) X-Google-Smtp-Source: ACcGV61nNfHqfoXT2c8JFchxkA5JideTkZ+A6HSCkYF+/Cja1vjssUP0SMdNcITydcNaSUyqSikD X-Received: by 2002:a63:1d62:: with SMTP id d34-v6mr25036081pgm.180.1539787458851; Wed, 17 Oct 2018 07:44:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539787458; cv=none; d=google.com; s=arc-20160816; b=N5QfqVH0Etrk1iDLmz2+FGfRtBm0pdlt86HymNx3/Vcj7B+n4LTa5hioR6OutjIn+B 82RX2tLc6Ejw+DP7MeOd0oUaCeCrfMfxlS9rkjmNrx1JFyTLeYYa/b74gLESLkpOdqx+ 4nlISXqN4/SrD+BpC1pVXyIhOE0FewRTu5p7vFLA2qMkiMhvOabLSKm4wJNWMYNwCOiG COZVChFa8RZ+doRSQE7o+p80pBO3ohVuauvTF7wTeovUeuKLdpLOncspTM7YnWeVFwGc rf0iIOijYIKf9tJEpC2mm8ryU8maqruoEQc6j0cJROUk8UJywZM0deCIQ7wn7QR3bi17 ENDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ugnJjiKfZK3agtZoV4CiPR2kBiUowgxXQRYPO1qID6Y=; b=Or7B8iy3gH+rjyjBa2uy6AMqVmHBairuU0Fw7WHue/1cPyFqy1Svt2OLLAeeC5VNXJ Gmw5csl+Ss0ajJrDn2bC7ZLd0JXdqzGhz07Yl71MGn3CapZ5DoM6Zt6zWSXBJYfk5cBq Lzm6oZeh9BredBYL15R9FAwmXCvF78uAK6kM7XRs5FDG2hh3UGo+w9ll6p17XCxdUYu+ uXcSv90Ldq5GzGwhkfTYCMpj3ADrTaqIYpvXwpyE+Z9GPkyKkNZTRKJRaOTQXk1VIs58 LITLI77g2JZ7r8tvF4R7nd4rO0xsWLLogB6tCmcgw3yai+D5Dz9FIfX1qUpNqsLd9JPH +IhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U76jYh2F; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 38-v6si18266656pgr.237.2018.10.17.07.44.03; Wed, 17 Oct 2018 07:44:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U76jYh2F; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727681AbeJQWjS (ORCPT + 99 others); Wed, 17 Oct 2018 18:39:18 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:35215 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727024AbeJQWjS (ORCPT ); Wed, 17 Oct 2018 18:39:18 -0400 Received: by mail-pl1-f195.google.com with SMTP id f8-v6so12823220plb.2; Wed, 17 Oct 2018 07:43:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ugnJjiKfZK3agtZoV4CiPR2kBiUowgxXQRYPO1qID6Y=; b=U76jYh2FDwf4pl5v/8CDnYRDeheD6i5fEbxsw3ksmh2gBtXaByO8Q8B18rwGnQF6SM 8Hc/QUtyuWTgeh03Q8QwRdO9FLnXQVcKgSHotsAI+Pb+zxL116WKeAe94wKdzFwejBHN mVICPOEl2LBMaJMvZizsaqJCtvHsVSpMCp2yndHCcNKpyLwSXaHbNWBDnlEmyLPqBAXp 8zxuHG/iJLpKj0K9pLgQcxFLI8uBScSN5lgWK7MkHFklRK5C9SosbjoGiOPE4bMM7dQZ UAh+aUNbEK48OvMDtlGQnH7sdJHZoKtWWJKQOU76R2BG0VMWbvrSuIVHH39PDEdEkOsG DmaQ== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ugnJjiKfZK3agtZoV4CiPR2kBiUowgxXQRYPO1qID6Y=; b=IEkbK7t9Hlpd1JIeg1+qgfOOvrptAaoQ93ef3XrxRl3Cdn9/55UWjyrvwvpA9RWb96 Iwn7CnA16fj3Tv9Pa63Vao3bA1xTpAEg+gjefeVIjQjiQNN8tf8y5FxoXt5zw+D7Ou2R kpx4okFwI4jiUxjnLRvt68QZMReOOHTZyf53W5mg0nLmx1/CjH2a9XZ5NU48aa7h8jjt 7Q/iFDX1jaU6H1iigqRzgwQHSWhYNPMobTSsW0nug/TYBaYLr5QkaTLvXlIr5ie/S6U3 XP7xYBBfQbuM31em6KxJAvWblaff/Qw9zBvSUCoDJkTe4V7FO44lzOMViMGlPWkg90Sm mO/w== X-Gm-Message-State: ABuFfojZaDTxineDn3BJRIqGUfX5CV5MCRzeDVeS1GNadJOj4sMzcb+9 2u3axQCNauqQ8sSr69Ds494= X-Received: by 2002:a17:902:32a4:: with SMTP id z33-v6mr15481121plb.85.1539787397328; Wed, 17 Oct 2018 07:43:17 -0700 (PDT) Received: from nishad ([106.51.27.228]) by smtp.gmail.com with ESMTPSA id k24-v6sm22362336pfi.11.2018.10.17.07.43.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Oct 2018 07:43:16 -0700 (PDT) Date: Wed, 17 Oct 2018 20:13:09 +0530 From: Nishad Kamdar To: Lars-Peter Clausen Cc: Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com Subject: Re: [PATCH] staging: iio: ad7816: Switch to the gpio descriptor interface Message-ID: <20181017144307.GA11244@nishad> References: <20181016144623.GA9890@nishad> <929c42b8-34e7-60bb-5bd4-31faf53d62c2@metafoo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <929c42b8-34e7-60bb-5bd4-31faf53d62c2@metafoo.de> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 16, 2018 at 05:10:14PM +0200, Lars-Peter Clausen wrote: > On 10/16/2018 04:46 PM, Nishad Kamdar wrote: > > Use the gpiod interface for rdwr_pin, convert_pin and busy_pin > > instead of the deprecated old non-descriptor interface. > > > > Signed-off-by: Nishad Kamdar > > Hi, > > Thanks for the patch, this looks good. > > One thing about the error messages though. > > > + chip->rdwr_pin = devm_gpiod_get(&spi_dev->dev, "rdwr", GPIOD_IN); > > + if (IS_ERR(chip->rdwr_pin)) { > > + ret = PTR_ERR(chip->rdwr_pin); > > dev_err(&spi_dev->dev, "Fail to request rdwr gpio PIN %d.\n", > > - chip->rdwr_pin); > > + ret); > > This previously showed the pin number which has now been replaced with the > error code. The message doesn't make that much sense semantically anymore. > Maybe replace it with something like > > "Failed to request rdwr GPIO: %d\n", ret > > > return ret; Hello, Ok, I'll do that. Thanks for the review. regards, Nishad