Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4833869rwr; Sun, 23 Apr 2023 14:37:15 -0700 (PDT) X-Google-Smtp-Source: AKy350Y8dtxJrGykc8u4RpEyjFVJiSbSjUXoDJ8ZFMjdiNSMzY0EvtDGCG9mjLpx9oG4yWmEQZjf X-Received: by 2002:a17:90b:188e:b0:237:ae98:a47f with SMTP id mn14-20020a17090b188e00b00237ae98a47fmr18409361pjb.1.1682285835706; Sun, 23 Apr 2023 14:37:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682285835; cv=none; d=google.com; s=arc-20160816; b=ZRGFm8dBLKCgl6jlPp93dkPAPne+g7Rlcos5VvMWke1Bz/0SChmjTbdkjdXm0BegJj 602i9+984uv5Pmw21JIzFUw0Rn+EjSHm/WTDPCuayjw0YZclWkIz2NQ3EQuQeymV6IkT TAmAfi1G29RlPoxqkiCpLbHRGLM5kTIcZags8ZsUPTigIfOP1HdCYn8+RoNAj/HjHasS hdKjQHGfSfrq2chrWiEti+Iz6sooCBYhh+fQeZ8PK8zQ8tlpxyQqfYluUH6YJNeFdD3U pP+yljNAtf2DaJrbs6ggQfrl0fdr18Ek+s9KLCruFdIlmESuAP2thbVtt4PtkN2cxr1d Js3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eQGZByzNwTNHNZDulx2ynpAjg2TN652dzcztwDEhLDY=; b=YhYSALzqCpu1HL5YCQW5aVr2nZLjFPV2m1XWC2dgseLVyNeJmP/91Lxrdf3owKNuQc +Qoe0CdG4sJ/SVsC9UVJx98g13G1eoZt5ZRMsmeFDHu/hNeCDPJEo2VRsUt/WM1Ai1rt PhRdJNcGP3i34xIqs5R6Ty0Pg0ukwgcTJoRaJD/sBrX/5k1PJu7epRW4UBzGvzUtTZRc AKKLMh2CPHHJAD1KQ38sU9bIyKV4YNzXBgR+94oFOPrJtNlqGw4NXYM7pB26e9F0c83e vuPvWjntWMu2g5eEajqIoYGh5f4J143680JZxJTN/S+Ov32ol4vf9ppSQRih47EJElct Qsrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=N6vcVe5J; 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 o13-20020a17090aac0d00b0023d2847e355si12536470pjq.0.2023.04.23.14.37.02; Sun, 23 Apr 2023 14:37:15 -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=20221208 header.b=N6vcVe5J; 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 S230139AbjDWVCF (ORCPT + 99 others); Sun, 23 Apr 2023 17:02:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjDWVCE (ORCPT ); Sun, 23 Apr 2023 17:02:04 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D97811C; Sun, 23 Apr 2023 14:02:03 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-94eee951c70so549525466b.3; Sun, 23 Apr 2023 14:02:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682283722; x=1684875722; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=eQGZByzNwTNHNZDulx2ynpAjg2TN652dzcztwDEhLDY=; b=N6vcVe5JMgZk+mcR9rGRaoW8sBPGvj/go9Gq+j6xvO/lb8KPQQA0DOmRCBmdLtTOzM cb0y4b9cnJ3p6+Sa7JgMTJpu+tUrKzIv7kbqDiE93kxi9FwGGgR/kwKKoFAfYrIHL986 1K4YmYJs2WWw8HEftklX8+PfCm6NqUe26NTbPZRmPiG9PWkTxN7yVWJ+TE8sDYsobOMP DF4AeUKaOnNY2gkPVPTbE6lY0hDqeHuFFz6dJiPGQ9lSgeeZLyCVMu+qGAiH0WKQC5E8 P5rWQgJNiFAlhK0FYkLYWoElaDA2v/mslOZ+KY+zjNQMsX44PQbEttK/LjOhOFQDN0WI Q3yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682283722; x=1684875722; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=eQGZByzNwTNHNZDulx2ynpAjg2TN652dzcztwDEhLDY=; b=h71m+jnpvYlGvtbO4F+bYhXW1LIFAK+CuYBqX+6J8XlPsw1dNkk94nHBR6Zmy6ohDk KiaU6/50QxecypW6pkUvTRUc2th5zkhwNGprMz/Hu6SUCAfRTJsRXP2pwh2yDshfBFqn YDQhXSHarjCISyKOquKpGqxxy/BUCjtoZvhDaLHaeQmx8xZOm6EvqISNhzShRkxTA3CO tOW4TwJFls1XG7Eg/96IP6nsoBTfUOaGdKlUV8aURixqNz4GuxYYpOH0h1CTi930llNa RPa+DDONX+d3WFv4fUWSsyndsDOChnzYHoSeXUnsSNt8I4AW4dS+oyh1PxilW0cG8Q7u llIA== X-Gm-Message-State: AAQBX9dZXhOCtOpGeD1NQmQOCqHneUSsDaddj8ixm/Fa3Ncv/lwMSueb PCn4IwmR7DCXoLkRSdaiSY4= X-Received: by 2002:a17:906:111:b0:947:ebd5:c798 with SMTP id 17-20020a170906011100b00947ebd5c798mr10169688eje.54.1682283721554; Sun, 23 Apr 2023 14:02:01 -0700 (PDT) Received: from carbian ([2a02:8109:aa3f:ead8::d7e8]) by smtp.gmail.com with ESMTPSA id ec17-20020a170906b6d100b0094f6bf5ac9asm4754583ejb.22.2023.04.23.14.02.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Apr 2023 14:02:00 -0700 (PDT) Date: Sun, 23 Apr 2023 23:01:59 +0200 From: Mehdi Djait To: Jonathan Cameron Cc: Matti Vaittinen , krzysztof.kozlowski+dt@linaro.org, andriy.shevchenko@linux.intel.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v2 3/5] iio: accel: kionix-kx022a: Refactor driver and add chip_info structure Message-ID: References: <20230422183246.3b18be8f@jic23-huawei> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230422183246.3b18be8f@jic23-huawei> 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 Hello Matti and Jonathan, On Sat, Apr 22, 2023 at 06:32:46PM +0100, Jonathan Cameron wrote: > On Fri, 21 Apr 2023 09:19:32 +0300 > Matti Vaittinen wrote: > > > Hi Mehdi, > > > > Thanks for working on this driver :) Much appreciated! > > > > On 4/20/23 23:22, Mehdi Djait wrote: > > > Refactor the kx022a driver implementation to make it more generic and > > > extensible. > > > Introduce an i2c_device_id table. > > > Add the chip_info structure to the driver's private data to hold all > > > the device specific infos. > > > > > > Signed-off-by: Mehdi Djait > > > --- > > > v2: > > > - mentioned the introduction of the i2c_device_id table in the commit > > > > Maybe adding the i2c_device_id table could be done in a separate patch > > with a Fixes tag? That would help backporting (and I think changes like > > this are worth it). > > Is it technically a fix? I thought it was but turned out my reasoning only > applied to spi. Agreed it would be nice as a separate patch though. > It's not directly related to the rest of what is happening here. I will make it a separate patch in the v3 -- Kind Regard Mehdi Djait