Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp301450lqp; Wed, 12 Jun 2024 01:53:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU19zHufERDJwH7Qx5XHEZhDUopB2YPlknEMc8STc6HJymBxCUpaz6mNAalTsImzCjQleegBFSzoCGlHw/AExELNm6yafiEoSJEbZd3aw== X-Google-Smtp-Source: AGHT+IE7GelcBYY95WX3RNqTWQd3vjSv3ZadmNf4BztnLeSNJKBV9n4y+j7Ltv4bR0L02l54cKue X-Received: by 2002:a2e:9cd6:0:b0:2eb:fa7b:557c with SMTP id 38308e7fff4ca-2ebfc8f93ccmr8552781fa.0.1718182386450; Wed, 12 Jun 2024 01:53:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718182386; cv=pass; d=google.com; s=arc-20160816; b=VmMSY7UpkVGCZXD5QzRSBwjzrmWtE7bL8FL1ZXs6WdwaPmueD0hOUPmCWciprv2PKP g5Kn5LCv0dlCMcZixwH0ZNUnm91E9U1qwmIeD7a5Ke2NBfS9AAtwAodiihYekfxHX/E4 4LJziHVxZQ+SpMHBBCyLdZJ6VdVCtVjmWFDa2jMYUK1bm/kyF9ZSrHcGE2WdD4HLgdoS As7npXPdbDEFdQ7Yqaq4vrkM19d7UH5n1XaG0JP2uEjE6uDnHO6C2n21GZujOqL5V1uv lcc4h7WOEzPMViNprg69OLqEjqjetbFOpbozkXq663VYDsxbIlkpdCula1gfAyCJYOj/ y1yw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=GRlEpNQ1vOAfspdoLRmjbH1WiL/9+2xtBIbJoKzaPig=; fh=42Q9aNrM1NcGZGUiWJ+7id+hthyrHFExTv/+De4ctW8=; b=KZbVab38iKXm8bFXHXhTitCpFkhnkZQ9F1nhLnrlPk+5BZYgkuns7pJwG52MjPVCCJ iGi6Y8l1jr5uoJmHYPuQ7r53TJckpBZm5TOePysc7QBKOBdOuD47/zPi8Lyhu+NMBI3+ F3OaMn3tggfJXX9jdSCo5qVxnhaPapT/0jEmI6w3zqbGP+OAkTbFgj4pHpewKsbKRQBF 5CGVpTNKXTLXM1Ql0+M6PJ5YAq2thtJEuFl7Blp6Z5hEQ/hhUR8sHBihDLCXFzg+X0y7 /SQAYqaFmp/gH1uqW7gjo5eUNaTxq6SGM27+kJyOKyRBpQY2f5zOpFSgAWuIePtqzlJw rLSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@melexis.com header.s=google header.b=RXtpudb5; arc=pass (i=1 spf=pass spfdomain=melexis.com dkim=pass dkdomain=melexis.com dmarc=pass fromdomain=melexis.com); spf=pass (google.com: domain of linux-kernel+bounces-211187-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211187-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=melexis.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57ca4609663si935708a12.49.2024.06.12.01.53.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 01:53:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211187-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@melexis.com header.s=google header.b=RXtpudb5; arc=pass (i=1 spf=pass spfdomain=melexis.com dkim=pass dkdomain=melexis.com dmarc=pass fromdomain=melexis.com); spf=pass (google.com: domain of linux-kernel+bounces-211187-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211187-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=melexis.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 879771F28307 for ; Wed, 12 Jun 2024 08:34:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FDB216D32C; Wed, 12 Jun 2024 08:34:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=melexis.com header.i=@melexis.com header.b="RXtpudb5" Received: from mail-oa1-f46.google.com (mail-oa1-f46.google.com [209.85.160.46]) (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 3A597169ACD for ; Wed, 12 Jun 2024 08:34:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718181261; cv=none; b=Wef6qVDUXBhip9czeyQ4qkylcd8KGzg6wORHwOVt5t3Gsq9PNBZ3i5YlqbNpKxNPTjtz5dZW8TnoXc5rszy2RjeAknUHOwuW4jD362JRREBTO7okCDxbweDts7tvk/i+T+wSWyUuZKdE1Ykc40iOgGaw7EqNt/t6BoLoxDCl0ng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718181261; c=relaxed/simple; bh=GRlEpNQ1vOAfspdoLRmjbH1WiL/9+2xtBIbJoKzaPig=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=XxdeKUl4RJsECKNTwqpZwYAFfC+mgVYfqB9cl4ND5kziDcLjkVa0hjntNaTlMxQbMUJecg/9psSuJHtlXc8wtT6TAny3rKAnaBew45MjmFEC0kBviIB18Gz/6xMfJgYgsa+XRqADmoZMM4u6V8DG7OXHf6VWXNGkwmrIZ5/n6uY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=melexis.com; spf=pass smtp.mailfrom=melexis.com; dkim=pass (2048-bit key) header.d=melexis.com header.i=@melexis.com header.b=RXtpudb5; arc=none smtp.client-ip=209.85.160.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=melexis.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=melexis.com Received: by mail-oa1-f46.google.com with SMTP id 586e51a60fabf-25488f4e55aso1932729fac.0 for ; Wed, 12 Jun 2024 01:34:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=melexis.com; s=google; t=1718181258; x=1718786058; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=GRlEpNQ1vOAfspdoLRmjbH1WiL/9+2xtBIbJoKzaPig=; b=RXtpudb5gcux6vLZNizkC1Gi0nVRGEOvoDc844hMyv3Q++DWuwEnhSH8BbSE52Sz75 Toz9zvItgfCkXXy30UuJGo/+t0lTs856wbTi+0d0YuoQtnO6+JL9zPF8hTUIGHulpuG7 j9XO1cFnaFTCkSzETrlEGvRuEtBHJi8s+tTjAmvwpqP/oqOvYrXN2/gTauCcuq6Jd2QA Y5y3fUFikO9ii/vR/8cZwvoWf3God26upWWTcsmfya2moEWHmneKBp35Jxp18QazRueE or8KRbvnKoLdTtQ9KLxMb+C0wvRsXz2HjBtlTnLNvT5I7vQl20DOsy5kACXuv84mE5vE cZtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718181258; x=1718786058; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GRlEpNQ1vOAfspdoLRmjbH1WiL/9+2xtBIbJoKzaPig=; b=hLlvHwk/4forLyZBNYwv76JzuszGXJZviCM3Nud16Fye2IYBOgUEj6JKs8GBsUInC+ NHDqwJ5gwE+2H4dtHCar65DyZRpn+Fko4pvOcnY1xL4JWKqYNsA2xplRTVfXI6n78VJP 6skAfBEyYyze4J6OEswuKXwD8GPi/1hk8QE1KksmV+JguYiZxustbUoN4tP8R6fPRBMf fd7QIUGHOQwe4czatDsh9cUD887k3qoNvwJVgr2M+4TZkH38GHu8LY27oyze97dVqWNr CNjxVuzUIQflAf74895UQEWxWjwtmaEKkkQOQV5ahesrJf45Tiky8vfSjxDJzGmIDf4F UJuQ== X-Forwarded-Encrypted: i=1; AJvYcCXj/oXQ0LREKIBLD2hn3V122QY7qGDlhtf1TsfFSLkJQPA0nRVx7APNGLk2vxnsnA/oMi9A5I4L2Klpy3CxWSf0IpqggJQJ00G3xISv X-Gm-Message-State: AOJu0Yw3JJSsPlLU/3TG1FkGVbzRv5ZXK8is2kIeCnjdE+WxseV/D8IH xsMjFTsk0+/Io8roVdJQQ/fAjMP7eJ3aMQfAwaWrTG7uqLD5baz67C8z1Qkl7KpoCZcPPptqweQ 4cP/kosNiPXXIUiyJe0BBM6nLzTNoCFqja74r X-Received: by 2002:a05:6870:b625:b0:250:7973:8092 with SMTP id 586e51a60fabf-25514ef5f86mr1113389fac.56.1718181257361; Wed, 12 Jun 2024 01:34:17 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240611165214.4091591-1-tgamblin@baylibre.com> In-Reply-To: <20240611165214.4091591-1-tgamblin@baylibre.com> From: Crt Mori Date: Wed, 12 Jun 2024 10:33:40 +0200 Message-ID: Subject: Re: [RESEND][PATCH] iio: simplify with regmap_set_bits(), regmap_clear_bits() To: Trevor Gamblin Cc: Lucas Stankus , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Dmitry Rokosov , Cosmin Tanislav , Chen-Yu Tsai , Hans de Goede , Ray Jui , Scott Branden , Broadcom internal kernel review list , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Saravanan Sekar , Orson Zhai , Baolin Wang , Chunyan Zhang , Maxime Coquelin , Alexandre Torgue , =?UTF-8?B?TnVubyBTw6E=?= , Linus Walleij , Jean-Baptiste Maneyrol , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, linux-amlogic@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable For mlx90632 part Acked-by: Crt Mori Thanks for the update. On Tue, 11 Jun 2024 at 18:52, Trevor Gamblin wrote: > > Simplify the way regmap is accessed in iio drivers. > > Instead of using regmap_update_bits() and passing the mask twice, use > regmap_set_bits(). > > Instead of using regmap_update_bits() and passing val =3D 0, use > regmap_clear_bits(). > > Suggested-by: Uwe Kleine-K=C3=B6nig > Signed-off-by: Trevor Gamblin > --- > CC list got suppressed on first submission, so resending. Sorry about > that. >