Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1791634ybz; Sat, 18 Apr 2020 08:32:39 -0700 (PDT) X-Google-Smtp-Source: APiQypJQYS4YqXkdidBY5WzLacCxi71xP7uN6SzzY0IMBJn7hwd712F880ewSg3u3T5xE8nhvaaC X-Received: by 2002:a05:6402:888:: with SMTP id e8mr1717819edy.132.1587223958950; Sat, 18 Apr 2020 08:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587223958; cv=none; d=google.com; s=arc-20160816; b=DfT1BVxWVy3fZrJ3tt7XQxV11KaLBk8JN37Tbs4HFDjLB1bgg+t/so5LhChGlw1lOi l4lIOBrYCTymWtZJyy701whw3REepcRbPa240bNnpPzI817yS7H+k2EVquSbcVnpdxGM 8mhuVGmGEh+MPDWFNvmCMhmiX+51zBj9lU5IMcGH9XwVx3BR+x90jurFqMTwhWraKx1O bMnWUVLniKpD/R1RMrUWGmLVMYa3hO+oWg739HIyKRPKG7Cr3gAiKRrDkBpbuS4OET/G R7/0vpZAMPQ6/A7yIl9TE/W+WZKlagnw5pvd40j3lDabX4+Bk9MIWdtZ5fG7eGDvfZyR iStw== 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=ra+V1fp2nlXcfbEOlWgubM334nXmOTg+MZ8FoLoqhws=; b=NcXf9G01FbShTNsHaujn1oJI2ClLxY++btXPjb++dippnIgHpom4i1AqiyXXqUa3BO Prz1/hlvC7TiFoz6pkl9vj/6DKCG8IFzal0wf7UMcTPNd3btVFcAoOWHR+nHu0WTgc5T KH0crlgM5eqvnPrDHDmd9GbRgLOpBGQRt4s+4ty3i0h0BgUwm7g9R5qIi47NxOCgXCJb 2zskRBBwkF9CtSbMD3jrih1d0rg5Uon4L77/XQbhgWLr/QYLR0CfePLB+BQq8LJ+d7nW 5fOvZ4KgzdIXjB48GE7zx3xHz/6DySNDpQC4/4NfTKzSO/4ZUkBwwYsDj1lRmdpSlwwO 2V6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZaI0nmrg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g6si2075776edv.316.2020.04.18.08.32.15; Sat, 18 Apr 2020 08:32:38 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=ZaI0nmrg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726754AbgDRPai (ORCPT + 99 others); Sat, 18 Apr 2020 11:30:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:56656 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725879AbgDRPai (ORCPT ); Sat, 18 Apr 2020 11:30:38 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (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 CA696206D6; Sat, 18 Apr 2020 15:30:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587223837; bh=Ji+/ngu49EDoosMhuiqpUh49xYTr4T3ZLflDlqaizbM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZaI0nmrghirZ6FTduutJsss6K/MJO8aYdEMAW7OSKFjpLp9Cmzbbh+R3gJ7qrdoaB ltPK2LvdCrdhLXT4eAHv9D+bclpATI0CzFW6PoRAnBQkzgkqAVKr8NaLnUHgJ/QhTu mZ6rJM1hCTUnPiDZbYBpRIQH/9A1OsCGFXXhH9Gw= Date: Sat, 18 Apr 2020 16:30:33 +0100 From: Jonathan Cameron To: Cc: , , , Subject: Re: [PATCH v2 1/2] iio: dac: ad5770r: read channel nr from reg Message-ID: <20200418163033.21696ea0@archlinux> In-Reply-To: <20200416115848.56156-2-alexandru.tachici@analog.com> References: <20200416115848.56156-1-alexandru.tachici@analog.com> <20200416115848.56156-2-alexandru.tachici@analog.com> X-Mailer: Claws Mail 3.17.5 (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 Thu, 16 Apr 2020 14:58:47 +0300 wrote: > From: Alexandru Tachici > > Read channel number from the reg property of each child > node. > > Fixes: cbbb819837f6 ("iio: dac: ad5770r: Add AD5770R support") > Signed-off-by: Alexandru Tachici This one is awkwardly timed - I'll be doing a fixes pull request shortly then advance my fixes branch to include the patch this fixes. Please poke me if I look like I've forgotten it! Now we are out of sync with the bindings but as long as we get the fix in before the release that shouldn't really matter to anyone. Thanks, Jonathan > --- > drivers/iio/dac/ad5770r.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/dac/ad5770r.c b/drivers/iio/dac/ad5770r.c > index a98ea76732e7..6302f11551d4 100644 > --- a/drivers/iio/dac/ad5770r.c > +++ b/drivers/iio/dac/ad5770r.c > @@ -522,7 +522,7 @@ static int ad5770r_channel_config(struct ad5770r_state *st) > return -EINVAL; > > device_for_each_child_node(&st->spi->dev, child) { > - ret = fwnode_property_read_u32(child, "num", &num); > + ret = fwnode_property_read_u32(child, "reg", &num); > if (ret) > return ret; > if (num > AD5770R_MAX_CHANNELS)