Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3783832pxb; Tue, 19 Apr 2022 09:44:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4z8pQ/WKAQ5M6wmY1QpYbEudvq048TKdMCaFvOcPymhyrhE6fx7mHP51x8icdQ/ZfFprv X-Received: by 2002:aa7:9283:0:b0:505:fe1e:f6b with SMTP id j3-20020aa79283000000b00505fe1e0f6bmr18710991pfa.29.1650386656429; Tue, 19 Apr 2022 09:44:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650386656; cv=none; d=google.com; s=arc-20160816; b=FRb8JjS1YTkbV6oFXB88j+LZxmc+mJmim9fLy8mjuJ2XAbcL1h/AwcuMoZLAYenbEB fvGK4ntdnVhSarbbeWHlpHC+3pan4iG06wy74//TquFFAviF00Q/pEeU7So7k6uFswZd 0GxtU8k8TudmsAyKOdFGYQo/BRWyZouOfa2AXfAAuWeWQuAccx3n1q/ZUQxZrNFsNGWe 1xWoKxHklUaT8bEvt9Hr8ngywQHu5mo62Eq23YK2pRKfFbzeBG74TGk1er7fHLVpFPPv Ifn1j9D5uXSdTi/gS8IrQiFgw93PTs1WarT1C1/SX/uAtE/NCCyfh36pTRdU1QbUP6Mk Pkpw== 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:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=49QW4R6GIj49YV1VdgeuJcGl8zaS9XFIb7bFesDfF3k=; b=XEW3uU9PBoIUKuMXUXCsuzaYvYWZi0h7zSNJdaJLhDN8xGO/bA7yj3dpGENxnAOmQa +2C0mTq19MjawvZuab2qWYWcDs2ZQkeW5pg284aQDGqRo+Gq7oDenoxqabjAPNGIP1Xd QV0RRWZje/zShNRpRpydxQ8bnsPBazGRzv+UkyXGbcX23MAtMwUal8JIOwTnXqTcFNmm t3qyjzEdq991+2LJg744qtUPZCDJoiLcD1gu0fo8pwsTg3MyhmRyusupUsE6sk9Ukd8h rmyzIcd1bbkAvJUVJfKXPeVsORaEuK4U2A5WhkNteUfn9y0X3DOxkcjVeaJ/p142sf60 HNuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IM0iUP7I; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k65-20020a633d44000000b0039d575e74b8si12658624pga.577.2022.04.19.09.44.00; Tue, 19 Apr 2022 09:44:16 -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=@gmail.com header.s=20210112 header.b=IM0iUP7I; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349575AbiDSHvJ (ORCPT + 99 others); Tue, 19 Apr 2022 03:51:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242782AbiDSHvG (ORCPT ); Tue, 19 Apr 2022 03:51:06 -0400 Received: from mail-vs1-xe2c.google.com (mail-vs1-xe2c.google.com [IPv6:2607:f8b0:4864:20::e2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59B3C2D1F5; Tue, 19 Apr 2022 00:48:25 -0700 (PDT) Received: by mail-vs1-xe2c.google.com with SMTP id q2so323446vsp.4; Tue, 19 Apr 2022 00:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=49QW4R6GIj49YV1VdgeuJcGl8zaS9XFIb7bFesDfF3k=; b=IM0iUP7If1NUZsK08A6wTmgqGaR3MnC35ohA70M9SPgPyyuqynKyYoW9A+23xj5JR5 O5G1pj5d1UrO5AjDkp0tS6nnP9KW55Zx66b8k50CqjjR0lyjjnFxXq6o1nv/xWU7VoL3 /iKVKO+lImcc1XDqYk2EOqCeyJdmzob+424UAwdZxBPUAcKKCwIIXQnarYrYG9PkMEMj vp/r033YdHYENyIa9uFnDL1bQ2NXY77KGoQlmFtHXHY1wMnVARYpExWX0UsPLOlZXVqc kwUBqolagLlT0BTRxJsGyaQSvXvqEfvXQnnKhoTE8g6YLYdqXUhYk5YOxR6y14xbScx/ Lsyw== 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:reply-to :from:date:message-id:subject:to:cc; bh=49QW4R6GIj49YV1VdgeuJcGl8zaS9XFIb7bFesDfF3k=; b=F088g985vjwLnwWmOGnqOFHc/kDGorv3UPivRsxCvDlO25GntuosakW0+UCnryOaFp ZqTxOOavRCQB8RlNv/BZWxOlQIIujAaj3Jb4pRD6iXEuwH/bDF54rEX17YZLoTvy4au9 8rEJx6qDn/zvvGY0xV600eaU8895NyiYwIxF3epMWsvAW98/sER2QLKvbDMFmVmwKtix Mqn+MOWbgjMKVh70jWos2rKtMDESzvVr2NBaZ1SLbzA9ERNKNGIridgFyryoNCkzG+/B Pq724KDVKo7yrcGwV0+yvZEfpQB+HOSzaDjkvwGNURN6B0HjxnldK9wlqWT3YlCUCUPK qjmw== X-Gm-Message-State: AOAM532m9X+ju1FGO8jDU1DFG3uGysDuJTVuN9U0HmMvdqRGk4PX+1hO Ar8Gkmm2CDeHMvMVEwLKWGhJHk7G28E8+auaAIk= X-Received: by 2002:a67:fd65:0:b0:32a:27e9:7c09 with SMTP id h5-20020a67fd65000000b0032a27e97c09mr3971392vsa.55.1650354504535; Tue, 19 Apr 2022 00:48:24 -0700 (PDT) MIME-Version: 1.0 References: <20220415130005.85879-1-andrea.merello@gmail.com> <20220415130005.85879-13-andrea.merello@gmail.com> <20220415174808.3b81baa4@jic23-huawei> In-Reply-To: Reply-To: andrea.merello@gmail.com From: Andrea Merello Date: Tue, 19 Apr 2022 09:48:13 +0200 Message-ID: Subject: Re: [v4 12/14] iio: imu: add BNO055 serdev driver To: Andy Shevchenko Cc: Jonathan Cameron , Mauro Carvalho Chehab , linux-iio , Linux Kernel Mailing List , devicetree , Lars-Peter Clausen , Rob Herring , Matt Ranostay , Alexandru Ardelean , jmondi , Andrea Merello Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Il giorno sab 16 apr 2022 alle ore 10:45 Andy Shevchenko ha scritto: > > On Fri, Apr 15, 2022 at 7:40 PM Jonathan Cameron wrote: > > On Fri, 15 Apr 2022 15:00:03 +0200 > > Andrea Merello wrote: > > ... > > > > +CFLAGS_bno055_ser.o := -I$(src) > > > > Via a bit of grepping I can see other instances of this pattern which point out > > that it's to do with allowing the tracing framework to see trace.h. > > Perhaps a similar comment here would be good (if nothing else I doubt I'll > > remember why this magic is here in a few years time!) > > Can be done better way, see dwc3 or drivers/base/ trace point implementations. May you elaborate, please? It appears that both dwc3 and driver/base use this same trick of tweaking the CFLAGS in the Makefile in order to fix the header file thing. What I see is different is that they both use an (almost empty) trace.c file. Is this what you are suggesting? > > -- > With Best Regards, > Andy Shevchenko