From patchwork Tue Nov 20 16:47:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shreeya Patel X-Patchwork-Id: 10690815 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 045EB15A7 for ; Tue, 20 Nov 2018 16:47:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF6532AB60 for ; Tue, 20 Nov 2018 16:47:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3D3D2ABFC; Tue, 20 Nov 2018 16:47:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B0632AC28 for ; Tue, 20 Nov 2018 16:47:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726414AbeKUDRb (ORCPT ); Tue, 20 Nov 2018 22:17:31 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:44394 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726179AbeKUDRb (ORCPT ); Tue, 20 Nov 2018 22:17:31 -0500 Received: by mail-pl1-f194.google.com with SMTP id s5-v6so1251318plq.11; Tue, 20 Nov 2018 08:47:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=PumaF0WGuF2uCTYcjGBjM+EP2thEMaxMMKNwJDwfhqk=; b=AtzLUCf0AQSDwC+asNWgypn4fpPRzWBYMC7MNnPeYjakCcoWsI2KxDYBhLOyoFZXB2 0jNi0DUI/KBwoVQRDB70+7rmrzaYXxdSFhTUGxFxkGI+4K+BcCtE4UENB8lxklf/ydxl ZzR9ztD8EZ/gaE0s0avSl0V/2ECukTbEONXvHWYm7Wn1mJAc8TKOcNJA0Ww5QAmVFBX8 UEEMcE4pAkscmk5hLTqohacvzJ6jUiQwU5ZPo2oBxS8dHuq1YC3Jdh3QrzI/eiKZZhj7 ewDBoUj57iBFpypF80IDw/PI0g2ZN4ygQhqj5D0Qm/rlqqri/lj9vurzf9nd8cADphr5 sdQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=PumaF0WGuF2uCTYcjGBjM+EP2thEMaxMMKNwJDwfhqk=; b=fhDca+l06XuwSsJ+cF0jEndZxHjeI1sh5S7ZAowgBK4UBb97g8LX9zdsxhA26EUE8Y 5+bOxtjHhafLd1GVUzPGVFoPi2t0OUTGtmbi65dgBjxAMwYm4WZrALiEX0eUKOi409Ry DXZ3FMp/akixTjNtLLKPOWf6X/Te1HlEUscGfcSGUtz+dBGLsncsFxxFJeioRH8TecW5 sQvfyWA3qj1GBTwiQHx3CimBd33BqIAwTNkyk9CYGXmmeQgnmICNXKs+LL/FMrZXekU1 Tn86ijwSE6LUgo4U9bRZC3pm7WyaqLiz9RF7ytCSLj+NFJHXn5BDOjFCpmnw3gZNlE6u np9g== X-Gm-Message-State: AA+aEWbI4ZZv352mRrampqRVZ9SC4P+pVPe0YGGynFVbvdhRC36WrqcK UrJaIIP5JeX8tAh+00TDJPqnKQ0p X-Google-Smtp-Source: AFSGD/XIcIBeP5rDKjPo6hYBFybc1NPiEi0QaYmtpWEg3H8woWkRvnV7LQT7h/y6H1xSkCzsb9WqKw== X-Received: by 2002:a17:902:4324:: with SMTP id i33-v6mr3004194pld.253.1542732447154; Tue, 20 Nov 2018 08:47:27 -0800 (PST) Received: from localhost.localdomain ([103.212.140.152]) by smtp.gmail.com with ESMTPSA id 7sm31762790pfm.8.2018.11.20.08.47.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 08:47:26 -0800 (PST) From: Shreeya Patel To: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/5] Remove platform data and introduce DT bindings Date: Tue, 20 Nov 2018 22:17:18 +0530 Message-Id: <20181120164718.6999-1-shreeya.patel23498@gmail.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset introduces device tree bindings for adt7316 driver and removes the usage of platform data from it. Also, it sets the data field to it's appropriate value in the i2c read function which was nowhere being set before. Changes in v2: - Make the commit message of patch *[1/5] appropriate. Shreeya Patel (5): Staging: iio: adt7316: Add of_device_id table Staging: iio: adt7316: Use device tree data to set ldac_pin Staging: iio: adt7316: Switch irq_flags to a local variable Staging: iio: adt7316: Change the name from irq_flags to irq_type Staging: iio: adt7316: Use device tree data to assign irq_type drivers/staging/iio/addac/adt7316-i2c.c | 14 ++++++++- drivers/staging/iio/addac/adt7316-spi.c | 1 - drivers/staging/iio/addac/adt7316.c | 39 ++++++++++++++++++------- drivers/staging/iio/addac/adt7316.h | 1 - 4 files changed, 42 insertions(+), 13 deletions(-)