Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2379132rdb; Tue, 10 Oct 2023 02:02:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtSB28UxCU5f3Jxv6UebAjuGwi48/Fn/YT2v4Qm5MZRILqi/jj+BdoCY/VYm4AmhUzC8Zh X-Received: by 2002:a05:6a00:2e89:b0:693:3851:bd98 with SMTP id fd9-20020a056a002e8900b006933851bd98mr17832830pfb.2.1696928540298; Tue, 10 Oct 2023 02:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696928540; cv=none; d=google.com; s=arc-20160816; b=bAVN+B8Z/BK8xMhBX1o6wTCTXmluIiC6hIMAxboxfWnD6DscA9lVewGuReuVG1w3SG pDrN81tqd/+gAToPMn2wSWRjJuz2J152yw8TkjP8CtdwgpPEB7XjINtD3gaQ8VrAnO34 46dz3P6HTrlQmHyNhF0GwDyLOt8gK3fNb1dH/uS7GzN6QQJSkV3yRzf5usukTGZY4n+E PZcRcMnCYNGIUOBqGctffRp0GvLXcKQMENORNH4CEVTBILLvuh5k/2HYgjpm7QHTl5rJ ID2d5Satg/KFdsy3OHGLb6R10KQLrSYSCJp7Ay+gGfcZYCXzFMqX5Jkc6/6wn3fiDq3V db9Q== 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=b7CA4TYTdxD6sKnN7s+q3DXGDh79m12p2CFqqYdBdIY=; fh=JOYizewANRLZLQaZ0hj+CIswxWal+SB8L0ktN+G7/pw=; b=XNfusdlqAjXxakWhwrvZyvKuFUP23vpwN44IUpl3TibfLDFhv7E9iZa1kKL4iJSIuy OsxFspB5pNtYZl820Mvk24ovK0+GsPH4GAne15lLsagQwHpHvQC2si+1o6vbG2xuOZKI tLmWXEexHLgGGlVSVS06NywpFrjU+OYSCXrwtIZadURvWX/4IQINt5JHuPwfcB5qIVmF rb3HvQvbSwUoFFXf54NcHjZfLYwrfrXYqfY/s+E1Erx/El54e6u+1ZgvCBG6wgGxUMe0 oaqH5z/WYJZ2iXOK3xe5xK9+q3701G62D8hvPHFj8ddPAQ+ufTlR1Pmdn/sASibwThYR 0W/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WQllbwYC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id q15-20020a056a00084f00b00690ca3d66bbsi2726285pfk.262.2023.10.10.02.02.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 02:02:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WQllbwYC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 2B65080834A4; Tue, 10 Oct 2023 02:02:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229538AbjJJJCK (ORCPT + 99 others); Tue, 10 Oct 2023 05:02:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbjJJJCJ (ORCPT ); Tue, 10 Oct 2023 05:02:09 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 202D2A9; Tue, 10 Oct 2023 02:02:07 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 260AEC433C9; Tue, 10 Oct 2023 09:02:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696928526; bh=72C0ZN0WQE7pBi1Wuy8CUeVQX+MYR/mu/Fga9E36idc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WQllbwYCMVDDXPg25og4dgKD0nFSfCQDh62zLSrTlzUruv+apvKswmyuPEknOuWfq ApwL2uocObUAWnxv/ZK8DVDagCDo7t+J+p8yBOlHbxuAouLTD9GcM88YWoUNPA+Y0e gTTygtQ4PahDjgq35ELj5duclTia+agT8ZI7UOvyWigXinUBjGbu2xWMhTmuU4nnZH y/O4sRdSHitxNxDUAnzS/BO4gVSjwnuES28RGtfOu3iYDfiCJpkCes7xGpjcNDqZOo 2Lwjd/+oNAkZEdjr1PpslTZJNhSwO/IH9ImoO7vU0COpcxhWiwrAGajf3ZM9WYS10b yZnT0ilK7EjmA== Date: Tue, 10 Oct 2023 10:02:16 +0100 From: Jonathan Cameron To: Jagath Jog J Cc: Andy Shevchenko , lars@metafoo.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC 2/2] iio: imu: Add driver for BMI323 IMU Message-ID: <20231010100216.169f573f@jic23-huawei> In-Reply-To: References: <20230918080314.11959-1-jagathjog1996@gmail.com> <20230918080314.11959-3-jagathjog1996@gmail.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 10 Oct 2023 02:02:18 -0700 (PDT) X-Spam-Level: ** On Sun, 8 Oct 2023 11:55:32 +0530 Jagath Jog J wrote: > Hi Andy, >=20 >=20 > On Wed, Sep 20, 2023 at 4:13=E2=80=AFAM Jagath Jog J wrote: > > > > On Mon, Sep 18, 2023 at 3:34=E2=80=AFPM Andy Shevchenko > > wrote: =20 > > > > > > On Mon, Sep 18, 2023 at 01:33:14PM +0530, Jagath Jog J wrote: =20 > > > > The Bosch BMI323 is a 6-axis low-power IMU that provide measurement= s for > > > > acceleration, angular rate, and temperature. This sensor includes > > > > motion-triggered interrupt features, such as a step counter, tap de= tection, > > > > and activity/inactivity interrupt capabilities. > > > > =20 >=20 > ... >=20 > > > > +static const struct attribute_group bmi323_event_attribute_group = =3D { > > > > + .attrs =3D bmi323_event_attributes, > > > > +}; =20 > > > > > > ATTRIBUTE_GROUPS() ? =20 > > > > Okay, I will use ATTRIBUTE_GROUPS. =20 >=20 > The ATTRIBUTE_GROUP(bmi323_event) macro will define two variables, > bmi323_event_groups and bmi323_event_group. The event_attrs member > of iio_info is of type struct attribute_group*, which means that > bmi323_event_groups will remain unused. Since I am using a single > event group, Can I keep it the same way? Yes, don't use that macro as not appropriate in this case. >=20 >=20 > Regards > Jagath >=20 > Jagath