Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2041073imd; Sun, 28 Oct 2018 01:29:20 -0700 (PDT) X-Google-Smtp-Source: AJdET5cEJKQysiXtIRDvp15U7tW6Xl9b8E13qHW8efd9I8t6DfxQcSy4dq6w358TUx5M8aWXgpyL X-Received: by 2002:a63:504d:: with SMTP id q13mr2147175pgl.319.1540715360474; Sun, 28 Oct 2018 01:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540715360; cv=none; d=google.com; s=arc-20160816; b=RQZx8J00u4PXQQgOTtua1S6/RbdB8EWjpbQXNEIbfZThozeAxtrKYJDIsxgBZxw7oN CGPItQS76gbS5UqRZpNMZspj+IOOAfv1lFuhmto9kl4u1LTj28Zb83SVY4blPDyUZa9P De6Zq5BevrTVAUi7gWwBPMFPPukI1wkvKOHvckwZTRQC7XeI5uBRHfT1XHyWYjFqNKdL X8FlvCuE4yyRatpvVYL1inIDH46FbXdid+9cKhhKxRArKlb8/GM91qeDaYNo1xbgGtP6 MrYpV39zxKr2rD785JVfpGxJPrzxDbz5sTOgBHIqZ2BK1SZQ5Wgc1mvy/KsJ2eISzjY5 Vevw== 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=fp/9xhOD4HmbDF1HFdOd79Yf2CXGwv8kOhhb6d8fvHQ=; b=WatDzHhjiQxEBIOr9gowg76twL0RjvAJfOqBknaFHHSUO3LdJFMEaUB9H17dJ460jP pCR7XwOzMniZdulLYTpXI4NeXuNUj9yA0u5fmAM+CdMl35iyS9upkDhw90yOinQNv6OX hzerwU5g6pzeX/LLHMYdT1zd/sviZJ6jxbIHSjiSdIm6pclevX2khTBD6+JTJwCw7KgL TyZHEszIrPLh3TtbZ031WvkwSz16g2Huac9aFLQPqu6fthirBoIFUEFXDBiMizgDMTOn mobl57PBd7bJKGLOzlBWZB1UM4hHj/rTajIuzJjOAIt1B3nebohiiTIHEmj5rUyI77KS SLXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DRPlWHmX; 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 n18-v6si16372307plp.294.2018.10.28.01.29.05; Sun, 28 Oct 2018 01:29:20 -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=DRPlWHmX; 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 S1727762AbeJ1Qd7 (ORCPT + 99 others); Sun, 28 Oct 2018 12:33:59 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:42849 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726488AbeJ1Qd7 (ORCPT ); Sun, 28 Oct 2018 12:33:59 -0400 Received: by mail-pg1-f194.google.com with SMTP id i4-v6so2409219pgq.9; Sun, 28 Oct 2018 00:50:07 -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=fp/9xhOD4HmbDF1HFdOd79Yf2CXGwv8kOhhb6d8fvHQ=; b=DRPlWHmXfEgKDLuQEObzbRdPkOOjwSCmj5kq+n2EoPDdn82EGIbPvygnk9YknrWawt /UYZ44J5dukNMGgdPFgOg7e42UlF4KOC/bK1ZKdtX03rZ6Fu7XUTAN7ukRpNsph1XzO9 qWyzZ+Z9Ohs4++QVlOHY/XxRwJM3RI8NLMxmHgczSXP8rCB0pEAmzy6SqNPmwwbXQ8PM zBilOx9IBaC/S2a40/pFvFtsvu9yNnZaX04sTNglTxvu4mn8Jd9ksf4iyxtK8MzX02i2 sEfQRjubVtFd6JB3PmC1FgnqelumTNaYIC7boht3Qg886Wqep7DKD/0zhAgKQ6qz0vJ/ 3Xew== 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=fp/9xhOD4HmbDF1HFdOd79Yf2CXGwv8kOhhb6d8fvHQ=; b=li7Zv29nh+su1nBbvLBady1/uo5ivIAE3SY5SVQ6aJ4+uZXCPfeYbSD9qiBoDqnXY8 Wqagz2tpXdTH8NhgB11QD6Fbf2Y+ngYShz8towNoX11ugWjwh4uj2u6JzwPDwS4b78rq mKzxD5sLJk/9Djz7AC585jYIGLPU5/zlGASL8vLhvXq8K0IcHXForFDWDZfYBMVL4DLV acH6azAxTxbx2rxLwn1jbrxGwBW0phFKr0E+evTknFIGVx4Msd9L0ln1hCYIaFpMzht3 vIwTpo2blcCyAoLROSWeCZcYPZI/5vQ7aLVWplnHZGcbVUtJLT0ZFNyCwUoNkMMRUzpN gHaw== X-Gm-Message-State: AGRZ1gImcHUKkb36vSvjZsvvMicPOnLnaYL9ECOoC0kXNIPVUMvl6mY1 0UmkHJg5SqVVlGSFDgwMFjI= X-Received: by 2002:a63:ce14:: with SMTP id y20-v6mr9688461pgf.248.1540713006718; Sun, 28 Oct 2018 00:50:06 -0700 (PDT) Received: from nishad ([106.51.27.228]) by smtp.gmail.com with ESMTPSA id t9-v6sm8514357pgl.37.2018.10.28.00.50.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 28 Oct 2018 00:50:06 -0700 (PDT) Date: Sun, 28 Oct 2018 13:19:59 +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 v6 0/3] 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 v6: - Split device tree table addition and device tree support addition in two patches. - Replace platform data with device tree support. - Rename boolean property. 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 (3): staging: iio: ad2s1210: Switch to the gpio descriptor interface staging: iio: ad2s1210: Add device tree table. staging: iio: ad2s1210: Add device tree support. drivers/staging/iio/resolver/Kconfig | 1 + drivers/staging/iio/resolver/ad2s1210.c | 114 +++++++++++++----------- drivers/staging/iio/resolver/ad2s1210.h | 20 ----- 3 files changed, 65 insertions(+), 70 deletions(-) -- 2.17.1