Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp251438lqp; Mon, 10 Jun 2024 03:01:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3idDeaGzXhXBisdCTPok+XIhSMXW8O3H2THdk7Ije8WxzdoD5yGEB/pIV5noklmA49xkXy9uopyuqCc39ed9DH99XCJ8wVPDDVbgh9Q== X-Google-Smtp-Source: AGHT+IEKMtCtjQKJz+kwGRV296CTTl04QywmKbJLHxq4SZnLgY4QjMXMg3cv/Gl0kUV0mP5fkMK4 X-Received: by 2002:a05:6830:1b6d:b0:6f9:90ba:6646 with SMTP id 46e09a7af769-6f990ba684dmr4371290a34.26.1718013670588; Mon, 10 Jun 2024 03:01:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718013670; cv=pass; d=google.com; s=arc-20160816; b=zg5UmtUdVlD5KmZSAJkVPy4CZ6refP/IihNHIxRZ3Vq6cZ856vADOD43WHb4VSfik9 knTbH7oOzrh+1Cyuhg5JahEqlFKm1H6OU1f1r9xpbkqELzQP9eT2iRL2l4YYPKHclYDc z/Ung1qFxfIe65ROBS7sB8NHhsbprd3+QM5Ns53qy6xBVgGpQjIZpj8urak4Sk3DP+fn KfaEXbNoNQcsggW3vUt1Na38c6BMuBpLMSDtUlnRihmyzl0obnu7JvyxyBbYG+JPd8WN KNSbxJSdglQraLMvPa2Dm7iGXCJorCO0Eah6l8PiMs4nV0uO+l/egACBspT0dFWP/f48 62dg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=lyl3+XIog9dQIWNoiS9a4VyeYbrY08OnYSdGirX7m4g=; fh=p/7qq5BELA4Wb8+CyCn01vYqOtYlWFQjdmkkt2I6MWk=; b=LnyrjAe/fSSQvFg9Fhxx+F8d5sA4SjEvIZQmUqb5J4HRAa9ALeGQnd0H+J9boWbcXy 7OqaaTMLF6hNkXIL6d5pGfT8wyXj09JLLLylyaLBWE5EoPGfvy6h+Zq7fdIc3kYph6Xs Qd3Hrbb3A+QqZ07GBad1WbJgaESS5306Pt02EYDderYkcm4P9kT00upQobQ3T8b5CH1M CZh0H70ycKX1hr43lgl68++/2bpGsvEimDWcADbOh7DWRZrSeh9O6XrC+CcYRScEj6sW JmRytkwr2r0GprnHU8j1cRjqyIQK3+79Dto76IZHCga9s2myvv3s0hbKASn8FEklmbCw dzkA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dXhVE3gV; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-207979-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ada2fe7eead31-48c1a256211si2032848137.717.2024.06.10.03.01.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 03:01:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207979-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dXhVE3gV; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-207979-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 47C061C21BFA for ; Mon, 10 Jun 2024 10:01:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF23376020; Mon, 10 Jun 2024 10:01:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dXhVE3gV" Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78134380; Mon, 10 Jun 2024 10:01:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718013662; cv=none; b=jD013Tk197d2yG1Ph/eeF6EcnN/9oSE2FfvKErmZR30ayI6hwMtx/pDSNU2fnxBqKMn2DYJgpu5xHNMUtbWvOHMCKdWMR33HHUGQMO1F5G7yp2+fcp/8KhUDduOsJLYO+Vgi7apeK9Wr1U8/FzToHXSGMPc2rus+AjN9wiERlPA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718013662; c=relaxed/simple; bh=rpfBCewrJ57m1XhK04q4oYOZWvFgVJ0ofLHYyQPUef4=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=i19uIAIAqynhnynNzY/3iHgReXG3GIAxgt93wrs9B1CrOyHDLNjaoCxz+4Nfcnqi6giEJI0o8cOCDwSWUnCCWeVsw8JrSvhx+lCFoyIZeAmWpxcDMzVFc0LtCAY7nH1dDJxtzfkgtUzGJ77kt1fkLKfEOEdppTBCjlQnVDobXNw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dXhVE3gV; arc=none smtp.client-ip=209.85.208.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2ebdfe26217so9808971fa.2; Mon, 10 Jun 2024 03:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718013658; x=1718618458; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=lyl3+XIog9dQIWNoiS9a4VyeYbrY08OnYSdGirX7m4g=; b=dXhVE3gVE/t0zZCcy+jeF364VLo2gBkJcMadWZ6lB840vIm127AybOwj3RyXYdVYU/ qY8NjHfJ6eX5iafdpsOuCujbHQerIZY6niSIoAPLRNkSZOy10dz5mRaRfne4AtB8u5WS 2u1YQZEKh0820Yw64sIco0IGUDtga2lmRFuyzFQiyF2R5GyhPBxdXlDN3iBkoGXnBu9t Wx9Jfdb37MljZjmA+0ntg5eggFBXwNshWc8kratzp7S06io+jNIMyXiz7ed/4YC/t0ZZ 2GzpSGq7+NrKSw0CNsLxYACwTsHT6z02j0XEj3uVDfACawnjw0skVImvQvVV/3JRq6xj Gi4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718013658; x=1718618458; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lyl3+XIog9dQIWNoiS9a4VyeYbrY08OnYSdGirX7m4g=; b=Kr1YCbIgU43C/RqECsayJ3MRgxw8BRQJSoVm+PFxMZLX1+lExwwvtfHkw9hiK8k7Sz vrdacrDMTXPx7hx4kOAjlrC085pakeQmWjOIyEjeej72S2CwNmGQAqcg7veeRa1i+dZl v09y4V5CI/6q9y4CEbVAFQCUK0TQ8NmLP6ju0UeEWdehdRS4+1YaBVPaJWxuctc+Kb/h VN9OgsUoSo+31lFFpO8G7ksUv5EFJlJkGLjiCJnH/euzNdIZnD2VWEoXH2gHp9BVKwso 3IvTKYphhdFQoc3CaYH44VMwoe2L4+gi9AWq3SH70vHGmiTfPWiTbqzb0WQ44Mib9PnD KxZw== X-Forwarded-Encrypted: i=1; AJvYcCWnfrIlbeq1BCVBUWlh2eDZs3U62W9ToGu1GXHNc2jVK0Ba375sI1I/M2FpkiIxIS33Of12r87MjN+a2ZaAC8seVJU/XjBG+2Smf41hWo/tm7HiUq2bvSs29DW9w0QMEhn5vxR0ACZ3 X-Gm-Message-State: AOJu0YzCiecuvaK0q4P/lqKqpG5t8n2HACX1Wh82bDC167gFoBoehbRJ BN0uvDJuNRnTwF2GfLwxkVkGCVfXZwUbOkSWazrX82qPvJTDpk6MZVsQgw== X-Received: by 2002:a2e:9043:0:b0:2eb:e429:13df with SMTP id 38308e7fff4ca-2ebe42915f6mr17454221fa.18.1718013658124; Mon, 10 Jun 2024 03:00:58 -0700 (PDT) Received: from fedora ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2ebd9167b31sm9132541fa.120.2024.06.10.03.00.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 03:00:56 -0700 (PDT) Date: Mon, 10 Jun 2024 13:00:46 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Matti Vaittinen , Jonathan Cameron , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] ROHM BU27034NUC to ROHM BU27034ANUC Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wquGZ2/YnxfLTbx/" Content-Disposition: inline --wquGZ2/YnxfLTbx/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable As discussed here: https://lore.kernel.org/all/ff8d6d14-6b48-4347-8525-e05eeb9721ff@gmail.com/ The ROHM BU27034NUC was cancelled before it entered mass-production. A replacement was developed and named to BU27034ANUC. (Note the added 'A' in the model name). The BU27034ANUC has several changes that make the old BU27034NUC driver unusable with it. I was told the old BU27034NUC should not be encountered anywhere. Hence, this series converts the rohm-bu27034.c to support the new BU27034ANUC instead of the obsoleted BU27034NUC. Additionally, the series adds a read-only entry for the HARDWAREGAIN to help understanding what part of the scale is contributed by the gain, and what by the integration time. This is useful when figuring out why some transitions =66rom one 'scale' to other are failing. --- Matti Vaittinen (2): bu27034: ROHM BU27034NUC to BU27034ANUC iio: bu27034: Add a read only HWARDWAREGAIN drivers/iio/light/rohm-bu27034.c | 335 ++++++++----------------------- 1 file changed, 81 insertions(+), 254 deletions(-) base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 --=20 2.45.1 --=20 Matti Vaittinen, Linux device drivers ROHM Semiconductors, Finland SWDC Kiviharjunlenkki 1E 90220 OULU FINLAND ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ Simon says - in Latin please. ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ Thanks to Simon Glass for the translation =3D]=20 --wquGZ2/YnxfLTbx/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmZmzsoACgkQeFA3/03a ocUYDgf9GnIKYIWxGv1aiYQKnalRlH/SV2zybaI3hhSVehGbJWgzYWHBkq674CK2 KnJXtnMQvCLS4FLaUAFHrDDvuNcfswHpLnbBjQnwmgbIySMI+Q9VK+8S/mRnC0aB xbSJLhhoZXEp8ki2cH5CzF7r+RpzUVR4wMm2mllzTIkx5/PMVZElucRD2A/N7sZP kAH0rYoulRQFR4B0nrWgjc9yZczwJN0g9YnF88x/FEgebkeg3JccZkmp9CWVunQQ cRE6Dq1Zj1qLoSY/6+9UTz0obx3PGakvwJIBsRLJkMM973sCfSs+fncB+n8It0uh V45zTzPSAKbTkMZmD8X7N5TjdL18qg== =PuWi -----END PGP SIGNATURE----- --wquGZ2/YnxfLTbx/--