Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp142073imd; Fri, 26 Oct 2018 06:26:07 -0700 (PDT) X-Google-Smtp-Source: AJdET5fFnjMsEfsy8WAS4L+SjxSgyc0Kg0xrSpceNw9BU1HZuRwI3zRrEcsflj+opL5fOMr5A5tg X-Received: by 2002:a62:6ac4:: with SMTP id f187-v6mr3747243pfc.103.1540560367636; Fri, 26 Oct 2018 06:26:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540560367; cv=none; d=google.com; s=arc-20160816; b=C7rGuXvmnAIOIUsRuo9xxMIfXDJF/Qi1OQIYtjerEwC+4HmqzHqosjhL4vTz3SeG4h /9hV6JlHh8u79rsOedef17oRQO6RmcMqd1OARy4yfjilRAKzabR982YfjrS4R1+kAaL6 sEjcry++pbRjI8/GjxHb6J6g65hyHfQ4WFrtIGK1q6INuQbdwR8qQXws9lnTCpYWmDQx ZthUA+pFuiCfqS6HyJF9XYYkhnIG74BAdMS3upK6QlVp7iT3BbcXag4f9pyyGpbvSd2O RnueL65WErt/w+CwpvPNVrbigVawOWRBVUgQaVm4ERMy4lnrfK04+ma1uYpDKO4KGiBf eU3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=sxP9Vub0IBi+QpvfesWRSk3+e6ECIPzTKLe7oLEuyR0=; b=xxBGpJ7wLbcms6UfhgDwXM7Sl1QjBTO125V5PlKPT/JcCl2dnmYP/WbAI/JVHmJw6n Poea4vKeE+lei3SNWNh02k88rqTYvQYu7o+h5+3g/oPqnotQuKbWvvIvnyKqfjkjv3Tc V24sQP3NszZMNDsKxq1HuotO3prvVHEJ85K7+aMK0CJWtlvqrUCeggaIr/mx4ePj7VKd Z/UfDoNmTW+jpHCAAM9f+x8s1rPRZc6ilUp2TJvr4So13CZhjuyeEOWk7ez85k9/Dvau HP976Ev1JwQuSy0OrHk7PWLTDY/O17FgJrZDmvuBPRLtaZ4hVLpVGlPHwg5xUsXRBbPN dBRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JhnEL7eS; 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 y16-v6si2016005pgh.383.2018.10.26.06.25.51; Fri, 26 Oct 2018 06:26:07 -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=JhnEL7eS; 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 S1727203AbeJZWAY (ORCPT + 99 others); Fri, 26 Oct 2018 18:00:24 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:35689 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726014AbeJZWAY (ORCPT ); Fri, 26 Oct 2018 18:00:24 -0400 Received: by mail-pg1-f196.google.com with SMTP id 32-v6so539341pgu.2; Fri, 26 Oct 2018 06:23:19 -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:mime-version:content-disposition :user-agent; bh=sxP9Vub0IBi+QpvfesWRSk3+e6ECIPzTKLe7oLEuyR0=; b=JhnEL7eSZDtdqXMcVZFQAJRECbcWkAS79DQkaqScqxIRxaSJ2x3Ave6Y0VxjzULlTY qtLn8SDfKQfIScEw+h/LY+j9rh/QiW3lkq/seT2swbjjdYiuUaoxZAgPhzurI4O9Mfxy 4+vgXYGGCi1AE5TTWBE+5pcVeLP/MyChA5Xh63CM1Cw3YDJlj9JJi6wuH01QPq7k20pP Tc9AOZZi+QdD7OlhRR3Ne6JFy43sQD64+JqtfuHP4s8tdF7VhGGM3qZi5EdDyh1tmsVa roLcashWXSFfiFuoWbYwHZ02kdKjQuYrbZrtitKll6hsFc8p4Zg5M7VZZm0xaxkwoKCt 9izg== 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:user-agent; bh=sxP9Vub0IBi+QpvfesWRSk3+e6ECIPzTKLe7oLEuyR0=; b=qIXEYgiPSlSbz9Sv95v2hEX8BloOf4ntYky3+/KOlRz6tH8lJN0fI7YxEIsHVh+bKD t4JABAH2ppnFqX/OBcUEBdimoV+xpxxzqA1OXOPMNYMrDPtnZC8ovYuegaxLrqB8UGyw UeXfEzq8w7blQ95APfEfa/4Cl1mSAeCMo/mwCfV7SXbhZmu5HW+2nsIrHQaxnpifQWmj 8KGD6OWTFQ2VWwn3x3h+P2ZpdpwcjMa7nzrJR0P8GLfnceN19KkyxN48NRkAK9K6MjoI wvHXK1xbL1BMLMVt/iYfoEz2ZeFvs6NhNtaa5XOIT3S6bnpqfUkENpZEKu27u4liCnfg vExg== X-Gm-Message-State: AGRZ1gKftryPrNupgBITcJPwT5jgKx8jrzUAOGbDJ7OjwjRdSnmP2vzf 5y6Gf67t3SD8huak1AU74Dw= X-Received: by 2002:a63:9e02:: with SMTP id s2-v6mr3551570pgd.302.1540560199034; Fri, 26 Oct 2018 06:23:19 -0700 (PDT) Received: from nishad ([106.51.27.228]) by smtp.gmail.com with ESMTPSA id y10-v6sm21535845pgi.85.2018.10.26.06.23.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Oct 2018 06:23:18 -0700 (PDT) Date: Fri, 26 Oct 2018 18:53:12 +0530 From: Nishad Kamdar To: Slawomir Stepien 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: [PATCH v5 0/2] staging: iio: ad2s1210: Switch to the gpio descriptor interface. Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Use the gpiod interface instead of the deprecated old non-descriptor Changes in v5: - Add device tree support. - Add device tree table for matching vendor ID. - Add Support for retrieving platform data from device tree. 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. - Nishad Kamdar (2): staging: iio: ad2s1210: Switch to the gpio descriptor interface staging: iio: ad2s1210: Add device tree support. drivers/staging/iio/resolver/ad2s1210.c | 129 ++++++++++++++++-------- drivers/staging/iio/resolver/ad2s1210.h | 3 - 2 files changed, 89 insertions(+), 43 deletions(-) -- 2.17.1