Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1822384rwl; Sat, 8 Apr 2023 02:34:18 -0700 (PDT) X-Google-Smtp-Source: AKy350a6BUJ11FEXgCptMCWBbkVT4i86L4CDNg4JnBYznslo4QfGd2+0yDRw5IfuJCs82p8fmznJ X-Received: by 2002:a17:902:ec86:b0:1a2:7356:1ec8 with SMTP id x6-20020a170902ec8600b001a273561ec8mr6523429plg.67.1680946457954; Sat, 08 Apr 2023 02:34:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680946457; cv=none; d=google.com; s=arc-20160816; b=EfhbZNqYOocwUyxmGhE68ygCTjAqy2Qj4I4XATUOeOsFv7wWx9h4q+09Rllnt/m8B7 Up1j5h8wyCiRp8GOTyJhIW1L70zerK0EkPC0DYwSpNxy9KdWnqqaNebr0Mv70+oimsaL gW4IXVxFefOHPchTFCtrhf+zLMwjZRD+//i6EtTDeK05SNtTO1XLNGtTfx0BPDUtIZr5 wEeBo9Bxg8rhfI0S4Q//zzkKIN20LIW2TdVrWNSib5++qz/leyeu5BjLFs27noBuDiDt mMB9dpa+k0YuO3CBgMI91AUhsDPpLMeQvuiw3rOy63f7or1PMQke2WYcn7sXWowbuSlf zMCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=UQ4S7Z2P4TUYaEjkkeZUDWJm6SRghynmRX0ZScgZgso=; b=JmzHAzTIa4UqTtPX1gIJC0/pvTXDeVD/71MR6WCOCy7hVqL9q4GLhUJf4rEWWGLtYe 8UNPB0WHsLlDKPksFzvgr/Orh2JwQ7y1XeJaQMAEWCFk5/7tsayUgewT41+T63CC5v// w4jsKH45fUjhdNpqIciJ6vzd1FUw1kmGylfRkf8iCTv8sKd01VE5W7uhklrIQYneiy9u 82UTS1hgjZv9efFUx5WLqwA/q1aoUTz2oTz0syjTIfk/jiLvOavTFhj0Sk89vRTPK61k g4VSwpyoCc1MTi84iZNhr9lKlvUji7G8OQ4rZdZvPxGAo50jjBfGygdh9YdePqweD8nq leWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PvBUwzjt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k16-20020a170902761000b0019e6763b213si5743407pll.99.2023.04.08.02.34.05; Sat, 08 Apr 2023 02:34:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PvBUwzjt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229785AbjDHJbw (ORCPT + 99 others); Sat, 8 Apr 2023 05:31:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjDHJbu (ORCPT ); Sat, 8 Apr 2023 05:31:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FADFC140; Sat, 8 Apr 2023 02:31:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E437A611AE; Sat, 8 Apr 2023 09:31:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BF76C433EF; Sat, 8 Apr 2023 09:31:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680946308; bh=StJNO4de7jBrcTpA+nFUKFtj9EXHG30Gz3JlLFkKPyI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=PvBUwzjtr76bPsYzGahl89tM4xiOgWiJXfh9UzZ+4N7PztOaqcneGsB3hIiXXjYuY ztxTG3rnLZ0czLhLHpRRWp5d6Ft6rmCMChvY1BFlmdAy8vNH+4HlsRW4lhzohKuGnX 6R8tUUv7xoU7ZoqJkFY9jD+yKzmqZLE9wX8p6pX4ah4F0pq+O4rYev5ljECAO2Ow5j +bO2tTbUhnWMG5SON7cqNixhaCI4g+Ms467R1HsMWRVwb9Oey8t/4hKhLWc/TmUgiF LgHR+f73Ka7wblqquHjE8jO0QuadqCzycqlpGVJeVRSfFSg8YEok3SE488hW6rrWmg UgDbFK0tf3egA== Date: Sat, 8 Apr 2023 10:47:03 +0100 From: Jonathan Cameron To: Brian Masney Cc: andriy.shevchenko@linux.intel.com, trix@redhat.com, lars@metafoo.de, nathan@kernel.org, ndesaulniers@google.com, u.kleine-koenig@pengutronix.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, hslester96@gmail.com Subject: Re: [PATCH] iio: light: tsl2772: fix reading proximity-diodes from device tree Message-ID: <20230408104703.758cb5c0@jic23-huawei> In-Reply-To: <20230404011455.339454-1-bmasney@redhat.com> References: <20230404011455.339454-1-bmasney@redhat.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 3 Apr 2023 21:14:55 -0400 Brian Masney wrote: > tsl2772_read_prox_diodes() will correctly parse the properties from > device tree to determine which proximity diode(s) to read from, however > it didn't actually set this value on the struct tsl2772_settings. Let's > go ahead and fix that. > > Reported-by: Tom Rix > Link: https://lore.kernel.org/lkml/20230327120823.1369700-1-trix@redhat.com/ > Fixes: 94cd1113aaa0 ("iio: tsl2772: add support for reading proximity led settings from device tree") > Signed-off-by: Brian Masney Applied to the fixes-togreg branch of iio.git and marked for stable. thanks, Jonathan > --- > drivers/iio/light/tsl2772.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/iio/light/tsl2772.c b/drivers/iio/light/tsl2772.c > index ad50baa0202c..e823c145f679 100644 > --- a/drivers/iio/light/tsl2772.c > +++ b/drivers/iio/light/tsl2772.c > @@ -601,6 +601,7 @@ static int tsl2772_read_prox_diodes(struct tsl2772_chip *chip) > return -EINVAL; > } > } > + chip->settings.prox_diode = prox_diode_mask; > > return 0; > }