Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1507319ima; Wed, 24 Oct 2018 23:44:18 -0700 (PDT) X-Google-Smtp-Source: AJdET5dXzyAkxV/+1sikPA7Mvk38qFNvRG8ZxmbYcrETFvJsMmIdN4YRHONf8bsoqDBu1WfBNlZb X-Received: by 2002:a17:902:710e:: with SMTP id a14-v6mr320490pll.179.1540449857955; Wed, 24 Oct 2018 23:44:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540449857; cv=none; d=google.com; s=arc-20160816; b=HfO5ZC5oem4LWCJl+V9srb5G4prbAC9245NDcUnlwiSUtcQT9blyzTQ5GOEbKgzzCk ai6lZDriiIEBarL0W3J2cebqIAZ5+jn9DW9Nzaft6QVa3qSL76JJgj9/BZFVvcyYIz2o Pfgz0zpKIyMzmWqGhzCpLZFkgbfbLWuy6znS2LWMzIgDdqGSbnJdTVY9ZrCkgNQpnyCa GZjoYnfxFZc6VPkemuwAdqS3BxmBSCvl+RoNcTz8oDAtRxKjHF9Qu5vSgcZ6rl9kZAx+ /EwX2OlmzhWUvBUSAS5yhMvZaPLq64H5Xo7czpcXpkSeOdMqCWGgbFFv4uWOPZRJv7mg WRdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=239/D5Q8v37uT5nYCxcdYXlj5HBO69ulOP7dpERi6H4=; b=pi4PpeSMFZeyb/bJ8OA/9iGfolJMZRpcuhDwm/81aBiaNutTCePOjBCoEC+JY+cq6V aRE077UK5ACDpXSaol8zVaehM5vObWnnPMUej74cW0kHOvKGw/R4w6pJOo689LBsCN3J ZMU3qBciVUbCAhUs586axnPpaat+OrQFkMZU2ATl/LijiyBmHFr1SXwrDswMM5XQ2i8q jNyynM6eKzn0yKqSBtankABnzU0gdrEouYG1LxGbbFiwkRmGWzrasqwnAPIZRqTpPpeL oiK0MKRMWv3eEYcWb34jyqQVLCKOQ78PBlyeNnncirBNoJfAi5MTP3jt2/bCy/fDxtl/ u9mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@interia.pl header.s=biztos header.b=kX6r4G4e; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k198-v6si7491958pga.12.2018.10.24.23.44.00; Wed, 24 Oct 2018 23:44:17 -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 (test mode) header.i=@interia.pl header.s=biztos header.b=kX6r4G4e; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726785AbeJYPPA (ORCPT + 99 others); Thu, 25 Oct 2018 11:15:00 -0400 Received: from smtpo.poczta.interia.pl ([217.74.65.158]:32850 "EHLO smtpo.poczta.interia.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726580AbeJYPPA (ORCPT ); Thu, 25 Oct 2018 11:15:00 -0400 X-Interia-R: Interia X-Interia-R-IP: 188.121.17.172 X-Interia-R-Helo: Received: from x220.localdomain (unknown [188.121.17.172]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by www.poczta.fm (INTERIA.PL) with ESMTPSA; Thu, 25 Oct 2018 08:43:36 +0200 (CEST) Date: Thu, 25 Oct 2018 08:43:56 +0200 From: Slawomir Stepien To: Nishad Kamdar Cc: Lars-Peter Clausen , 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 Subject: Re: [PATCH v4] staging: iio: ad2s1210: Switch to the gpio descriptor interface Message-ID: <20181025064356.GA18633@x220.localdomain> References: <20181024145051.GA18490@nishad> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181024145051.GA18490@nishad> User-Agent: Mutt/1.10.1 (2018-07-13) X-Interia-Antivirus: OK DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interia.pl; s=biztos; t=1540449818; bh=239/D5Q8v37uT5nYCxcdYXlj5HBO69ulOP7dpERi6H4=; h=X-Interia-R:X-Interia-R-IP:X-Interia-R-Helo:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To: User-Agent:X-Interia-Antivirus; b=kX6r4G4efJbEBinxkgAFjEyjzEMpO27MshRF223V4XX/Dw4PF7qQlofVfZiz3CeyC iqRm6dsoRUSnoxZDv4L/SsN6XnI+Yt6c3H9USpwnGlke6eTuvPFPYu2e36/i8okvRp 565hsu0+AEgOpY3YngdAiCQXmBYvD961Oy4yZlBA= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On paź 24, 2018 20:20, Nishad Kamdar wrote: > Use the gpiod interface instead of the deprecated old non-descriptor > interface. > > Signed-off-by: Nishad Kamdar > --- > Changes in v4: > - Add spaces after { and before } in gpios[] > initialization. > - Check the correct pointer for error. > - Align the dev_err msg to existing format in the code. > Changes in v3: > - Use a pointer to pointer for gpio_desc in > struct ad2s1210_gpio as it will be used to > modify a pointer. > - Use dot notation to initialize the structure. > - Use a pointer variable to avoid writing gpios[i]. > Changes in v2: > - Use the spi_device struct embedded in st instead > of passing it as an argument to ad2s1210_setup_gpios(). > - Use an array of structs to reduce redundant code in > in ad2s1210_setup_gpios(). > - Remove ad2s1210_free_gpios() as devm API is being used. > --- > drivers/staging/iio/resolver/ad2s1210.c | 92 ++++++++++++++----------- > drivers/staging/iio/resolver/ad2s1210.h | 3 - > 2 files changed, 50 insertions(+), 45 deletions(-) Looks good to me. Reviewed-by: Slawomir Stepien -- Slawomir Stepien