Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2888215imm; Sun, 24 Jun 2018 06:48:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLcuHoQeyzOfdnITjZz/DiMASL3Xo8Nj++WgjYFOLVMbHvk2plgek/4Sg3YBmhCjJ9mTgV3 X-Received: by 2002:a65:5143:: with SMTP id g3-v6mr7480042pgq.190.1529848117351; Sun, 24 Jun 2018 06:48:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529848117; cv=none; d=google.com; s=arc-20160816; b=ygwfbAaw+YGzM4NrYG0aB3ayZdI+nsmLcJMFv5sqMh4KqdZuntM1kDwxVrBeSFZyDC CnvaogaxwEaZrVIzh3uqyMOI1cR9daIVx7JlHYtto6nFasETEBFri+RZXtDgylZPt6oo SM0RikG09c+q6EXzZL1uXQsU0XtC5FdKPVXKN9HDHhqPfRcClkovY/gqNPtAZ60Lx0GI HX9Q6iXRvXarhJawrMyh1b9wN/eUH1HAWiOJx5K8A1jAzjErQsvx/aYsbaca2p0nj4bS SBYq8lrEdOmHaLZg7jBv7JtIOMr1Oy+YGu77FFo04Wef7cvc7dtxxKWQJScnUDo3eIUw czBA== 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 :arc-authentication-results; bh=ri5gNXj/Ytew2wpmWEcUWCx8Z0OntpMECn+VUanyZMk=; b=z4fIK6WByxpFPNEkKKvta9GbNO2200+PuxIvKAJmjxp6eDk2TtUoyHuEoUWk1/z3Rt HddfRTnGw39go5NCDV4NUF8xi8Py1PYBMJ8b+H8KnlNUkuN8Df/JwjR+DKygna3M9wEb Y52a+j1O1852UCuC8WxY0nlXnoWa5biCnUvlwpu160HekuvgeynxunJ0S5iuVffEXnPH BHOkLmjLqJD6dfa4E4v1tWz0jEWzYob2MfzlYamDdLxzLUH1ZuWiZ68Z6LQCZcliv2ol ZvXJ2IOtmzlm87fk5JOOegbDKdAU7afFkv+96RU+oYxvCp2SFAYNYHRPM14lUT0lb3vC ZgfA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si7038327plx.351.2018.06.24.06.48.22; Sun, 24 Jun 2018 06:48:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752027AbeFXNrl (ORCPT + 99 others); Sun, 24 Jun 2018 09:47:41 -0400 Received: from saturn.retrosnub.co.uk ([46.235.226.198]:51994 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751927AbeFXNrj (ORCPT ); Sun, 24 Jun 2018 09:47:39 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) by saturn.retrosnub.co.uk (Postfix; Retrosnub mail submission) with ESMTPSA id 431599E78FC; Sun, 24 Jun 2018 14:47:35 +0100 (BST) Date: Sun, 24 Jun 2018 14:47:34 +0100 From: Jonathan Cameron To: Baolin Wang Cc: Jonathan Cameron , Rob Herring , Mark Rutland , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , freeman.liu@spreadtrum.com, Mark Brown , DTML , linux-iio@vger.kernel.org, LKML Subject: Re: [PATCH v3 2/2] iio: adc: Add Spreadtrum SC27XX PMICs ADC support Message-ID: <20180624144734.62f28908@archlinux> In-Reply-To: <20180624143009.48cf14f8@archlinux> References: <900586c7a4ce55818ab330c738f306c7452191ef.1529550463.git.baolin.wang@linaro.org> <95836d610301133ffdac1efa86d7daf4cecb97b7.1529550463.git.baolin.wang@linaro.org> <20180622151338.00003622@huawei.com> <20180624143009.48cf14f8@archlinux> X-Mailer: Claws Mail 3.16.0 (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 Sun, 24 Jun 2018 14:30:09 +0100 Jonathan Cameron wrote: > On Sun, 24 Jun 2018 17:13:00 +0800 > Baolin Wang wrote: > > > Hi Jonathan, > > > > On 22 June 2018 at 22:13, Jonathan Cameron wrote: > > > On Thu, 21 Jun 2018 11:14:05 +0800 > > > Baolin Wang wrote: > > > > > >> From: Freeman Liu > > >> > > >> The Spreadtrum SC27XX PMICs ADC controller contains 32 channels, > > >> which is used to sample voltages with 12 bits conversion. > > >> > > >> [Baolin Wang did lots of improvements] > > >> > > >> Signed-off-by: Freeman Liu > > >> Signed-off-by: Baolin Wang > > > > > > One trivial missed bit of cleanup inline. I'll sort that > > > when applying if no one else points anything out before I get back to my > > > development machine. > > > > Thanks. > > Applied to the togreg branch of iio.git and pushed out as testing > for the autobuilders to play with it. Sorry, backed out for now. My togreg tree is non rebasing and this is dependant on some stuff that only went in during the merge window. I'll send a pull request to GregKH fairly soon and after that do the merge back into my tree to pick that hwspin lock stuff up. So this will be a week or two before I can apply it without issues. Give me a poke if I seem to have forgotten about it. Jonathan > > Thanks, > > Jonathan > > > > > >> + > > >> + indio_dev->dev.parent = &pdev->dev; > > >> + indio_dev->name = dev_name(&pdev->dev); > > >> + indio_dev->modes = INDIO_DIRECT_MODE; > > >> + indio_dev->info = &sc27xx_info; > > >> + indio_dev->channels = sc27xx_channels; > > >> + indio_dev->num_channels = ARRAY_SIZE(sc27xx_channels); > > >> + ret = devm_iio_device_register(&pdev->dev, indio_dev); > > >> + if (ret) { > > >> + dev_err(&pdev->dev, "could not register iio (ADC)"); > > >> + return ret; > > >> + } > > >> + > > >> + platform_set_drvdata(pdev, indio_dev); > > > > > > Why? Looks like this is left over from when we had a remove. > > > > Sorry, I missed to remove this redundant code. > > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-iio" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html