Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2052770pxb; Sat, 14 Nov 2020 11:21:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlBZvkWYAmsmljRsl66q0rKP+e66wRk+tboe3TPbic4DFFP44lc2COP9KcWgSBZTTA1Noy X-Received: by 2002:a17:906:a052:: with SMTP id bg18mr8106573ejb.550.1605381687251; Sat, 14 Nov 2020 11:21:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605381687; cv=none; d=google.com; s=arc-20160816; b=PHYmST2miX+MVjuBghOEBSeBG8UG4jr33DHNzxLlmS/ldp81FmUeUqPV9nioM4wkTz 7nIp9WwxClLE5hHTYKeULtNkIXtgsSG2Zg6vfIK+NFaoXjxAxjeB3+rezy91S2Gd6Qmo xNje5KO/fUxsk7KIM8II4kp30BuRqh1Fps9qSCsxhXcEf5hLXRy5veCtu1+vwNMM/hTo 9L0xKaNEpsJr/QmClvuapdKNFP/4jZk3Sblhk/rm0zc0Pfst7tSKHLFNnA2hDeu5aCO+ YQGrn4iiV55akfKU7F4Q6ZqW/vExNMSz1ctkkiGKIMs+sXdkKJJwfArX2DBZXxqTXYOO FzUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=LprFlXm3QsnHFwYyf6IBNwnKnM90RlC5pgaU/uNuj6k=; b=Xo+df3othZMPtV1qRbHm/II01Y/K4ipLqgvjFWIy4xL5HjSoglcQURSsHxfQd+Wa4z 5IyXDFLbfZ04W/Hs+mxBbxQoa+AUKw5ayM/Y/8oM7NKj5X9qG1KYUjZqOCJQQ8aVmXsH poO8v9eBUV8vUQ7MduTxSQWXUYuLQ7dXSl01xrn95InCz9hJKWzWa1C7aNulTo0vKWDj 3ucGmchoVPvzeQ4VKWzmCBSz94eSGFym3zTKxp8xjr6oIa1DFcS8ctHbOBELSI0vqg9J cWHMxoY6spL1tWnyhvlYqV6XhrmRXUM5JfLS8PV1MrEUHHq8jvdtBTpkl3mUN1VYOGbx BX7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w8si8390711ejo.321.2020.11.14.11.21.04; Sat, 14 Nov 2020 11:21:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726376AbgKNTTi (ORCPT + 99 others); Sat, 14 Nov 2020 14:19:38 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:59045 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726287AbgKNTTi (ORCPT ); Sat, 14 Nov 2020 14:19:38 -0500 X-Originating-IP: 86.194.74.19 Received: from localhost (lfbn-lyo-1-997-19.w86-194.abo.wanadoo.fr [86.194.74.19]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id E4F291BF205; Sat, 14 Nov 2020 19:19:34 +0000 (UTC) Date: Sat, 14 Nov 2020 20:19:34 +0100 From: Alexandre Belloni To: Jonathan Cameron Cc: Lars-Peter Clausen , Peter Meerwald-Stadler , Nicolas Ferre , Ludovic Desroches , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/9] iio: adc: at91_adc: merge at91_adc_probe_dt back in at91_adc_probe Message-ID: <20201114191934.GB5272@piout.net> References: <20201113212650.507680-1-alexandre.belloni@bootlin.com> <20201113212650.507680-6-alexandre.belloni@bootlin.com> <20201114170804.4b51c84b@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201114170804.4b51c84b@archlinux> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/11/2020 17:08:04+0000, Jonathan Cameron wrote: > > - ret = at91_adc_probe_dt(idev, pdev); > > - if (ret) > > - return ret; > > + st->caps = (struct at91_adc_caps *) > > + of_match_device(at91_adc_dt_ids, &pdev->dev)->data; > > of_device_get match_data - obviously an unrelated change but trivial enough > I'd just slip it in this patch (unless you have it a later one!) > > That returns a void * so no need for the cast. > I guess I will change the next patch to use of_device_get_match_data as Andy doesn't like it when the fo_ and device_ APIs are mixed. > > + st->registers = &st->caps->registers; > > + st->num_channels = st->caps->num_channels; > > + > > + /* Check if touchscreen is supported. */ > > + if (st->caps->has_ts) { > > + ret = at91_adc_probe_dt_ts(node, st, &idev->dev); > > + if (ret) > > + return ret; > > + } > > > > platform_set_drvdata(pdev, idev); > > > > @@ -1091,7 +1072,6 @@ static int at91_adc_probe(struct platform_device *pdev) > > if (IS_ERR(st->reg_base)) > > return PTR_ERR(st->reg_base); > > > > - > Stray change that shouldn't be in this patch ideally but not that important. > I know I sneaked this one in but I didn't want to have that as a separate patch ;). I'll drop it.