Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp913089imu; Tue, 20 Nov 2018 08:48:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/X+eLmemscK//v+7V454+u/rzE4520xGcvJdyRDQkPODqesrwWehIh07KOXp6XzriyRgsrG X-Received: by 2002:a63:5c22:: with SMTP id q34mr2526079pgb.417.1542732504138; Tue, 20 Nov 2018 08:48:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542732504; cv=none; d=google.com; s=arc-20160816; b=yHfUSHHWGXSWfbi2IsgB/dD3Udc1UcaqYUC6mzCKZgwNaJSNjDG+NDCzV87/4Meixb 7rryPdca3vCRlteWkGLOgriJgBxuDfw1Lq4q4ubnkCweTAJ0dKtm9xoY0wG0kWd7849e t2vuqMfj4DlNd1LnfngetFuxWrrpkv7h+pcROZg+v33TEhijfW9fOHUpMO0WF+mKhwtb gJ4IMgCauBbypgLfdyGddbCW0EnU+6orxVDh2szbM5d10Lj2RiqAMDfbQ6gSJ1Ko5XF/ 7KIHFiSLFNOdmaTDje/t2q8/5CZHrb+H/yfLglf7TFxzUlTZxttIixdjx+8El1O/OmrP 3nzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=PumaF0WGuF2uCTYcjGBjM+EP2thEMaxMMKNwJDwfhqk=; b=UZUMsikTy/qRFpv84sIcXci5fbddxy6Vjuzs21LQg6UiVa5tQIDaC9K/Xt/7DURNaj bwADvzHY17ejrUhoUixxRB0D8b1gopdFSV6Kvh4I2lX07w/H81Egz0QDyrn3CN3szh4+ oDhk82cMOEVVwzrxXKlep2xt8PjkJCy7No1OfEd3lBR9ODeeuoTs8nSWdi8kHLnRqEgN 7MHytiIg0qvnP9/6oXTxlev97im/dnd/w2GwqYet5HX101toyRjhfscKjfhIF3qgAuNI BYhRckY34iOh49w1yS0jwfN/hUmij9l2DoBR78WSmCy1JvnFkpUBrr0fN7mhn1MvUD3Y 9pjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AtzLUCf0; 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 h96si18765291plb.230.2018.11.20.08.48.07; Tue, 20 Nov 2018 08:48:24 -0800 (PST) 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=AtzLUCf0; 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 S1729353AbeKUDRb (ORCPT + 99 others); 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-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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.17.1