Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5161012ybl; Mon, 26 Aug 2019 23:56:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqytipH+SLkga1MLIPV2O23gwv5IBaTD0J7+IeXO8UHwmPuZueXJy4/ehd77D0rorraNBPSk X-Received: by 2002:a63:3dcd:: with SMTP id k196mr20132223pga.45.1566888971647; Mon, 26 Aug 2019 23:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566888971; cv=none; d=google.com; s=arc-20160816; b=JW/wt0IpLs1a6kQ1HenTACwXFx4ceq4x4yXb5p8JTt6HaQGt5MYBJuyx0LcDpYUM29 5Y4rQ4GHezWHc34CzxxjIaW6MJwoq7FVZusVawCMKKOVpJupIu/TTk/777/wueUQonlR xRtnkmdMZQ3KNb/i/dabp11yJ/ckd2Iiu3MWxmZgA3P46txsjwccvUDdUD9VMn4rX/wL 8wTgPqfaKMTluu/x6TTulHC4qZTWOrmgn5geULfnqC9WDxLE7cR2V6jUHVzkxSdF0yCW n0wm54cTvuj/Y6irRVaGNx4vk2cp8u0WmlKplsTU5kyVx3bQbJenX+HZDrfKyNzghS2N UITQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:autocrypt :openpgp:from:references:cc:to:subject; bh=XYoqb3KSXemZJynQSlB9GwDgQ7IA8fyutl5NqWvsRF4=; b=Ye2cCFKgxJRO/vgCU3V+0MXqSxP0AGQSqUwxAe/nyWUYKeImhdb1rfrE24loemuRTn lHcuwvSJx/21S0O0Ae9idBIBneRAgFsnVp50Rs51IqUoeWhZkES07MoGE5xXWaJqpk3p jMIxNGwekmtk7Ci61fgf81zm0KfI1DVnnf/WKLZdfew8oXt/k4Qt/Bjou+AErJvPBs9Z 8MTOzF8hfsVPLwod72q0f8n/B9sdmyVhr6Fw7VQopJepI/d1Vmw5Fhw35gFYpngLrSFa ojzKMxfS8dXNhxvQjl2IFTsid8rgT1GfhkQmSkgfUuoxf4PQqCirPqIiStvHWpILkOMI ihkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 28si11361715pgk.331.2019.08.26.23.55.56; Mon, 26 Aug 2019 23:56:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726833AbfH0GzI (ORCPT + 99 others); Tue, 27 Aug 2019 02:55:08 -0400 Received: from comms.puri.sm ([159.203.221.185]:58634 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbfH0GzH (ORCPT ); Tue, 27 Aug 2019 02:55:07 -0400 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id E6D7AE046D; Mon, 26 Aug 2019 23:55:04 -0700 (PDT) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZBBjett01ZkY; Mon, 26 Aug 2019 23:55:04 -0700 (PDT) Subject: Re: [PATCH v5 2/4] iio: imu: st_lsm6sdx: move register definitions to sensor_settings struct To: lorenzo.bianconi83@gmail.com, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net Cc: robh+dt@kernel.org, mark.rutland@arm.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lorenzo Bianconi References: <20190821132520.28225-1-martin.kepplinger@puri.sm> <20190821132520.28225-3-martin.kepplinger@puri.sm> From: Martin Kepplinger Openpgp: preference=signencrypt Autocrypt: addr=martin.kepplinger@puri.sm; keydata= mQINBFULfZABEADRxJqDOYAHfrp1w8Egcv88qoru37k1x0Ugy8S6qYtKLAAt7boZW+q5gPv3 Sj2KjfkWA7gotXpASN21OIfE/puKGwhDLAySY1DGNMQ0gIVakUO0ji5GJPjeB9JlmN5hbA87 Si9k3yKQQfv7Cf9Lr1iZaV4A4yjLP/JQMImaCVdC5KyqJ98Luwci1GbsLIGX3EEjfg1+MceO dnJTKZpBAKd1J7S2Ib3dRwvALdiD7zqMGqkw5xrtwasatS7pc6o/BFgA9GxbeIzKmvW/hc3Q amS/sB12BojyzdUJ3TnIoAqvwKTGcv5VYo2Z+3FV+/MJVXPo8cj2vmfxQx1WG4n6X0pK4X8A BkCKw2N/evMZblNqAzzGVtoJvqQYkzQ20Fm+d3wFl6lS1db4MB+kU13G8kEIE22Q3i6kx4NA N49FLlPeDabGfJUyDaZp5pmKdcd7/FIGH/HjShjx7g+LKSwWNMkDygr4WARAP4h8zYDZuNqe ofPvMLqJxHeexBPIGF/+OwMyTvM7otP5ODuFmq6OqjNPf1irJmkiFv3yEa+Ip0vZzwl4XvrZ U0IKjSy2rbRLg22NsJT0XVZJbutIXYSvIHGqSxzzfiOOLnRjR++fbeEoVlRJ4NZHDKCh3pJv LNd+j03jXr4Rm058YLgO7164yr7FhMZniBJw6z648rk8/8gGPQARAQABtC1NYXJ0aW4gS2Vw cGxpbmdlciA8bWFydGluLmtlcHBsaW5nZXJAcHVyaS5zbT6JAk4EEwEIADgWIQTyCCuID55C OTRobj9QA5jfWrOH0wUCXPSlkwIbAwULCQgHAgYVCAkKCwIEFgIDAQIeAQIXgAAKCRBQA5jf WrOH06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nxma/hJwwu1zRNsFK55Q/8Nlukc1WI1U+iF+EmpjZVfjFl9P9X2ArrX6mZfOgUipiY 5VqX5Dys8s44RkFWa02WJygLuO9YUb/P+g8eSbmSYAwp2Gpzcdww63kTLv56uk32jnpDLcYD WG//KA68tPVBR2xhy7Fp+qAa Message-ID: Date: Tue, 27 Aug 2019 08:54:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 In-Reply-To: <20190821132520.28225-3-martin.kepplinger@puri.sm> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21.08.19 15:25, Martin Kepplinger wrote: > Move some register definitions to the per-device array of struct > st_lsm6dsx_sensor_settings in order to simplify adding new sensor > devices to the driver. > > Also, remove completely unused register definitions. > > Signed-off-by: Martin Kepplinger > Acked-by: Lorenzo Bianconi > --- > drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 6 ++++ > drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 31 ++++++++++++++------ > 2 files changed, 28 insertions(+), 9 deletions(-) > I just notices the commit message header typo "st_lsm6sdx" should be "st_lsm6dsx" of course. If you can still rebase/force-push to testing, would you be able to fix that? If it's too far out there already, so be it :) sorry for the typo, and thanks for adding "-imu" yourself where applicable. thanks, martin