Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1276876rdb; Sat, 7 Oct 2023 23:26:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfa4fs6Igjwqq0MKLclea2mV02GJB3ef2YaHItyH7uPxMvBx9L8hhihAQFeA7H6aRKQwKY X-Received: by 2002:a05:6a21:a58d:b0:132:ff57:7fab with SMTP id gd13-20020a056a21a58d00b00132ff577fabmr16700005pzc.2.1696746387695; Sat, 07 Oct 2023 23:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696746387; cv=none; d=google.com; s=arc-20160816; b=kp05VbK0Bxrwca9InmLOMrwJqVHumZok+iQdCIP4uSsG31GGgWYCZuj2aXTK+XLN3C Sb1BznE7inEuitgeZ7d7eBPzThGOLrAQROchs4ktYb5aD5RQWhyTQmmAm+Sq0dnF2Zhe dGeZlqCWoo2LcYuNy/yZx7ItqI8GJ6u1CXM3L9SvWrua0ZSSL1YGOUMZlPvDg6+89jyb AHEbtaaaKRDcX0GV1lM3QeMAaiFvcPX7v7hMGyf8hDUgLcqKPOffLXD0FFWKw1935BOy LGLz4yrQOhyKDKMVtK3zmYbtTYQjLFq5nodwAfVtFesDX56EcbGEoYy4G/fqMKRD+XnB G/6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=3NIZ6HwYzlFusyGWjEQKDrSy6Sb/ORrlNJfmg+KZe3c=; fh=a7pgzlHd5nb+fHCR4XUKzzHyEJeJxkTjrr6nU/sh/RE=; b=ruH/iYMDG+Y/kMFXMnl2p5/zVBX8ZxrDKDWu2ja4+Cs5Mv+T8mqyUl0zodDCDn7b33 W/yn6uu1Qtfa5CHG2O8kDG/znGolKVwRMhBdf9SgF/4OOsJgGb12xDz1+gsZKGFRlGdk dufQaWqLTu7DNowQ8dhPI5t76zCns7xCu0GeKbTRLBlnVFOqhriyCGUEptESxfV+WEb9 jlN4XBHxI/TmHIFTfyHlUvc/czPfMNRWgJPS6zMFsl3dwCrr1BTrWfsb8106/dEZzwwj JAT4/l06PCYTige1u5giRgZ4V7sCtl0JYLsY4gEJBpAbsV+Q8IYSULLOyqKsbyxyZvfl 70dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Kz5F2j3x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id y193-20020a638aca000000b00582dcfe3b3csi7501804pgd.491.2023.10.07.23.26.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 23:26:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Kz5F2j3x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id A3C8680A49AC; Sat, 7 Oct 2023 23:26:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344425AbjJHGZt (ORCPT + 99 others); Sun, 8 Oct 2023 02:25:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344392AbjJHGZr (ORCPT ); Sun, 8 Oct 2023 02:25:47 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A818C6; Sat, 7 Oct 2023 23:25:45 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-9adb9fa7200so771334266b.0; Sat, 07 Oct 2023 23:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696746343; x=1697351143; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3NIZ6HwYzlFusyGWjEQKDrSy6Sb/ORrlNJfmg+KZe3c=; b=Kz5F2j3xWndNl+dWO3ChBKBPXrgh6Y9vGduQ2ADrxjWbJTrtsar0zGa4sGgO62Gg8a HdDwVLlH91JndqsVAGKbg9/CH6PJiAKKtIx39f2hOIEdKT8VAzycyOgMy6Y0obE5EFP+ 0ajHPy8KvwyyPLrB4mxjPACchcIyTf78QLpiGjAXXQ7+3LXb5FfIHH450M7f46JijqyV 99xhCJx9cn/wEIGzXQPSQ3Tis926DKTMjrPZcoZzPW6pooA5VFzQMVu1nLPos5q2xqZk Fo+C7pos2R3OOVGe61+H9rbKNQT9R+HrighbolAXKr9tPI6VgTA94RgIZ6KJBplp6/Ms +isQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696746343; x=1697351143; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3NIZ6HwYzlFusyGWjEQKDrSy6Sb/ORrlNJfmg+KZe3c=; b=c05BnJXj5d8G4+wf/d6kSqGTjBGfMkOK5ETKpJG5Pg2ZDAmDVFti3FcOocmS6QZMTJ HND8mAcuR+LWQ0m86bsIqPK6Tnpr70CqA79l+ErBQNZNHBh6Rzu+V1eaDSZrMic2+xNX coYmYJ4tHErTTAs4MZEpUGDnMwlYZ3mOZexKaeGBK4IiJlaQ9w7Ele0KVg+xP7PrZ5Iq L29dV0Z7zxFE1pfbE8ruLTuR8xGuthfu8NOnzNPLHwAl61QdPmTPNfL6o4chXr1w3rKb Cd9TeNTPwxTIhiIapR3KJwJV6Ybj6oJQPlle81znjmDJOAZAd2CmHZuMIFTqt5ty58fc L8EA== X-Gm-Message-State: AOJu0YyI9d97bRWrvVfWG8wB8fNo8L9GGmXch0AIujuVPystEO4taySI eNy6TLwRNbRDdw0jA+P3icR9yufiyQ5lnofqVBY= X-Received: by 2002:a17:906:32d4:b0:9ae:5866:9745 with SMTP id k20-20020a17090632d400b009ae58669745mr8906344ejk.21.1696746343496; Sat, 07 Oct 2023 23:25:43 -0700 (PDT) MIME-Version: 1.0 References: <20230918080314.11959-1-jagathjog1996@gmail.com> <20230918080314.11959-3-jagathjog1996@gmail.com> In-Reply-To: From: Jagath Jog J Date: Sun, 8 Oct 2023 11:55:32 +0530 Message-ID: Subject: Re: [RFC 2/2] iio: imu: Add driver for BMI323 IMU To: Andy Shevchenko Cc: jic23@kernel.org, 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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 groat.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 (groat.vger.email [0.0.0.0]); Sat, 07 Oct 2023 23:26:18 -0700 (PDT) X-Spam-Level: ** Hi Andy, 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: > > > > On Mon, Sep 18, 2023 at 01:33:14PM +0530, Jagath Jog J wrote: > > > The Bosch BMI323 is a 6-axis low-power IMU that provide measurements = for > > > acceleration, angular rate, and temperature. This sensor includes > > > motion-triggered interrupt features, such as a step counter, tap dete= ction, > > > and activity/inactivity interrupt capabilities. > > > ... > > > +static const struct attribute_group bmi323_event_attribute_group =3D= { > > > + .attrs =3D bmi323_event_attributes, > > > +}; > > > > ATTRIBUTE_GROUPS() ? > > Okay, I will use ATTRIBUTE_GROUPS. 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? Regards Jagath Jagath