Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4601506ioa; Wed, 27 Apr 2022 07:16:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeOLZ1YpAmzPn8MYtVC22ArptInGBnUa8bnaIWMGLpRA8zDZGjGSm/KjwWKs82WckwOj/o X-Received: by 2002:a05:6808:1912:b0:325:74c4:35e3 with SMTP id bf18-20020a056808191200b0032574c435e3mr2162788oib.61.1651069004125; Wed, 27 Apr 2022 07:16:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651069004; cv=none; d=google.com; s=arc-20160816; b=JraMaqfXl0/1WjmM4EnfzgLnMODKzvNoJZJm2oilsQBwGWojAtp0+7ke7NRuf+6kmy 5B8mv9jCVZMQDRlT7ZNdu3kMsxDAvN/6s+WJQTxaw0HfmkAZzUbvuW3YgRYKa4NgjJFT iG/TewW9Vshr4vmk9AYOx/74Ny/0UCeGVktUUHOX4kIdjAwSJOZHQ2Zzp8CFgYBqiIir AJFCCtB0eTZ6HsL/T/Go/WUqTSHvTBTjms/oep8Iokx38pjZdofuLZ20dJEfPX2JZ4Sw 5a2347i9QdbkW7WmJzhTOW5xkHGZoiHs+lZJ5H0WkCtqiZYtBwLQKffY4G4EyDShxglL SlGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ib87TMnHdHSaWtcmbF0OjtdiDrTYghbPJrfftr1/beA=; b=vwUWBEysMdziT434bNSL3pWplVSml5r8gPhHNMRZBybsASy21Hg7pBB1l+Gr5oy7Uo 3hiyvkFjwyWUL+C0Dg8q8+nPxAPkQ/TK4MOu9H6BBfKG2Bul/sP1rtYzLx6Wbar+5Y9i E7ygWSStoQMZKCGOeaPGkUct2ogfDvPWYOBeRV+R3WKXnpRQU7ti++Oqhm2kG5TFKFZj iKll/4lVV5MhzfBTliCy9XZObEKeRsWQlnYIfbgBmE/gXPxU+xg+DmFZv+fuKpI8mIzE 0BMBrIZ4GVoTyNT1IhY3wWuw4aUpsXnSdEYFG8+tuiHfDQ80FZ56oLLsluxGVUvi9u3N qVsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SaItUT9u; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id p83-20020acaf156000000b002fa63780b33si721524oih.256.2022.04.27.07.16.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 07:16:44 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SaItUT9u; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DA127400EC7; Wed, 27 Apr 2022 06:46:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236413AbiD0Nto (ORCPT + 99 others); Wed, 27 Apr 2022 09:49:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236671AbiD0Nsy (ORCPT ); Wed, 27 Apr 2022 09:48:54 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D339A3E0138; Wed, 27 Apr 2022 06:45:43 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id g23so1979748edy.13; Wed, 27 Apr 2022 06:45:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ib87TMnHdHSaWtcmbF0OjtdiDrTYghbPJrfftr1/beA=; b=SaItUT9u06Eh7/ttp0tmVSQJhdgqGm0RaG2WwKokmUyZR5EslExzxThOhwuR5+YK1f onyYH9SF4kFelpU+G/xj0BKJTJfO/PDIdYSY/c2rrXvk53UIcJd4z1fgrqU47qhxqzcR Mtl0wDuzRXIP6J0WIH1fkgIkc6uf0JTmZfIkzdCS/5TiyX/msHNDJvu5+v86DF5sM8u8 BKAVki37XkZKCkwEXrSCLpi3EpjBpsuA27up8+zhFa3RI06cH6BHRUD9sOxBfBSPhZQ7 V643WRmHggAmKN68jedC0Acsy1iBpcaiO2i1Aroi1p6IH9XRogYe3Et3lVPc7YOTBGQo ztLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ib87TMnHdHSaWtcmbF0OjtdiDrTYghbPJrfftr1/beA=; b=53YWnY1kxtRvoyrFcXbOWPtAyZY1H2AXaEJ6I7cF82dvMsccYL0e6S6zxNQRNZoVHL cZGxnzfKoAIuonpXQH5rzNFC0eimrPnnN8GhPEmKpbKzN778Dy3kcEZOMMVZK3qI6CKy UcClY2Q75hkihtnlybwskU1inNDv8UMGB3qor6HINpe3SKLhbhfoV1JlJ1DWUFAi7LI/ TU5I+VTuHrkOd6fQvsQByew1xUGdcPfJ/SYdhL6pSE85pCh4hRQLQDYsXdTCvFVio+NF Lo5HN7O718f5E/48WGvYMMX/xHS51QP8Ib+RI1ddRU1Bsd/gD1qNxaJH61UC280K7T0c Q7Mw== X-Gm-Message-State: AOAM5323NtzXJ77WnQpRwCTHKarRoMQnL0A0UgDqquNwmwCc0SHlZvo7 Q/GZK4JEsbnnuBnVj/FHYs8BhfXuJdr4+bkXxKs= X-Received: by 2002:a05:6402:d51:b0:425:d5e1:e9f0 with SMTP id ec17-20020a0564020d5100b00425d5e1e9f0mr21870786edb.125.1651067142414; Wed, 27 Apr 2022 06:45:42 -0700 (PDT) MIME-Version: 1.0 References: <20220420211105.14654-10-jagathjog1996@gmail.com> <202204211211.febbJ6fy-lkp@intel.com> <20220424172002.7dd48dfa@jic23-huawei> <20220427030119.GA31584@jagath-PC> In-Reply-To: <20220427030119.GA31584@jagath-PC> From: Andy Shevchenko Date: Wed, 27 Apr 2022 15:45:06 +0200 Message-ID: Subject: Re: [PATCH v4 9/9] iio: accel: bma400: Add support for activity and inactivity events To: Jagath Jog J Cc: Jonathan Cameron , kernel test robot , Dan Robertson , llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-iio , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no 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 Wed, Apr 27, 2022 at 5:01 AM Jagath Jog J wrote: > On Sun, Apr 24, 2022 at 05:20:02PM +0100, Jonathan Cameron wrote: > > On Thu, 21 Apr 2022 14:45:05 +0800 > > kernel test robot wrote: > > > Thank you for the patch! Perhaps something to improve: ... > To avoid warning can I do like this > field_value = FIELD_PREP(BMA400_INT_GEN1_MSK, state); Can the same be used as below ? > > > 1089 set_mask_bits(&data->generic_event_en, msk, field_value); In other words, look for function macros in the bitfield.h. -- With Best Regards, Andy Shevchenko