Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp506393lql; Mon, 11 Mar 2024 08:59:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWlxyyy7VjAbPchVx4+diu19o89AwaeERFNEXyd+9uw6hDGLrw3DascjMrjUWqiG5yuErAhGfZNUwjRFUwJ5iLWbI/V+LGFE6SC79sKeQ== X-Google-Smtp-Source: AGHT+IHObefn+5vsUibC4sKKDCPN1V7lL6Ri+hOXGA+bjFPnygoVgwU73Q6vF5O6jherf3lYpaFP X-Received: by 2002:a05:6e02:1e03:b0:365:fe9f:8127 with SMTP id g3-20020a056e021e0300b00365fe9f8127mr10690622ila.8.1710172774272; Mon, 11 Mar 2024 08:59:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710172774; cv=pass; d=google.com; s=arc-20160816; b=FmUy4keCD+J1uyjjOOOrhRR5D2hAsutUmd6guHiHZDmMPRg3MDlyY9CuJjODtEcL3F Ix1SIfBNk+nwWGYfsioS1A4ptOjvWjZP8rzM7rqtBf2F/uiNxcnoutsTiAyj+3jHVze6 WCtEXRVG2QNYJkESjL457elanrrSh/ABvg4PYxCf/MFq2xhA0GMhPWkhkYMZGWCsJEz1 YVliBlcokcFEdgcmMaroFC/7DXyECfyoA2LoRemp5RF1uroSPHqTmw9UbZP9KtwFqjod rYgu4CvReelQWVlYaxPn6wdZJva3224T5r5cJ1E+vpSz/GeCuanSRRpPY0o7RdRgwyB0 RYtQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=ToBXDqaFdw1gSMNmXGPZ6xKetkEt5FHKosGu4TvQPb8=; fh=HsI2DoyfPgiQZIZSlkiXkYTuPoTCB9qXP1MURtUuAxc=; b=gwErSJREzhG5Gel66oZd+8ugbYQjpOGbt8QoNCb+gZ0AuaeJNWTWTsWovuu+cpbC41 1X5WOLxQaJ/R8wjOz+ylWdEqsYcPn3U/d/79U5raDPg+7aPfqWFq533BB85Yq80p47eV +oijIxWZuUpOeyRquzAOsQo+GY9+o866hzMAz5pLAsI/wQYdXW70pYzUG2GLJ5GoguPC tdwlq6NPwY+t8VVuvnAEeIu8e1BAIlTLXtevIYdVvyx6SN/mWdkjvXCc1WKV+k1IakGO ghQ6VyetwAvO21i5PDVdeYRd+/AeNFIf/SgYyV/BhoIOHZOBODgoP6S2nDAgdVOz98G4 Y4AQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-99161-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99161-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z14-20020a637e0e000000b005dc1c542cfcsi5057194pgc.263.2024.03.11.08.59.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 08:59:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99161-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-99161-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99161-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BCC92B21029 for ; Mon, 11 Mar 2024 15:59:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA38B4779E; Mon, 11 Mar 2024 15:58:42 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28DB74A99C; Mon, 11 Mar 2024 15:58:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710172722; cv=none; b=Wm/lFkQ3QJeibzRKBXlnH5IkETG1vUYS8oVmlJJ15ltUsjRYENOYyxkUpRZIIkyqYAOk1joby0eWKEErWoHQ8NZZtjwbVMsC1CJOmYi1ZGEm/1rEo123oyZtdaUP4JYhK3Zstxt6XlfgUVZUPU+o+k6Uevf8InkfKq5WAdoh20k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710172722; c=relaxed/simple; bh=uPk/YFMv5dSeHslgbuWypcz5oo6ifz8zjx4p7Cws0jM=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rp44qfITSNPkwiBZJXCVWTq1MICG3chUJClXRPXpGF6gp5C9CDlgbEg1B1qvK/0YgeklsUgR8CAfrZqFfmY/v4knJWCFBtihQi3k5serg5nPhlG8PVAJM7AhYhsX4j9vfvSr1Mw0Agyw6iyoRjS0L/qnO4G8MShXk5QTx6ZQvwQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4TthD25rLCz6K9LZ; Mon, 11 Mar 2024 23:54:26 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id F0ECA1404F4; Mon, 11 Mar 2024 23:58:30 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 11 Mar 2024 15:58:30 +0000 Date: Mon, 11 Mar 2024 15:58:29 +0000 From: Jonathan Cameron To: Andy Shevchenko CC: Vasileios Amoiridis , , , , , <579lpy@gmail.com>, , Subject: Re: [PATCH] iio: pressure: Fixes SPI support for BMP3xx devices Message-ID: <20240311155829.00004478@Huawei.com> In-Reply-To: References: <20240311005432.1752853-1-vassilisamir@gmail.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml500005.china.huawei.com (7.191.163.240) To lhrpeml500005.china.huawei.com (7.191.163.240) On Mon, 11 Mar 2024 12:05:07 +0200 Andy Shevchenko wrote: > On Mon, Mar 11, 2024 at 01:54:32AM +0100, Vasileios Amoiridis wrote: > > Bosch does not use unique BMPxxx_CHIP_ID for the different versions of > > the device which leads to misidentification of devices if their ID is > > used. Use a new value in the chip_info structure instead of the > > BMPxxx_CHIP_ID, in order to choose the regmap_bus to be used. > > ... > > > const struct regmap_config *regmap_config; > > + int spi_read_extra_byte; > > Why is it int and not boolean? > Also, please run `pahole` to see the best place for a new member. Whilst that's good in general, there aren't many of these structs (4ish) so if the 'cheapest' positioning isn't natural or hurts readability ignore what you get from pahole. Jonathan >