From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-189.mta1.migadu.com (mta1.migadu.com [37.59.57.117]) (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 EAC98388E55 for ; Mon, 10 Aug 2026 07:55:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.59.57.117 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786348544; cv=none; b=Yr/iTgrKv3LTyi8JEZfXCL1+VCOwqqC7Hr6gTR1SO0H7om/e7XQ6kLy8Rzw8FlOl/WoJEzf4kn1s0Uu2129lEjIyS9Bj9uquoo7GuDrM1RI/y1A8UqtwwYa15ccb+Mkr/BkZ3t5+AoNDrufmWuLT4kAvLaTSSyn7z99PiY/RgRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786348544; c=relaxed/simple; bh=CfY9GXcy7Uu6pe55Y290vufRTa2iQtz0q30tAtYPN80=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XrN/Fbs06ZQXEXvUV1wTNYI2wkPqoUwQEGoGpi1j27P3ON7rIxwmqDsp5edlJT76i0DFuzJJNk/q9zTP8o66w6rjYO5vAtrMslvOq91BoP5hwlo2Q3rqPDs9k/ZSDweZPL2/ATHphReSfyP2h+KCLlxKs7ZHyP4Ej26E+lhuT+A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=WYFhlo/F; arc=none smtp.client-ip=37.59.57.117 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="WYFhlo/F" Date: Mon, 10 Aug 2026 10:55:25 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1786348540; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=82lkkM/QsZF2kEurZLORw+0RKriA3bE/GFTKcOTjUvg=; b=WYFhlo/FTXbcOjxZGzzOTPrfsoxj2uN/4mAqeEwHZhaesRUSmmijT+3KPA1iTR0tic4VFI iQR83ch6BgNhKutPVWmJQTZYA92lIKt20beTe0KwTGS4GV6FGrjWbpyDJwVVc/9T3IF+uq K9RragYyKxbtXl/d9jCXNZ3SvCcA8Ls= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen , Matti Vaittinen , 0012-iio-accel-kx022a-Fix-IPOL-macro-name.patch@mva-rohm Cc: Matti Vaittinen , Jonathan Cameron , David Lechner , Nuno =?iso-8859-1?Q?S=E1?= , Andy Shevchenko , Javier Carrasco , Mehdi Djait , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Kalle Niemi , Topi =?iso-8859-1?Q?Sonkaj=E4rvi?= Subject: [PATCH 12/12] iio: accel: kionix-kx022a: Fix IPOL macro name Message-ID: Reply-To: Matti Vaittinen References: 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-sha512; protocol="application/pgp-signature"; boundary="QyBQFuSnY8wRRi53" Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT --QyBQFuSnY8wRRi53 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =46rom: Matti Vaittinen The "interrupt polarity high" -macro for KX022A variant is defined as: However, the KX022A_MASK_IPOL1 is not defined anywhere, so actually using the KX022A_IPOL_HIGH would produce a compile error. Fix the define by using correct mask. Signed-off-by: Matti Vaittinen Fixes: 7c1d1677b322 ("iio: accel: Support Kionix/ROHM KX022A accelerometer") --- It appears the KX022A_IPOL_HIGH is unused as the IRQ is currently, unconditionally set level low in kx022a_prepare_irq_pin(). The KX022A hardware would support other configurations though. So, another potential fix would be removing the define altogether. I decided to leave the define there, as having it will allow users who need different configuration to simply change the KX022A_IPOL_LOW to KX022A_IPOL_HIGH, which is kind of a "easy to try" thing. I don't have a strong preference here though. --- drivers/iio/accel/kionix-kx022a.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/accel/kionix-kx022a.h b/drivers/iio/accel/kionix-k= x022a.h index 0ed54f584223..a2d122c1e234 100644 --- a/drivers/iio/accel/kionix-kx022a.h +++ b/drivers/iio/accel/kionix-kx022a.h @@ -65,7 +65,7 @@ #define KX022A_MASK_IEN BIT(5) #define KX022A_MASK_IPOL BIT(4) #define KX022A_IPOL_LOW 0 -#define KX022A_IPOL_HIGH KX022A_MASK_IPOL1 +#define KX022A_IPOL_HIGH KX022A_MASK_IPOL #define KX022A_MASK_ITYP BIT(3) #define KX022A_ITYP_PULSE KX022A_MASK_ITYP #define KX022A_ITYP_LEVEL 0 --=20 2.55.0 --QyBQFuSnY8wRRi53 Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmp5g+0ACgkQeFA3/03a ocWszgf/R0DYNmXxaREMAcNc1Mz3mLHRrv8E+sAro2trSrF6Go8eA1+1xOyxHaYt KX3EpzAEkpgN0nY0imEM6bcIBbD9CXk5ymKJ6K0Tu6RyP4B7Vm73TsQF8kin/qk6 fddQAJ29oXfPp/5t17MuKM/Nk8dm1OA7aKnZCcEUMK6rbzLop8VcolAUJuzHZS+I I6ndSfDI9ioGNVtGX+PVCvNZy58MO5U3ztj93ZwTVUODPjfy2ZoNvcBHzkWLDe8h IuKpKTIEyj46KB0x3mxJiGJBZpuLRFbbgMd2UoXcv07Zwd64lSNA0BYiDan3ytfn JslR+J2a5+FJQQki/9UWfay1sEE/DA== =CIkl -----END PGP SIGNATURE----- --QyBQFuSnY8wRRi53--