Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp673045imm; Sat, 22 Sep 2018 08:12:32 -0700 (PDT) X-Google-Smtp-Source: ACcGV60LH9W/iWIMEv6WzyJCjGctKo49ZR0ZpCKAVlUGOwE+wzGWVUQ48alhYZ2vrLtunOP2f0CK X-Received: by 2002:a17:902:5993:: with SMTP id p19-v6mr304384pli.260.1537629152767; Sat, 22 Sep 2018 08:12:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537629152; cv=none; d=google.com; s=arc-20160816; b=v8nbmH9xzRRzvc74qFRoCmlFD58R/eJWnks+YU1fTKuWQfR10KOx+QYVduQHpa0+K8 aCG09lMT8kiVupJ7BTIKeUi+Db75Gbu7RmlSbStm3/oTKhF0e2D0rlwWQ+wTYi0aE+JU 4bZE+rl8FVNAHdL1JwKoEPa6kv1YgvLrXIWboo67gyUptX/maZAQ3jYQxh9ZPkoYGrUJ Jjz/lRcd/jxEoka/R+mNbGqxszTgjHqeYabzzlS3jH8bMEqaWnsnQZsKPx57UshfRJwm cP8kWKaP+jtGBMQiNQQqaSZpmt+3JWwJ3s/36Nrwh4NJU5YLaoMrkvApunV5RCkY+cow BlYA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=wA3uYVET0gafL7b+C78AAM6B/q5Kd4qMAVA2CflItiE=; b=V2V+b2jsgt3Ud1MLvL6vAewcIa4BCquN0lF4LCrC9jcWO9zzsUbsVjvoBcDj72wmaB w85M5Gc5FMkiuQp7703HhMYVCbhToqKiKuZSUvE5CBoaqlqs++qV+HOeCqim5FMyqnzw gThSscOGWMC2eAI3vwq0iJykRC8ijbnV1xybb53kRb5gGYagk9+BsNHeyVT0T43xUbc9 amIRb0Q4ffxedhRjAI8ycr/GSH2QjMs7anDboCVkeGNsFVbFJ4FIX5LVFm2EKVMvxXDm ErY1f6WYptuoP5Dhbhpg63esY4J+qPZNuHIOSP2Ol+USAHf+M9ZJClctocFDH9XUyRol VEjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=diBSyQYE; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7-v6si30206257plq.198.2018.09.22.08.12.15; Sat, 22 Sep 2018 08:12:32 -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=@kernel.org header.s=default header.b=diBSyQYE; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728863AbeIVVGF (ORCPT + 99 others); Sat, 22 Sep 2018 17:06:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:60238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728476AbeIVVGF (ORCPT ); Sat, 22 Sep 2018 17:06:05 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 39EDF20C0A; Sat, 22 Sep 2018 15:12:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1537629130; bh=xFmWAhD7ESVWU1pQClaVLYJ8amkdMItl9sCvkYLz/18=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=diBSyQYEGweeiRVWYH1O8p/yaIUWU7rd7DcHKemfGga0IWv2fRV138UNIHPfXuq7i lnpwbzZx9fRRslYlWv8LVtkjzc/VkJYcqA8dFB1VhuFutqjqCw5r9KHu37l3gNZMs/ 3F3hZH5XYVfP9TeddbVaUWdZd7SvvXVUFXflZR+8= Date: Sat, 22 Sep 2018 16:12:05 +0100 From: Jonathan Cameron To: Himanshu Jha Cc: Song Qiang , knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, robh+dt@kernel.org, mark.rutland@arm.com, andriy.shevchenko@linux.intel.com, matt.ranostay@konsulko.com, tglx@linutronix.de, ak@it-klinger.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v6 1/2] iio: proximity: Add driver support for ST's VL53L0X ToF ranging sensor. Message-ID: <20180922161205.63d3f4cf@archlinux> In-Reply-To: <20180922145658.GA4443@himanshu-Vostro-3559> References: <20180918082422.13050-1-songqiang1304521@gmail.com> <20180922154658.752f2fbf@archlinux> <20180922145658.GA4443@himanshu-Vostro-3559> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 22 Sep 2018 20:26:58 +0530 Himanshu Jha wrote: > On Sat, Sep 22, 2018 at 03:46:58PM +0100, Jonathan Cameron wrote: > > On Tue, 18 Sep 2018 16:24:21 +0800 > > Song Qiang wrote: > > > > > This driver was originally written by ST in 2016 as a misc input device > > > driver, and hasn't been maintained for a long time. I grabbed some code > > > from it's API and reformed it into an iio proximity device driver. > > > This version of driver uses i2c bus to talk to the sensor and > > > polling for measuring completes, so no irq line is needed. > > > It can be tested with reading from > > > /sys/bus/iio/devices/iio:deviceX/in_distance_input > > > > > > Signed-off-by: Song Qiang > > There are a few bits and bobs in here, but as they are all minor and > > one at least was me giving you wrong advise, I've fixed it up. > > > > Please check I haven't made a mess of it! > > > > Applied with changes to the togreg branch of iio.git and pushed out > > as testing (where it should be visible now) for the autobuilders to > > play with it. > > The SPDX license identifier is inconsistent! > > > +// SPDX-License-Identifier: GPL-2.0+ > > > +MODULE_LICENSE("GPL v2"); > > 216 For 'GNU General Public License (GPL) version 2 only' use: > 217 SPDX-License-Identifier: GPL-2.0 > 218 For 'GNU General Public License (GPL) version 2 or any later version' use: > 219 SPDX-License-Identifier: GPL-2.0+ > > Good spot. I'll fix that up as well. I'll assume the MODULE_LICENCE is right for now as it seems likely to have come from the original ST code. Jonathan