[PATCH v2 4/4] iio: accel: kionix-kx022a: Fix IPOL macro name

Matti Vaittinen <[email protected]>
Newsgroups org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel
Message-ID <c2ecaac02c39ebe9a409f642b3cfc0969ac0b3b7.1787901813.git.mazziesaccount@gmail.com>
From: Matti Vaittinen <[email protected]>

The "interrupt polarity high"-macro for KX022A variant is defined as:
"#define KX022A_MASK_IPOL KX022A_MASK_IPOL1"

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.

Fixes: 7c1d1677b322 ("iio: accel: Support Kionix/ROHM KX022A accelerometer")
Signed-off-by: Matti Vaittinen <[email protected]>
Reviewed-by: Mehdi Djait <[email protected]>

---
Revision history:
v1 => v2:
 - Fixed the commit message where line: "#define KX022A_MASK_IPOL
   KX022A_MASK_IPOL1" was lost, as git treated it as a comment :)
 - Moved Fixes before SOB
---
 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-kx022a.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
-- 
2.55.0
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmqRO5sACgkQeFA3/03a
ocXcdwf9H+X03uz+kSa/2wDaPaP5+zmcu+pfvOrlMAbjuoshbCtfbWk6F8SDfCoT
ZNnUOPAacDrCjaIYTjIaYXCAo4hy3hJgdaevaMWhEeq0QYcbrM5gQ2VXahuFCrp5
TeRDncKi7N+sM6zuQwubGrqUDwa/Zrb6eskiR0FciUq2AISk2bY94S9kLit90VVM
jDlEhuho4fTsbWqH3DsdYsI9/lkRgxukvS+tmXetB+Ba/iZA71d+flmxq8nWkl5e
fOPGsW4s4mSWW68xL6YZwZiNiJTgLMeuHgHgOYR04J3jjYV3vIOzkhNnM/lD+Ch1
spM+dOfifcs/qQIYUziCWDEr8eOf3g==
=dyl7
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.